iobroker.agent-dvr 0.2.2 → 0.4.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/README.de.md +36 -12
- package/README.md +35 -11
- package/admin/assets/index-B13Ujb6j.js +685 -0
- package/admin/assets/index-D7I0OIPq.js +685 -0
- package/admin/i18n/de.json +5 -2
- package/admin/i18n/en.json +5 -2
- package/admin/i18n/es.json +5 -2
- package/admin/i18n/fr.json +5 -2
- package/admin/i18n/it.json +5 -2
- package/admin/i18n/nl.json +5 -2
- package/admin/i18n/pl.json +5 -2
- package/admin/i18n/pt.json +5 -2
- package/admin/i18n/ru.json +5 -2
- package/admin/i18n/uk.json +5 -2
- package/admin/i18n/zh-cn.json +5 -2
- package/admin/index_m.html +1 -1
- package/build/main.js +71 -7
- package/build/main.js.map +2 -2
- package/io-package.json +27 -27
- package/lib/web.js +62 -0
- package/package.json +1 -1
- package/www/index.html +7693 -38
- package/www/flv.min.js +0 -7534
|
@@ -0,0 +1,685 @@
|
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var l=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=N(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function P(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function F(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var I=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},L={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=L,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:F}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,I)}catch(e){I(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.7`})),u=o(((e,t)=>{t.exports=l()})),d=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),f=o(((e,t)=>{t.exports=d()})),p=o((e=>{var t=u();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.7`})),m=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=p()})),h=o((e=>{var t=f(),n=u(),r=m();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function d(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}var h=Object.assign,g=Symbol.for(`react.element`),_=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),D=Symbol.for(`react.memo`),O=Symbol.for(`react.lazy`),k=Symbol.for(`react.activity`),A=Symbol.for(`react.memo_cache_sentinel`),j=Symbol.iterator;function M(e){return typeof e!=`object`||!e?null:(e=j&&e[j]||e[`@@iterator`],typeof e==`function`?e:null)}var N=Symbol.for(`react.client.reference`);function P(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===N?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case k:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case D:return t=e.displayName||null,t===null?P(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return P(e(t))}catch{}}return null}var F=Array.isArray,I=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},R=[],te=-1;function ne(e){return{current:e}}function re(e){0>te||(e.current=R[te],R[te]=null,te--)}function z(e,t){te++,R[te]=e.current,e.current=t}var ie=ne(null),ae=ne(null),oe=ne(null),se=ne(null);function ce(e,t){switch(z(oe,t),z(ae,e),z(ie,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?qd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=qd(t),e=Jd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}re(ie),z(ie,e)}function le(){re(ie),re(ae),re(oe)}function ue(e){e.memoizedState!==null&&z(se,e);var t=ie.current,n=Jd(t,e.type);t!==n&&(z(ae,e),z(ie,n))}function de(e){ae.current===e&&(re(ie),re(ae)),se.current===e&&(re(se),ip._currentValue=ee)}var fe,pe;function me(e){if(fe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);fe=t&&t[1]||``,pe=-1<e.stack.indexOf(`
|
|
2
|
+
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
3
|
+
`+fe+e+pe}var he=!1;function ge(e,t){if(!e||he)return``;he=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
4
|
+
`),l=s.split(`
|
|
5
|
+
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
6
|
+
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{he=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?me(n):``}function _e(e,t){switch(e.tag){case 26:case 27:case 5:return me(e.type);case 16:return me(`Lazy`);case 13:return e.child!==t&&t!==null?me(`Suspense Fallback`):me(`Suspense`);case 19:return me(`SuspenseList`);case 0:case 15:return ge(e.type,!1);case 11:return ge(e.type.render,!1);case 1:return ge(e.type,!0);case 31:return me(`Activity`);default:return``}}function ve(e){try{var t=``,n=null;do t+=_e(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
7
|
+
Error generating stack: `+e.message+`
|
|
8
|
+
`+e.stack}}var ye=Object.prototype.hasOwnProperty,be=t.unstable_scheduleCallback,xe=t.unstable_cancelCallback,Se=t.unstable_shouldYield,Ce=t.unstable_requestPaint,we=t.unstable_now,Te=t.unstable_getCurrentPriorityLevel,Ee=t.unstable_ImmediatePriority,De=t.unstable_UserBlockingPriority,Oe=t.unstable_NormalPriority,ke=t.unstable_LowPriority,Ae=t.unstable_IdlePriority,je=t.log,Me=t.unstable_setDisableYieldValue,Ne=null,Pe=null;function Fe(e){if(typeof je==`function`&&Me(e),Pe&&typeof Pe.setStrictMode==`function`)try{Pe.setStrictMode(Ne,e)}catch{}}var Ie=Math.clz32?Math.clz32:ze,Le=Math.log,Re=Math.LN2;function ze(e){return e>>>=0,e===0?32:31-(Le(e)/Re|0)|0}var Be=256,Ve=262144,He=4194304;function Ue(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function We(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ue(n))):i=Ue(o):i=Ue(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ue(n))):i=Ue(o)):i=Ue(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Ge(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ke(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function qe(){var e=He;return He<<=1,!(He&62914560)&&(He=4194304),e}function Je(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ye(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Xe(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ie(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&Ze(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Ze(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ie(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Qe(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ie(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function $e(e,t){var n=t&-t;return n=n&42?1:et(n),(n&(e.suspendedLanes|t))===0?n:0}function et(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function tt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function nt(){var e=L.p;return e===0?(e=window.event,e===void 0?32:bp(e.type)):e}function rt(e,t){var n=L.p;try{return L.p=e,t()}finally{L.p=n}}var it=Math.random().toString(36).slice(2),at=`__reactFiber$`+it,ot=`__reactProps$`+it,st=`__reactContainer$`+it,ct=`__reactEvents$`+it,lt=`__reactListeners$`+it,ut=`__reactHandles$`+it,dt=`__reactResources$`+it,ft=`__reactMarker$`+it;function pt(e){delete e[at],delete e[ot],delete e[ct],delete e[lt],delete e[ut]}function mt(e){var t=e[at];if(t)return t;for(var n=e.parentNode;n;){if(t=n[st]||n[at]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=_f(e);e!==null;){if(n=e[at])return n;e=_f(e)}return t}e=n,n=e.parentNode}return null}function ht(e){if(e=e[at]||e[st]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function gt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function B(e){var t=e[dt];return t||=e[dt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function _t(e){e[ft]=!0}var vt=new Set,yt={};function bt(e,t){xt(e,t),xt(e+`Capture`,t)}function xt(e,t){for(yt[e]=t,e=0;e<t.length;e++)vt.add(t[e])}var St=RegExp(`^[: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]*$`),Ct={},wt={};function Tt(e){return ye.call(wt,e)?!0:ye.call(Ct,e)?!1:St.test(e)?wt[e]=!0:(Ct[e]=!0,!1)}function Et(e,t,n){if(Tt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function Dt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function Ot(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function kt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function At(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function jt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Mt(e){if(!e._valueTracker){var t=At(e)?`checked`:`value`;e._valueTracker=jt(e,t,``+e[t])}}function Nt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=At(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Pt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Ft=/[\n"\\]/g;function It(e){return e.replace(Ft,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Lt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+kt(t)):e.value!==``+kt(t)&&(e.value=``+kt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):zt(e,o,kt(n)):zt(e,o,kt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+kt(s):e.removeAttribute(`name`)}function Rt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Mt(e);return}n=n==null?``:``+kt(n),t=t==null?n:``+kt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Mt(e)}function zt(e,t,n){t===`number`&&Pt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Bt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+kt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Vt(e,t,n){if(t!=null&&(t=``+kt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+kt(n)}function Ht(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(F(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=kt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Mt(e)}function Ut(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Wt=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function Gt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Wt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Kt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Gt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Gt(e,o,t[o])}function qt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Jt=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),V=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Yt(e){return V.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Xt(){}var Zt=null;function Qt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $t=null,en=null;function tn(e){var t=ht(e);if(t&&(e=t.stateNode)){var n=e[ot]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Lt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+It(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[ot]||null;if(!a)throw Error(i(90));Lt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Nt(r)}break a;case`textarea`:Vt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Bt(e,!!n.multiple,t,!1)}}}var nn=!1;function rn(e,t,n){if(nn)return e(t,n);nn=!0;try{return e(t)}finally{if(nn=!1,($t!==null||en!==null)&&(Cu(),$t&&(t=$t,e=en,en=$t=null,tn(t),e)))for(t=0;t<e.length;t++)tn(e[t])}}function an(e,t){var n=e.stateNode;if(n===null)return null;var r=n[ot]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var on=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),sn=!1;if(on)try{var cn={};Object.defineProperty(cn,"passive",{get:function(){sn=!0}}),window.addEventListener(`test`,cn,cn),window.removeEventListener(`test`,cn,cn)}catch{sn=!1}var ln=null,un=null,dn=null;function fn(){if(dn)return dn;var e,t=un,n=t.length,r,i=`value`in ln?ln.value:ln.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return dn=i.slice(e,1<r?1-r:void 0)}function pn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function mn(){return!0}function hn(){return!1}function gn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?mn:hn,this.isPropagationStopped=hn,this}return h(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=mn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=mn)},persist:function(){},isPersistent:mn}),t}var _n={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vn=gn(_n),yn=h({},_n,{view:0,detail:0}),bn=gn(yn),xn,Sn,Cn,wn=h({},yn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Cn&&(Cn&&e.type===`mousemove`?(xn=e.screenX-Cn.screenX,Sn=e.screenY-Cn.screenY):Sn=xn=0,Cn=e),xn)},movementY:function(e){return`movementY`in e?e.movementY:Sn}}),Tn=gn(wn),En=gn(h({},wn,{dataTransfer:0})),Dn=gn(h({},yn,{relatedTarget:0})),On=gn(h({},_n,{animationName:0,elapsedTime:0,pseudoElement:0})),kn=gn(h({},_n,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),An=gn(h({},_n,{data:0})),jn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Mn={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`},Nn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Pn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Nn[e])?!!t[e]:!1}function Fn(){return Pn}var In=gn(h({},yn,{key:function(e){if(e.key){var t=jn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=pn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Mn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fn,charCode:function(e){return e.type===`keypress`?pn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?pn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Ln=gn(h({},wn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=gn(h({},yn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fn})),zn=gn(h({},_n,{propertyName:0,elapsedTime:0,pseudoElement:0})),Bn=gn(h({},wn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Vn=gn(h({},_n,{newState:0,oldState:0})),Hn=[9,13,27,32],Un=on&&`CompositionEvent`in window,Wn=null;on&&`documentMode`in document&&(Wn=document.documentMode);var Gn=on&&`TextEvent`in window&&!Wn,Kn=on&&(!Un||Wn&&8<Wn&&11>=Wn),qn=` `,Jn=!1;function Yn(e,t){switch(e){case`keyup`:return Hn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Xn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Zn=!1;function Qn(e,t){switch(e){case`compositionend`:return Xn(t);case`keypress`:return t.which===32?(Jn=!0,qn):null;case`textInput`:return e=t.data,e===qn&&Jn?null:e;default:return null}}function $n(e,t){if(Zn)return e===`compositionend`||!Un&&Yn(e,t)?(e=fn(),dn=un=ln=null,Zn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Kn&&t.locale!==`ko`?null:t.data;default:return null}}var er={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 tr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!er[e.type]:t===`textarea`}function nr(e,t,n,r){$t?en?en.push(r):en=[r]:$t=r,t=jd(t,`onChange`),0<t.length&&(n=new vn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var rr=null,ir=null;function ar(e){Cd(e,0)}function or(e){if(Nt(gt(e)))return e}function sr(e,t){if(e===`change`)return t}var cr=!1;if(on){var lr;if(on){var ur=`oninput`in document;if(!ur){var dr=document.createElement(`div`);dr.setAttribute(`oninput`,`return;`),ur=typeof dr.oninput==`function`}lr=ur}else lr=!1;cr=lr&&(!document.documentMode||9<document.documentMode)}function fr(){rr&&(rr.detachEvent(`onpropertychange`,pr),ir=rr=null)}function pr(e){if(e.propertyName===`value`&&or(ir)){var t=[];nr(t,ir,e,Qt(e)),rn(ar,t)}}function mr(e,t,n){e===`focusin`?(fr(),rr=t,ir=n,rr.attachEvent(`onpropertychange`,pr)):e===`focusout`&&fr()}function hr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return or(ir)}function gr(e,t){if(e===`click`)return or(t)}function _r(e,t){if(e===`input`||e===`change`)return or(t)}function vr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var yr=typeof Object.is==`function`?Object.is:vr;function br(e,t){if(yr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!ye.call(t,i)||!yr(e[i],t[i]))return!1}return!0}function xr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Sr(e,t){var n=xr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=xr(n)}}function Cr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Pt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Pt(e.document)}return t}function Tr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Er=on&&`documentMode`in document&&11>=document.documentMode,Dr=null,Or=null,kr=null,Ar=!1;function jr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ar||Dr==null||Dr!==Pt(r)||(r=Dr,`selectionStart`in r&&Tr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),kr&&br(kr,r)||(kr=r,r=jd(Or,`onSelect`),0<r.length&&(t=new vn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Dr)))}function Mr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Nr={animationend:Mr(`Animation`,`AnimationEnd`),animationiteration:Mr(`Animation`,`AnimationIteration`),animationstart:Mr(`Animation`,`AnimationStart`),transitionrun:Mr(`Transition`,`TransitionRun`),transitionstart:Mr(`Transition`,`TransitionStart`),transitioncancel:Mr(`Transition`,`TransitionCancel`),transitionend:Mr(`Transition`,`TransitionEnd`)},Pr={},Fr={};on&&(Fr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Nr.animationend.animation,delete Nr.animationiteration.animation,delete Nr.animationstart.animation),`TransitionEvent`in window||delete Nr.transitionend.transition);function Ir(e){if(Pr[e])return Pr[e];if(!Nr[e])return e;var t=Nr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Fr)return Pr[e]=t[n];return e}var Lr=Ir(`animationend`),Rr=Ir(`animationiteration`),zr=Ir(`animationstart`),Br=Ir(`transitionrun`),Vr=Ir(`transitionstart`),H=Ir(`transitioncancel`),Hr=Ir(`transitionend`),Ur=new Map,U=`abort auxClick beforeToggle 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(` `);U.push(`scrollEnd`);function W(e,t){Ur.set(e,t),bt(t,[e])}var Wr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Gr=[],Kr=0,qr=0;function Jr(){for(var e=Kr,t=qr=Kr=0;t<e;){var n=Gr[t];Gr[t++]=null;var r=Gr[t];Gr[t++]=null;var i=Gr[t];Gr[t++]=null;var a=Gr[t];if(Gr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Qr(n,i,a)}}function Yr(e,t,n,r){Gr[Kr++]=e,Gr[Kr++]=t,Gr[Kr++]=n,Gr[Kr++]=r,qr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Xr(e,t,n,r){return Yr(e,t,n,r),$r(e)}function Zr(e,t){return Yr(e,null,null,t),$r(e)}function Qr(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ie(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function $r(e){if(50<mu)throw mu=0,hu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ei={};function ti(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ni(e,t,n,r){return new ti(e,t,n,r)}function ri(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ii(e,t){var n=e.alternate;return n===null?(n=ni(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ai(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function oi(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)ri(e)&&(s=1);else if(typeof e==`string`)s=Yf(e,n,ie.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case k:return e=ni(31,n,t,a),e.elementType=k,e.lanes=o,e;case y:return si(n.children,a,o,t);case b:s=8,a|=24;break;case x:return e=ni(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case T:return e=ni(13,n,t,a),e.elementType=T,e.lanes=o,e;case E:return e=ni(19,n,t,a),e.elementType=E,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case S:s=9;break a;case w:s=11;break a;case D:s=14;break a;case O:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ni(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function si(e,t,n,r){return e=ni(7,e,r,t),e.lanes=n,e}function ci(e,t,n){return e=ni(6,e,null,t),e.lanes=n,e}function li(e){var t=ni(18,null,null,0);return t.stateNode=e,t}function ui(e,t,n){return t=ni(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var di=new WeakMap;function fi(e,t){if(typeof e==`object`&&e){var n=di.get(e);return n===void 0?(t={value:e,source:t,stack:ve(t)},di.set(e,t),t):n}return{value:e,source:t,stack:ve(t)}}var pi=[],mi=0,hi=null,gi=0,_i=[],vi=0,yi=null,bi=1,xi=``;function Si(e,t){pi[mi++]=gi,pi[mi++]=hi,hi=e,gi=t}function Ci(e,t,n){_i[vi++]=bi,_i[vi++]=xi,_i[vi++]=yi,yi=e;var r=bi;e=xi;var i=32-Ie(r)-1;r&=~(1<<i),n+=1;var a=32-Ie(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,bi=1<<32-Ie(t)+i|n<<i|r,xi=a+e}else bi=1<<a|n<<i|r,xi=e}function wi(e){e.return!==null&&(Si(e,1),Ci(e,1,0))}function Ti(e){for(;e===hi;)hi=pi[--mi],pi[mi]=null,gi=pi[--mi],pi[mi]=null;for(;e===yi;)yi=_i[--vi],_i[vi]=null,xi=_i[--vi],_i[vi]=null,bi=_i[--vi],_i[vi]=null}function Ei(e,t){_i[vi++]=bi,_i[vi++]=xi,_i[vi++]=yi,bi=t.id,xi=t.overflow,yi=e}var Di=null,Oi=null,ki=!1,Ai=null,ji=!1,Mi=Error(i(519));function Ni(e){throw zi(fi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Mi}function Pi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[at]=e,t[ot]=r,n){case`dialog`:wd(`cancel`,t),wd(`close`,t);break;case`iframe`:case`object`:case`embed`:wd(`load`,t);break;case`video`:case`audio`:for(n=0;n<xd.length;n++)wd(xd[n],t);break;case`source`:wd(`error`,t);break;case`img`:case`image`:case`link`:wd(`error`,t),wd(`load`,t);break;case`details`:wd(`toggle`,t);break;case`input`:wd(`invalid`,t),Rt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:wd(`invalid`,t);break;case`textarea`:wd(`invalid`,t),Ht(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Ld(t.textContent,n)?(r.popover!=null&&(wd(`beforetoggle`,t),wd(`toggle`,t)),r.onScroll!=null&&wd(`scroll`,t),r.onScrollEnd!=null&&wd(`scrollend`,t),r.onClick!=null&&(t.onclick=Xt),t=!0):t=!1,t||Ni(e,!0)}function Fi(e){for(Di=e.return;Di;)switch(Di.tag){case 5:case 31:case 13:ji=!1;return;case 27:case 3:ji=!0;return;default:Di=Di.return}}function Ii(e){if(e!==Di)return!1;if(!ki)return Fi(e),ki=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Yd(e.type,e.memoizedProps)),n=!n),n&&Oi&&Ni(e),Fi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Oi=gf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Oi=gf(e)}else t===27?(t=Oi,rf(e.type)?(e=hf,hf=null,Oi=e):Oi=t):Oi=Di?mf(e.stateNode.nextSibling):null;return!0}function Li(){Oi=Di=null,ki=!1}function Ri(){var e=Ai;return e!==null&&(eu===null?eu=e:eu.push.apply(eu,e),Ai=null),e}function zi(e){Ai===null?Ai=[e]:Ai.push(e)}var Bi=ne(null),Vi=null,Hi=null;function Ui(e,t,n){z(Bi,t._currentValue),t._currentValue=n}function Wi(e){e._currentValue=Bi.current,re(Bi)}function Gi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Ki(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Gi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Gi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function qi(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;yr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===se.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[ip]:e.push(ip))}a=a.return}e!==null&&Ki(t,e,n,r),t.flags|=262144}function Ji(e){for(e=e.firstContext;e!==null;){if(!yr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Yi(e){Vi=e,Hi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Xi(e){return Zi(Vi,e)}function G(e,t){return Vi===null&&Yi(e),Zi(e,t)}function Zi(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Hi===null){if(e===null)throw Error(i(308));Hi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Hi=Hi.next=t;return n}var Qi=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},$i=t.unstable_scheduleCallback,ea=t.unstable_NormalPriority,ta={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function na(){return{controller:new Qi,data:new Map,refCount:0}}function ra(e){e.refCount--,e.refCount===0&&$i(ea,function(){e.controller.abort()})}var ia=null,aa=0,oa=0,sa=null;function ca(e,t){if(ia===null){var n=ia=[];aa=0,oa=hd(),sa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return aa++,t.then(la,la),t}function la(){if(--aa===0&&ia!==null){sa!==null&&(sa.status=`fulfilled`);var e=ia;ia=null,oa=0,sa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ua(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var da=I.S;I.S=function(e,t){ru=we(),typeof t==`object`&&t&&typeof t.then==`function`&&ca(e,t),da!==null&&da(e,t)};var fa=ne(null);function pa(){var e=fa.current;return e===null?Rl.pooledCache:e}function ma(e,t){t===null?z(fa,fa.current):z(fa,t.pool)}function ha(){var e=pa();return e===null?null:{parent:ta._currentValue,pool:e}}var ga=Error(i(460)),_a=Error(i(474)),va=Error(i(542)),ya={then:function(){}};function ba(e){return e=e.status,e===`fulfilled`||e===`rejected`}function xa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Xt,Xt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ta(e),e;default:if(typeof t.status==`string`)t.then(Xt,Xt);else{if(e=Rl,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ta(e),e}throw Ca=t,ga}}function Sa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Ca=e,ga):e}}var Ca=null;function wa(){if(Ca===null)throw Error(i(459));var e=Ca;return Ca=null,e}function Ta(e){if(e===ga||e===va)throw Error(i(483))}var Ea=null,Da=0;function Oa(e){var t=Da;return Da+=1,Ea===null&&(Ea=[]),xa(Ea,e,t)}function ka(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Aa(e,t){throw t.$$typeof===g?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function ja(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=ii(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=ci(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===O&&Sa(i)===t.type)?(t=a(t,n.props),ka(t,n),t.return=e,t):(t=oi(n.type,n.key,n.props,null,e.mode,r),ka(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=ui(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=si(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=ci(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case _:return n=oi(t.type,t.key,t.props,null,e.mode,n),ka(n,t),n.return=e,n;case v:return t=ui(t,e.mode,n),t.return=e,t;case O:return t=Sa(t),f(e,t,n)}if(F(t)||M(t))return t=si(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Oa(t),n);if(t.$$typeof===C)return f(e,G(e,t),n);Aa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case _:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case O:return n=Sa(n),p(e,t,n,r)}if(F(n)||M(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Oa(n),r);if(n.$$typeof===C)return p(e,t,G(e,n),r);Aa(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case _:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case O:return r=Sa(r),m(e,t,n,r,i)}if(F(r)||M(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Oa(r),i);if(r.$$typeof===C)return m(e,t,n,G(t,r),i);Aa(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),ki&&Si(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return ki&&Si(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),ki&&Si(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),ki&&Si(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return ki&&Si(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),ki&&Si(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&Sa(l)===r.type){n(e,r.sibling),c=a(r,o.props),ka(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=si(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=oi(o.type,o.key,o.props,null,e.mode,c),ka(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=ui(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=Sa(o),b(e,r,o,c)}if(F(o))return h(e,r,o,c);if(M(o)){if(l=M(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Oa(o),c);if(o.$$typeof===C)return b(e,r,G(e,o),c);Aa(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=ci(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Da=0;var i=b(e,t,n,r);return Ea=null,i}catch(t){if(t===ga||t===va)throw t;var a=ni(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ma=ja(!0),Na=ja(!1),Pa=!1;function Fa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ia(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function La(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ra(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ll&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=$r(e),Qr(e,null,n),t}return Yr(e,r,t,n),$r(e)}function za(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Qe(e,n)}}function Ba(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Va=!1;function Ha(){if(Va){var e=sa;if(e!==null)throw e}}function Ua(e,t,n,r){Va=!1;var i=e.updateQueue;Pa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Bl&f)===f:(r&f)===f){f!==0&&f===oa&&(Va=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(m=g.payload,typeof m==`function`){d=m.call(_,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m==`function`?m.call(_,d,f):m,f==null)break a;d=h({},d,f);break a;case 2:Pa=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Jl|=o,e.lanes=o,e.memoizedState=d}}function Wa(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ga(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Wa(n[e],t)}var Ka=ne(null),qa=ne(0);function Ja(e,t){e=Kl,z(qa,e),z(Ka,t),Kl=e|t.baseLanes}function Ya(){z(qa,Kl),z(Ka,Ka.current)}function Xa(){Kl=qa.current,re(Ka),re(qa)}var Za=ne(null),Qa=null;function $a(e){var t=e.alternate;z(io,io.current&1),z(Za,e),Qa===null&&(t===null||Ka.current!==null||t.memoizedState!==null)&&(Qa=e)}function eo(e){z(io,io.current),z(Za,e),Qa===null&&(Qa=e)}function to(e){e.tag===22?(z(io,io.current),z(Za,e),Qa===null&&(Qa=e)):no(e)}function no(){z(io,io.current),z(Za,Za.current)}function ro(e){re(Za),Qa===e&&(Qa=null),re(io)}var io=ne(0);function ao(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||df(n)||ff(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var oo=0,so=null,co=null,lo=null,uo=!1,fo=!1,po=!1,mo=0,ho=0,go=null,_o=0;function vo(){throw Error(i(321))}function yo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!yr(e[n],t[n]))return!1;return!0}function bo(e,t,n,r,i,a){return oo=a,so=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,I.H=e===null||e.memoizedState===null?Fs:Is,po=!1,a=n(r,i),po=!1,fo&&(a=So(t,n,r,i)),xo(e),a}function xo(e){I.H=Ps;var t=co!==null&&co.next!==null;if(oo=0,lo=co=so=null,uo=!1,ho=0,go=null,t)throw Error(i(300));e===null||$s||(e=e.dependencies,e!==null&&Ji(e)&&($s=!0))}function So(e,t,n,r){so=e;var a=0;do{if(fo&&(go=null),ho=0,fo=!1,25<=a)throw Error(i(301));if(a+=1,lo=co=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}I.H=Ls,o=t(n,r)}while(fo);return o}function Co(){var e=I.H,t=e.useState()[0];return t=typeof t.then==`function`?Ao(t):t,e=e.useState()[0],(co===null?null:co.memoizedState)!==e&&(so.flags|=1024),t}function wo(){var e=mo!==0;return mo=0,e}function To(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Eo(e){if(uo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}uo=!1}oo=0,lo=co=so=null,fo=!1,ho=mo=0,go=null}function Do(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lo===null?so.memoizedState=lo=e:lo=lo.next=e,lo}function Oo(){if(co===null){var e=so.alternate;e=e===null?null:e.memoizedState}else e=co.next;var t=lo===null?so.memoizedState:lo.next;if(t!==null)lo=t,co=e;else{if(e===null)throw so.alternate===null?Error(i(467)):Error(i(310));co=e,e={memoizedState:co.memoizedState,baseState:co.baseState,baseQueue:co.baseQueue,queue:co.queue,next:null},lo===null?so.memoizedState=lo=e:lo=lo.next=e}return lo}function ko(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ao(e){var t=ho;return ho+=1,go===null&&(go=[]),e=xa(go,e,t),t=so,(lo===null?t.memoizedState:lo.next)===null&&(t=t.alternate,I.H=t===null||t.memoizedState===null?Fs:Is),e}function jo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Ao(e);if(e.$$typeof===C)return Xi(e)}throw Error(i(438,String(e)))}function Mo(e){var t=null,n=so.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=so.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=ko(),so.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=A;return t.index++,n}function No(e,t){return typeof t==`function`?t(e):t}function Po(e){return Fo(Oo(),co,e)}function Fo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(oo&f)===f:(Bl&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===oa&&(d=!0);else if((oo&p)===p){u=u.next,p===oa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,so.lanes|=p,Jl|=p;f=u.action,po&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,so.lanes|=f,Jl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!yr(o,e.memoizedState)&&($s=!0,d&&(n=sa,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Io(e){var t=Oo(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);yr(o,t.memoizedState)||($s=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Lo(e,t,n){var r=so,a=Oo(),o=ki;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!yr((co||a).memoizedState,n);if(s&&(a.memoizedState=n,$s=!0),a=a.queue,ss(Bo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||lo!==null&&lo.memoizedState.tag&1){if(r.flags|=2048,rs(9,{destroy:void 0},zo.bind(null,r,a,n,t),null),Rl===null)throw Error(i(349));o||oo&127||Ro(r,t,n)}return n}function Ro(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=so.updateQueue,t===null?(t=ko(),so.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function zo(e,t,n,r){t.value=n,t.getSnapshot=r,Vo(t)&&Ho(e)}function Bo(e,t,n){return n(function(){Vo(t)&&Ho(e)})}function Vo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!yr(e,n)}catch{return!0}}function Ho(e){var t=Zr(e,2);t!==null&&vu(t,e,2)}function Uo(e){var t=Do();if(typeof e==`function`){var n=e;if(e=n(),po){Fe(!0);try{n()}finally{Fe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:e},t}function Wo(e,t,n,r){return e.baseState=n,Fo(e,co,typeof r==`function`?r:No)}function Go(e,t,n,r,a){if(js(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};I.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Ko(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Ko(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=I.T,o={};I.T=o;try{var s=n(i,r),c=I.S;c!==null&&c(o,s),qo(e,t,s)}catch(n){Yo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),I.T=a}}else try{a=n(i,r),qo(e,t,a)}catch(n){Yo(e,t,n)}}function qo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Jo(e,t,n)},function(n){return Yo(e,t,n)}):Jo(e,t,n)}function Jo(e,t,n){t.status=`fulfilled`,t.value=n,Xo(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ko(e,n)))}function Yo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Xo(t),t=t.next;while(t!==r)}e.action=null}function Xo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Zo(e,t){return t}function Qo(e,t){if(ki){var n=Rl.formState;if(n!==null){a:{var r=so;if(ki){if(Oi){b:{for(var i=Oi,a=ji;i.nodeType!==8;){if(!a){i=null;break b}if(i=mf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Oi=mf(i.nextSibling),r=i.data===`F!`;break a}}Ni(r)}r=!1}r&&(t=n[0])}}return n=Do(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zo,lastRenderedState:t},n.queue=r,n=Os.bind(null,so,r),r.dispatch=n,r=Uo(!1),a=As.bind(null,so,!1,r.queue),r=Do(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Go.bind(null,so,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function $o(e){return es(Oo(),co,e)}function es(e,t,n){if(t=Fo(e,t,Zo)[0],e=Po(No)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Ao(t)}catch(e){throw e===ga?va:e}else r=t;t=Oo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(so.flags|=2048,rs(9,{destroy:void 0},ts.bind(null,i,n),null)),[r,a,e]}function ts(e,t){e.action=t}function ns(e){var t=Oo(),n=co;if(n!==null)return es(t,n,e);Oo(),t=t.memoizedState,n=Oo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function rs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=so.updateQueue,t===null&&(t=ko(),so.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function is(){return Oo().memoizedState}function as(e,t,n,r){var i=Do();so.flags|=e,i.memoizedState=rs(1|t,{destroy:void 0},n,r===void 0?null:r)}function K(e,t,n,r){var i=Oo();r=r===void 0?null:r;var a=i.memoizedState.inst;co!==null&&r!==null&&yo(r,co.memoizedState.deps)?i.memoizedState=rs(t,a,n,r):(so.flags|=e,i.memoizedState=rs(1|t,a,n,r))}function os(e,t){as(8390656,8,e,t)}function ss(e,t){K(2048,8,e,t)}function cs(e){so.flags|=4;var t=so.updateQueue;if(t===null)t=ko(),so.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ls(e){var t=Oo().memoizedState;return cs({ref:t,nextImpl:e}),function(){if(Ll&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function us(e,t){return K(4,2,e,t)}function ds(e,t){return K(4,4,e,t)}function fs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ps(e,t,n){n=n==null?null:n.concat([e]),K(4,4,fs.bind(null,t,e),n)}function ms(){}function hs(e,t){var n=Oo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&yo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function gs(e,t){var n=Oo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&yo(t,r[1]))return r[0];if(r=e(),po){Fe(!0);try{e()}finally{Fe(!1)}}return n.memoizedState=[r,t],r}function _s(e,t,n){return n===void 0||oo&1073741824&&!(Bl&261930)?e.memoizedState=t:(e.memoizedState=n,e=_u(),so.lanes|=e,Jl|=e,n)}function vs(e,t,n,r){return yr(n,t)?n:Ka.current===null?!(oo&42)||oo&1073741824&&!(Bl&261930)?($s=!0,e.memoizedState=n):(e=_u(),so.lanes|=e,Jl|=e,t):(e=_s(e,n,r),yr(e,t)||($s=!0),e)}function q(e,t,n,r,i){var a=L.p;L.p=a!==0&&8>a?a:8;var o=I.T,s={};I.T=s,As(e,!1,t,n);try{var c=i(),l=I.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?ks(e,t,ua(c,r),gu(e)):ks(e,t,r,gu(e))}catch(n){ks(e,t,{then:function(){},status:`rejected`,reason:n},gu())}finally{L.p=a,o!==null&&s.types!==null&&(o.types=s.types),I.T=o}}function ys(){}function bs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=xs(e).queue;q(e,a,t,ee,n===null?ys:function(){return Ss(e),n(r)})}function xs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:ee},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ss(e){var t=xs(e);t.next===null&&(t=e.alternate.memoizedState),ks(e,t.next.queue,{},gu())}function Cs(){return Xi(ip)}function ws(){return Oo().memoizedState}function Ts(){return Oo().memoizedState}function Es(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=gu();e=La(n);var r=Ra(t,e,n);r!==null&&(vu(r,t,n),za(r,t,n)),t={cache:na()},e.payload=t;return}t=t.return}}function Ds(e,t,n){var r=gu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},js(e)?Ms(t,n):(n=Xr(e,t,n,r),n!==null&&(vu(n,e,r),Ns(n,t,r)))}function Os(e,t,n){ks(e,t,n,gu())}function ks(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(js(e))Ms(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,yr(s,o))return Yr(e,t,i,0),Rl===null&&Jr(),!1}catch{}if(n=Xr(e,t,i,r),n!==null)return vu(n,e,r),Ns(n,t,r),!0}return!1}function As(e,t,n,r){if(r={lane:2,revertLane:hd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},js(e)){if(t)throw Error(i(479))}else t=Xr(e,n,r,2),t!==null&&vu(t,e,2)}function js(e){var t=e.alternate;return e===so||t!==null&&t===so}function Ms(e,t){fo=uo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ns(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Qe(e,n)}}var Ps={readContext:Xi,use:jo,useCallback:vo,useContext:vo,useEffect:vo,useImperativeHandle:vo,useLayoutEffect:vo,useInsertionEffect:vo,useMemo:vo,useReducer:vo,useRef:vo,useState:vo,useDebugValue:vo,useDeferredValue:vo,useTransition:vo,useSyncExternalStore:vo,useId:vo,useHostTransitionStatus:vo,useFormState:vo,useActionState:vo,useOptimistic:vo,useMemoCache:vo,useCacheRefresh:vo};Ps.useEffectEvent=vo;var Fs={readContext:Xi,use:jo,useCallback:function(e,t){return Do().memoizedState=[e,t===void 0?null:t],e},useContext:Xi,useEffect:os,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),as(4194308,4,fs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return as(4194308,4,e,t)},useInsertionEffect:function(e,t){as(4,2,e,t)},useMemo:function(e,t){var n=Do();t=t===void 0?null:t;var r=e();if(po){Fe(!0);try{e()}finally{Fe(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Do();if(n!==void 0){var i=n(t);if(po){Fe(!0);try{n(t)}finally{Fe(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ds.bind(null,so,e),[r.memoizedState,e]},useRef:function(e){var t=Do();return e={current:e},t.memoizedState=e},useState:function(e){e=Uo(e);var t=e.queue,n=Os.bind(null,so,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ms,useDeferredValue:function(e,t){return _s(Do(),e,t)},useTransition:function(){var e=Uo(!1);return e=q.bind(null,so,e.queue,!0,!1),Do().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=so,a=Do();if(ki){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Rl===null)throw Error(i(349));Bl&127||Ro(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,os(Bo.bind(null,r,o,e),[e]),r.flags|=2048,rs(9,{destroy:void 0},zo.bind(null,r,o,n,t),null),n},useId:function(){var e=Do(),t=Rl.identifierPrefix;if(ki){var n=xi,r=bi;n=(r&~(1<<32-Ie(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=mo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=_o++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Cs,useFormState:Qo,useActionState:Qo,useOptimistic:function(e){var t=Do();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=As.bind(null,so,!0,n),n.dispatch=t,[e,t]},useMemoCache:Mo,useCacheRefresh:function(){return Do().memoizedState=Es.bind(null,so)},useEffectEvent:function(e){var t=Do(),n={impl:e};return t.memoizedState=n,function(){if(Ll&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Is={readContext:Xi,use:jo,useCallback:hs,useContext:Xi,useEffect:ss,useImperativeHandle:ps,useInsertionEffect:us,useLayoutEffect:ds,useMemo:gs,useReducer:Po,useRef:is,useState:function(){return Po(No)},useDebugValue:ms,useDeferredValue:function(e,t){return vs(Oo(),co.memoizedState,e,t)},useTransition:function(){var e=Po(No)[0],t=Oo().memoizedState;return[typeof e==`boolean`?e:Ao(e),t]},useSyncExternalStore:Lo,useId:ws,useHostTransitionStatus:Cs,useFormState:$o,useActionState:$o,useOptimistic:function(e,t){return Wo(Oo(),co,e,t)},useMemoCache:Mo,useCacheRefresh:Ts};Is.useEffectEvent=ls;var Ls={readContext:Xi,use:jo,useCallback:hs,useContext:Xi,useEffect:ss,useImperativeHandle:ps,useInsertionEffect:us,useLayoutEffect:ds,useMemo:gs,useReducer:Io,useRef:is,useState:function(){return Io(No)},useDebugValue:ms,useDeferredValue:function(e,t){var n=Oo();return co===null?_s(n,e,t):vs(n,co.memoizedState,e,t)},useTransition:function(){var e=Io(No)[0],t=Oo().memoizedState;return[typeof e==`boolean`?e:Ao(e),t]},useSyncExternalStore:Lo,useId:ws,useHostTransitionStatus:Cs,useFormState:ns,useActionState:ns,useOptimistic:function(e,t){var n=Oo();return co===null?(n.baseState=e,[e,n.queue.dispatch]):Wo(n,co,e,t)},useMemoCache:Mo,useCacheRefresh:Ts};Ls.useEffectEvent=ls;function Rs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:h({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var zs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=gu(),i=La(r);i.payload=t,n!=null&&(i.callback=n),t=Ra(e,i,r),t!==null&&(vu(t,e,r),za(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=gu(),i=La(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ra(e,i,r),t!==null&&(vu(t,e,r),za(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=gu(),r=La(n);r.tag=2,t!=null&&(r.callback=t),t=Ra(e,r,n),t!==null&&(vu(t,e,n),za(t,e,n))}};function Bs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!br(n,r)||!br(i,a):!0}function Vs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&zs.enqueueReplaceState(t,t.state,null)}function Hs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=h({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Us(e){Wr(e)}function Ws(e){console.error(e)}function Gs(e){Wr(e)}function Ks(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function qs(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Js(e,t,n){return n=La(n),n.tag=3,n.payload={element:null},n.callback=function(){Ks(e,t)},n}function Ys(e){return e=La(e),e.tag=3,e}function Xs(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){qs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){qs(t,n,r),typeof i!=`function`&&(ou===null?ou=new Set([this]):ou.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Zs(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&qi(t,n,a,!0),n=Za.current,n!==null){switch(n.tag){case 31:case 13:return Qa===null?Au():n.alternate===null&&ql===0&&(ql=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===ya?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Yu(e,r,a)),!1;case 22:return n.flags|=65536,r===ya?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Yu(e,r,a)),!1}throw Error(i(435,n.tag))}return Yu(e,r,a),Au(),!1}if(ki)return t=Za.current,t===null?(r!==Mi&&(t=Error(i(423),{cause:r}),zi(fi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=fi(r,n),a=Js(e.stateNode,r,a),Ba(e,a),ql!==4&&(ql=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Mi&&(e=Error(i(422),{cause:r}),zi(fi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=fi(o,n),$l===null?$l=[o]:$l.push(o),ql!==4&&(ql=2),t===null)return!0;r=fi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Js(n.stateNode,r,e),Ba(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(ou===null||!ou.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Ys(a),Xs(a,e,n,r),Ba(n,a),!1}n=n.return}while(n!==null);return!1}var Qs=Error(i(461)),$s=!1;function ec(e,t,n,r){t.child=e===null?Na(t,null,n,r):Ma(t,e.child,n,r)}function tc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Yi(t),r=bo(e,t,n,o,a,i),s=wo(),e!==null&&!$s?(To(e,t,i),Tc(e,t,i)):(ki&&s&&wi(t),t.flags|=1,ec(e,t,r,i),t.child)}function nc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ri(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,rc(e,t,a,r,i)):(e=oi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Ec(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?br:n,n(o,r)&&e.ref===t.ref)return Tc(e,t,i)}return t.flags|=1,e=ii(a,r),e.ref=t.ref,e.return=t,t.child=e}function rc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(br(a,r)&&e.ref===t.ref)if($s=!1,t.pendingProps=r=a,Ec(e,i))e.flags&131072&&($s=!0);else return t.lanes=e.lanes,Tc(e,t,i)}return dc(e,t,n,r,i)}function ic(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return oc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ma(t,a===null?null:a.cachePool),a===null?Ya():Ja(t,a),to(t);else return r=t.lanes=536870912,oc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ma(t,null),Ya(),no(t)):(ma(t,a.cachePool),Ja(t,a),no(t),t.memoizedState=null);return ec(e,t,i,n),t.child}function ac(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function oc(e,t,n,r,i){var a=pa();return a=a===null?null:{parent:ta._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ma(t,null),Ya(),to(t),e!==null&&qi(e,t,r,!0),t.childLanes=i,null}function sc(e,t){return t=bc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function cc(e,t,n){return Ma(t,e.child,null,n),e=sc(t,t.pendingProps),e.flags|=2,ro(t),t.memoizedState=null,e}function lc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(ki){if(r.mode===`hidden`)return e=sc(t,r),t.lanes=536870912,ac(null,e);if(eo(t),(e=Oi)?(e=uf(e,ji),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:yi===null?null:{id:bi,overflow:xi},retryLane:536870912,hydrationErrors:null},n=li(e),n.return=t,t.child=n,Di=t,Oi=null)):e=null,e===null)throw Ni(t);return t.lanes=536870912,null}return sc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(eo(t),a)if(t.flags&256)t.flags&=-257,t=cc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if($s||qi(e,t,n,!1),a=(n&e.childLanes)!==0,$s||a){if(r=Rl,r!==null&&(s=$e(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Zr(e,s),vu(r,e,s),Qs;Au(),t=cc(e,t,n)}else e=o.treeContext,Oi=mf(s.nextSibling),Di=t,ki=!0,Ai=null,ji=!1,e!==null&&Ei(t,e),t=sc(t,r),t.flags|=4096;return t}return e=ii(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function uc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function dc(e,t,n,r,i){return Yi(t),n=bo(e,t,n,r,void 0,i),r=wo(),e!==null&&!$s?(To(e,t,i),Tc(e,t,i)):(ki&&r&&wi(t),t.flags|=1,ec(e,t,n,i),t.child)}function fc(e,t,n,r,i,a){return Yi(t),t.updateQueue=null,n=So(t,r,n,i),xo(e),r=wo(),e!==null&&!$s?(To(e,t,a),Tc(e,t,a)):(ki&&r&&wi(t),t.flags|=1,ec(e,t,n,a),t.child)}function pc(e,t,n,r,i){if(Yi(t),t.stateNode===null){var a=ei,o=n.contextType;typeof o==`object`&&o&&(a=Xi(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=zs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Fa(t),o=n.contextType,a.context=typeof o==`object`&&o?Xi(o):ei,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Rs(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&zs.enqueueReplaceState(a,a.state,null),Ua(t,r,a,i),Ha(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Hs(n,s);a.props=c;var l=a.context,u=n.contextType;o=ei,typeof u==`object`&&u&&(o=Xi(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Vs(t,a,r,o),Pa=!1;var f=t.memoizedState;a.state=f,Ua(t,r,a,i),Ha(),l=t.memoizedState,s||f!==l||Pa?(typeof d==`function`&&(Rs(t,n,d,r),l=t.memoizedState),(c=Pa||Bs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ia(e,t),o=t.memoizedProps,u=Hs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ei,typeof l==`object`&&l&&(c=Xi(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Vs(t,a,r,c),Pa=!1,f=t.memoizedState,a.state=f,Ua(t,r,a,i),Ha();var p=t.memoizedState;o!==d||f!==p||Pa||e!==null&&e.dependencies!==null&&Ji(e.dependencies)?(typeof s==`function`&&(Rs(t,n,s,r),p=t.memoizedState),(u=Pa||Bs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Ji(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,uc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ma(t,e.child,null,i),t.child=Ma(t,null,n,i)):ec(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Tc(e,t,i),e}function mc(e,t,n,r){return Li(),t.flags|=256,ec(e,t,n,r),t.child}var hc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function gc(e){return{baseLanes:e,cachePool:ha()}}function _c(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Zl),e}function vc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(io.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(ki){if(a?$a(t):no(t),(e=Oi)?(e=uf(e,ji),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:yi===null?null:{id:bi,overflow:xi},retryLane:536870912,hydrationErrors:null},n=li(e),n.return=t,t.child=n,Di=t,Oi=null)):e=null,e===null)throw Ni(t);return ff(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(no(t),a=t.mode,c=bc({mode:`hidden`,children:c},a),r=si(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=gc(n),r.childLanes=_c(e,s,n),t.memoizedState=hc,ac(null,r)):($a(t),yc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?($a(t),t.flags&=-257,t=xc(e,t,n)):t.memoizedState===null?(no(t),c=r.fallback,a=t.mode,r=bc({mode:`visible`,children:r.children},a),c=si(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ma(t,e.child,null,n),r=t.child,r.memoizedState=gc(n),r.childLanes=_c(e,s,n),t.memoizedState=hc,t=ac(null,r)):(no(t),t.child=e.child,t.flags|=128,t=null);else if($a(t),ff(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,zi({value:r,source:null,stack:null}),t=xc(e,t,n)}else if($s||qi(e,t,n,!1),s=(n&e.childLanes)!==0,$s||s){if(s=Rl,s!==null&&(r=$e(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,Zr(e,r),vu(s,e,r),Qs;df(c)||Au(),t=xc(e,t,n)}else df(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Oi=mf(c.nextSibling),Di=t,ki=!0,Ai=null,ji=!1,e!==null&&Ei(t,e),t=yc(t,r.children),t.flags|=4096);return t}return a?(no(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=ii(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=si(c,a,n,null),c.flags|=2):c=ii(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,ac(null,r),r=t.child,c=e.child.memoizedState,c===null?c=gc(n):(a=c.cachePool,a===null?a=ha():(l=ta._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=_c(e,s,n),t.memoizedState=hc,ac(e.child,r)):($a(t),n=e.child,e=n.sibling,n=ii(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function yc(e,t){return t=bc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function bc(e,t){return e=ni(22,e,null,t),e.lanes=0,e}function xc(e,t,n){return Ma(t,e.child,null,n),e=yc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Sc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Gi(e.return,t,n)}function Cc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function wc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=io.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,z(io,o),ec(e,t,r,n),r=ki?gi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Sc(e,n,t);else if(e.tag===19)Sc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ao(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Cc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ao(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Cc(t,!0,n,null,a,r);break;case`together`:Cc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Tc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Jl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(qi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=ii(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ii(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ec(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Ji(e))):!0}function Dc(e,t,n){switch(t.tag){case 3:ce(t,t.stateNode.containerInfo),Ui(t,ta,e.memoizedState.cache),Li();break;case 27:case 5:ue(t);break;case 4:ce(t,t.stateNode.containerInfo);break;case 10:Ui(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,eo(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?($a(t),e=Tc(e,t,n),e===null?null:e.sibling):vc(e,t,n):($a(t),t.flags|=128,null);$a(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(qi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return wc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),z(io,io.current),r)break;return null;case 22:return t.lanes=0,ic(e,t,n,t.pendingProps);case 24:Ui(t,ta,e.memoizedState.cache)}return Tc(e,t,n)}function Oc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)$s=!0;else{if(!Ec(e,n)&&!(t.flags&128))return $s=!1,Dc(e,t,n);$s=!!(e.flags&131072)}else $s=!1,ki&&t.flags&1048576&&Ci(t,gi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Sa(t.elementType),t.type=e,typeof e==`function`)ri(e)?(r=Hs(e,r),t.tag=1,t=pc(null,t,e,r,n)):(t.tag=0,t=dc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=tc(null,t,e,r,n);break a}else if(a===D){t.tag=14,t=nc(null,t,e,r,n);break a}}throw t=P(e)||e,Error(i(306,t,``))}}return t;case 0:return dc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Hs(r,t.pendingProps),pc(e,t,r,a,n);case 3:a:{if(ce(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ia(e,t),Ua(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Ui(t,ta,r),r!==o.cache&&Ki(t,[ta],n,!0),Ha(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=mc(e,t,r,n);break a}else if(r!==a){a=fi(Error(i(424)),t),zi(a),t=mc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Oi=mf(e.firstChild),Di=t,ki=!0,Ai=null,ji=!0,n=Na(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Li(),r===a){t=Tc(e,t,n);break a}ec(e,t,r,n)}t=t.child}return t;case 26:return uc(e,t),e===null?(n=Ff(t.type,null,t.pendingProps,null))?t.memoizedState=n:ki||(n=t.type,e=t.pendingProps,r=Kd(oe.current).createElement(n),r[at]=t,r[ot]=e,Bd(r,n,e),_t(r),t.stateNode=r):t.memoizedState=Ff(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ue(t),e===null&&ki&&(r=t.stateNode=vf(t.type,t.pendingProps,oe.current),Di=t,ji=!0,a=Oi,rf(t.type)?(hf=a,Oi=mf(r.firstChild)):Oi=a),ec(e,t,t.pendingProps.children,n),uc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ki&&((a=r=Oi)&&(r=cf(r,t.type,t.pendingProps,ji),r===null?a=!1:(t.stateNode=r,Di=t,Oi=mf(r.firstChild),ji=!1,a=!0)),a||Ni(t)),ue(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Yd(a,o)?r=null:s!==null&&Yd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=bo(e,t,Co,null,null,n),ip._currentValue=a),uc(e,t),ec(e,t,r,n),t.child;case 6:return e===null&&ki&&((e=n=Oi)&&(n=lf(n,t.pendingProps,ji),n===null?e=!1:(t.stateNode=n,Di=t,Oi=null,e=!0)),e||Ni(t)),null;case 13:return vc(e,t,n);case 4:return ce(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ma(t,null,r,n):ec(e,t,r,n),t.child;case 11:return tc(e,t,t.type,t.pendingProps,n);case 7:return ec(e,t,t.pendingProps,n),t.child;case 8:return ec(e,t,t.pendingProps.children,n),t.child;case 12:return ec(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ui(t,t.type,r.value),ec(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Yi(t),a=Xi(a),r=r(a),t.flags|=1,ec(e,t,r,n),t.child;case 14:return nc(e,t,t.type,t.pendingProps,n);case 15:return rc(e,t,t.type,t.pendingProps,n);case 19:return wc(e,t,n);case 31:return lc(e,t,n);case 22:return ic(e,t,n,t.pendingProps);case 24:return Yi(t),r=Xi(ta),e===null?(a=pa(),a===null&&(a=Rl,o=na(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Fa(t),Ui(t,ta,a)):((e.lanes&n)!==0&&(Ia(e,t),Ua(t,null,null,n),Ha()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Ui(t,ta,r),r!==a.cache&&Ki(t,[ta],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ui(t,ta,r))),ec(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function kc(e){e.flags|=4}function Ac(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Du())e.flags|=8192;else throw Ca=ya,_a}else e.flags&=-16777217}function jc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Xf(t))if(Du())e.flags|=8192;else throw Ca=ya,_a}function Mc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:qe(),e.lanes|=t,Ql|=t)}function Nc(e,t){if(!ki)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Pc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Fc(e,t,n){var r=t.pendingProps;switch(Ti(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pc(t),null;case 1:return Pc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Wi(ta),le(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ii(t)?kc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ri())),Pc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(kc(t),o===null?(Pc(t),Ac(t,a,null,r,n)):(Pc(t),jc(t,o))):o?o===e.memoizedState?(Pc(t),t.flags&=-16777217):(kc(t),Pc(t),jc(t,o)):(e=e.memoizedProps,e!==r&&kc(t),Pc(t),Ac(t,a,e,r,n)),null;case 27:if(de(t),n=oe.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&kc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Pc(t),null}e=ie.current,Ii(t)?Pi(t,e):(e=vf(a,r,n),t.stateNode=e,kc(t))}return Pc(t),null;case 5:if(de(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&kc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Pc(t),null}if(o=ie.current,Ii(t))Pi(t,o);else{var s=Kd(oe.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[at]=t,o[ot]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Bd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&kc(t)}}return Pc(t),Ac(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&kc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=oe.current,Ii(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Di,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[at]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Ld(e.nodeValue,n)),e||Ni(t,!0)}else e=Kd(e).createTextNode(r),e[at]=t,t.stateNode=e}return Pc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ii(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[at]=t}else Li(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Pc(t),e=!1}else n=Ri(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(ro(t),t):(ro(t),null);if(t.flags&128)throw Error(i(558))}return Pc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ii(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[at]=t}else Li(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Pc(t),a=!1}else a=Ri(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(ro(t),t):(ro(t),null)}return ro(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Mc(t,t.updateQueue),Pc(t),null);case 4:return le(),e===null&&Dd(t.stateNode.containerInfo),Pc(t),null;case 10:return Wi(t.type),Pc(t),null;case 19:if(re(io),r=t.memoizedState,r===null)return Pc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Nc(r,!1);else{if(ql!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ao(e),o!==null){for(t.flags|=128,Nc(r,!1),e=o.updateQueue,t.updateQueue=e,Mc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ai(n,e),n=n.sibling;return z(io,io.current&1|2),ki&&Si(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&we()>iu&&(t.flags|=128,a=!0,Nc(r,!1),t.lanes=4194304)}else{if(!a)if(e=ao(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Mc(t,e),Nc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!ki)return Pc(t),null}else 2*we()-r.renderingStartTime>iu&&n!==536870912&&(t.flags|=128,a=!0,Nc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Pc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=we(),e.sibling=null,n=io.current,z(io,a?n&1|2:n&1),ki&&Si(t,r.treeForkCount),e);case 22:case 23:return ro(t),Xa(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Pc(t),t.subtreeFlags&6&&(t.flags|=8192)):Pc(t),n=t.updateQueue,n!==null&&Mc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&re(fa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Wi(ta),Pc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Ic(e,t){switch(Ti(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wi(ta),le(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return de(t),null;case 31:if(t.memoizedState!==null){if(ro(t),t.alternate===null)throw Error(i(340));Li()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ro(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Li()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return re(io),null;case 4:return le(),null;case 10:return Wi(t.type),null;case 22:case 23:return ro(t),Xa(),e!==null&&re(fa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Wi(ta),null;case 25:return null;default:return null}}function Lc(e,t){switch(Ti(t),t.tag){case 3:Wi(ta),le();break;case 26:case 27:case 5:de(t);break;case 4:le();break;case 31:t.memoizedState!==null&&ro(t);break;case 13:ro(t);break;case 19:re(io);break;case 10:Wi(t.type);break;case 22:case 23:ro(t),Xa(),e!==null&&re(fa);break;case 24:Wi(ta)}}function Rc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Ju(t,t.return,e)}}function zc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Ju(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Ju(t,t.return,e)}}function Bc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ga(t,n)}catch(t){Ju(e,e.return,t)}}}function Vc(e,t,n){n.props=Hs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Ju(e,t,n)}}function Hc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Ju(e,t,n)}}function Uc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Ju(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Ju(e,t,n)}else n.current=null}function Wc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Ju(e,e.return,t)}}function Gc(e,t,n){try{var r=e.stateNode;Vd(r,e.type,n,t),r[ot]=t}catch(t){Ju(e,e.return,t)}}function Kc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&rf(e.type)||e.tag===4}function qc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Kc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&rf(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Jc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Xt));else if(r!==4&&(r===27&&rf(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Jc(e,t,n),e=e.sibling;e!==null;)Jc(e,t,n),e=e.sibling}function Yc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&rf(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Yc(e,t,n),e=e.sibling;e!==null;)Yc(e,t,n),e=e.sibling}function Xc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Bd(t,r,n),t[at]=e,t[ot]=n}catch(t){Ju(e,e.return,t)}}var Zc=!1,Qc=!1,$c=!1,el=typeof WeakSet==`function`?WeakSet:Set,tl=null;function nl(e,t){if(e=e.containerInfo,Wd=pp,e=wr(e),Tr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Gd={focusedElem:e,selectionRange:n},pp=!1,tl=t;tl!==null;)if(t=tl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,tl=e;else for(;tl!==null;){switch(t=tl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Hs(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Ju(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)sf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:sf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,tl=e;break}tl=t.return}}function rl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:vl(e,n),r&4&&Rc(5,n);break;case 1:if(vl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Ju(n,n.return,e)}else{var i=Hs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Ju(n,n.return,e)}}r&64&&Bc(n),r&512&&Hc(n,n.return);break;case 3:if(vl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ga(e,t)}catch(e){Ju(n,n.return,e)}}break;case 27:t===null&&r&4&&Xc(n);case 26:case 5:vl(e,n),t===null&&r&4&&Wc(n),r&512&&Hc(n,n.return);break;case 12:vl(e,n);break;case 31:vl(e,n),r&4&&ll(e,n);break;case 13:vl(e,n),r&4&&ul(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Qu.bind(null,n),pf(e,n))));break;case 22:if(r=n.memoizedState!==null||Zc,!r){t=t!==null&&t.memoizedState!==null||Qc,i=Zc;var a=Qc;Zc=r,(Qc=t)&&!a?bl(e,n,(n.subtreeFlags&8772)!=0):vl(e,n),Zc=i,Qc=a}break;case 30:break;default:vl(e,n)}}function il(e){var t=e.alternate;t!==null&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&pt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var al=null,ol=!1;function sl(e,t,n){for(n=n.child;n!==null;)cl(e,t,n),n=n.sibling}function cl(e,t,n){if(Pe&&typeof Pe.onCommitFiberUnmount==`function`)try{Pe.onCommitFiberUnmount(Ne,n)}catch{}switch(n.tag){case 26:Qc||Uc(n,t),sl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Qc||Uc(n,t);var r=al,i=ol;rf(n.type)&&(al=n.stateNode,ol=!1),sl(e,t,n),yf(n.stateNode),al=r,ol=i;break;case 5:Qc||Uc(n,t);case 6:if(r=al,i=ol,al=null,sl(e,t,n),al=r,ol=i,al!==null)if(ol)try{(al.nodeType===9?al.body:al.nodeName===`HTML`?al.ownerDocument.body:al).removeChild(n.stateNode)}catch(e){Ju(n,t,e)}else try{al.removeChild(n.stateNode)}catch(e){Ju(n,t,e)}break;case 18:al!==null&&(ol?(e=al,af(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),zp(e)):af(al,n.stateNode));break;case 4:r=al,i=ol,al=n.stateNode.containerInfo,ol=!0,sl(e,t,n),al=r,ol=i;break;case 0:case 11:case 14:case 15:zc(2,n,t),Qc||zc(4,n,t),sl(e,t,n);break;case 1:Qc||(Uc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Vc(n,t,r)),sl(e,t,n);break;case 21:sl(e,t,n);break;case 22:Qc=(r=Qc)||n.memoizedState!==null,sl(e,t,n),Qc=r;break;default:sl(e,t,n)}}function ll(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{zp(e)}catch(e){Ju(t,t.return,e)}}}function ul(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{zp(e)}catch(e){Ju(t,t.return,e)}}function dl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new el),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new el),t;default:throw Error(i(435,e.tag))}}function fl(e,t){var n=dl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=$u.bind(null,e,t);t.then(r,r)}})}function pl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(rf(c.type)){al=c.stateNode,ol=!1;break a}break;case 5:al=c.stateNode,ol=!1;break a;case 3:case 4:al=c.stateNode.containerInfo,ol=!0;break a}c=c.return}if(al===null)throw Error(i(160));cl(o,s,a),al=null,ol=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)hl(t,e),t=t.sibling}var ml=null;function hl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:pl(t,e),gl(e),r&4&&(zc(3,e,e.return),Rc(3,e),zc(5,e,e.return));break;case 1:pl(t,e),gl(e),r&512&&(Qc||n===null||Uc(n,n.return)),r&64&&Zc&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=ml;if(pl(t,e),gl(e),r&512&&(Qc||n===null||Uc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[ft]||o[at]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Bd(o,r,n),o[at]=e,_t(o),r=o;break a;case`link`:var s=qf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Bd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=qf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Bd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[at]=e,_t(o),r=o}e.stateNode=r}else Jf(a,e.type,e.stateNode);else e.stateNode=Hf(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&Gc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Jf(a,e.type,e.stateNode):Hf(a,r,e.memoizedProps))}break;case 27:pl(t,e),gl(e),r&512&&(Qc||n===null||Uc(n,n.return)),n!==null&&r&4&&Gc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(pl(t,e),gl(e),r&512&&(Qc||n===null||Uc(n,n.return)),e.flags&32){a=e.stateNode;try{Ut(a,``)}catch(t){Ju(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Gc(e,a,n===null?a:n.memoizedProps)),r&1024&&($c=!0);break;case 6:if(pl(t,e),gl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Ju(e,e.return,t)}}break;case 3:if(Kf=null,a=ml,ml=Sf(t.containerInfo),pl(t,e),ml=a,gl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{zp(t.containerInfo)}catch(t){Ju(e,e.return,t)}$c&&($c=!1,_l(e));break;case 4:r=ml,ml=Sf(e.stateNode.containerInfo),pl(t,e),gl(e),ml=r;break;case 12:pl(t,e),gl(e);break;case 31:pl(t,e),gl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,fl(e,r)));break;case 13:pl(t,e),gl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(nu=we()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,fl(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Zc,d=Qc;if(Zc=u||a,Qc=d||l,pl(t,e),Qc=d,Zc=u,gl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||Zc||Qc||yl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Ju(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Ju(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?of(m,!0):of(l.stateNode,!1)}catch(e){Ju(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,fl(e,n))));break;case 19:pl(t,e),gl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,fl(e,r)));break;case 30:break;case 21:break;default:pl(t,e),gl(e)}}function gl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Kc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;Yc(e,qc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Ut(o,``),n.flags&=-33),Yc(e,qc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Jc(e,qc(e),s);break;default:throw Error(i(161))}}catch(t){Ju(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function _l(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;_l(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function vl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)rl(e,t.alternate,t),t=t.sibling}function yl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:zc(4,t,t.return),yl(t);break;case 1:Uc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Vc(t,t.return,n),yl(t);break;case 27:yf(t.stateNode);case 26:case 5:Uc(t,t.return),yl(t);break;case 22:t.memoizedState===null&&yl(t);break;case 30:yl(t);break;default:yl(t)}e=e.sibling}}function bl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:bl(i,a,n),Rc(4,a);break;case 1:if(bl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Ju(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Wa(c[i],s)}catch(e){Ju(r,r.return,e)}}n&&o&64&&Bc(a),Hc(a,a.return);break;case 27:Xc(a);case 26:case 5:bl(i,a,n),n&&r===null&&o&4&&Wc(a),Hc(a,a.return);break;case 12:bl(i,a,n);break;case 31:bl(i,a,n),n&&o&4&&ll(i,a);break;case 13:bl(i,a,n),n&&o&4&&ul(i,a);break;case 22:a.memoizedState===null&&bl(i,a,n),Hc(a,a.return);break;case 30:break;default:bl(i,a,n)}t=t.sibling}}function xl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ra(n))}function Sl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ra(e))}function Cl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)wl(e,t,n,r),t=t.sibling}function wl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Cl(e,t,n,r),i&2048&&Rc(9,t);break;case 1:Cl(e,t,n,r);break;case 3:Cl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ra(e)));break;case 12:if(i&2048){Cl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Ju(t,t.return,e)}}else Cl(e,t,n,r);break;case 31:Cl(e,t,n,r);break;case 13:Cl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Cl(e,t,n,r):(a._visibility|=2,Tl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?Cl(e,t,n,r):El(e,t),i&2048&&xl(o,t);break;case 24:Cl(e,t,n,r),i&2048&&Sl(t.alternate,t);break;default:Cl(e,t,n,r)}}function Tl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Tl(a,o,s,c,i),Rc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Tl(a,o,s,c,i)):u._visibility&2?Tl(a,o,s,c,i):El(a,o),i&&l&2048&&xl(o.alternate,o);break;case 24:Tl(a,o,s,c,i),i&&l&2048&&Sl(o.alternate,o);break;default:Tl(a,o,s,c,i)}t=t.sibling}}function El(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:El(n,r),i&2048&&xl(r.alternate,r);break;case 24:El(n,r),i&2048&&Sl(r.alternate,r);break;default:El(n,r)}t=t.sibling}}var Dl=8192;function Ol(e,t,n){if(e.subtreeFlags&Dl)for(e=e.child;e!==null;)kl(e,t,n),e=e.sibling}function kl(e,t,n){switch(e.tag){case 26:Ol(e,t,n),e.flags&Dl&&e.memoizedState!==null&&Zf(n,ml,e.memoizedState,e.memoizedProps);break;case 5:Ol(e,t,n);break;case 3:case 4:var r=ml;ml=Sf(e.stateNode.containerInfo),Ol(e,t,n),ml=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Dl,Dl=16777216,Ol(e,t,n),Dl=r):Ol(e,t,n));break;default:Ol(e,t,n)}}function Al(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function jl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];tl=r,Pl(r,e)}Al(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ml(e),e=e.sibling}function Ml(e){switch(e.tag){case 0:case 11:case 15:jl(e),e.flags&2048&&zc(9,e,e.return);break;case 3:jl(e);break;case 12:jl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Nl(e)):jl(e);break;default:jl(e)}}function Nl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];tl=r,Pl(r,e)}Al(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:zc(8,t,t.return),Nl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Nl(t));break;default:Nl(t)}e=e.sibling}}function Pl(e,t){for(;tl!==null;){var n=tl;switch(n.tag){case 0:case 11:case 15:zc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ra(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,tl=r;else a:for(n=e;tl!==null;){r=tl;var i=r.sibling,a=r.return;if(il(r),r===n){tl=null;break a}if(i!==null){i.return=a,tl=i;break a}tl=a}}}var Fl={getCacheForType:function(e){var t=Xi(ta),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Xi(ta).controller.signal}},Il=typeof WeakMap==`function`?WeakMap:Map,Ll=0,Rl=null,zl=null,Bl=0,Vl=0,Hl=null,Ul=!1,Wl=!1,Gl=!1,Kl=0,ql=0,Jl=0,Yl=0,Xl=0,Zl=0,Ql=0,$l=null,eu=null,tu=!1,nu=0,ru=0,iu=1/0,au=null,ou=null,su=0,cu=null,lu=null,uu=0,du=0,fu=null,pu=null,mu=0,hu=null;function gu(){return Ll&2&&Bl!==0?Bl&-Bl:I.T===null?nt():hd()}function _u(){if(Zl===0)if(!(Bl&536870912)||ki){var e=Ve;Ve<<=1,!(Ve&3932160)&&(Ve=262144),Zl=e}else Zl=536870912;return e=Za.current,e!==null&&(e.flags|=32),Zl}function vu(e,t,n){(e===Rl&&(Vl===2||Vl===9)||e.cancelPendingCommit!==null)&&(Tu(e,0),Su(e,Bl,Zl,!1)),Ye(e,n),(!(Ll&2)||e!==Rl)&&(e===Rl&&(!(Ll&2)&&(Yl|=n),ql===4&&Su(e,Bl,Zl,!1)),sd(e))}function yu(e,t,n){if(Ll&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Ge(e,t),a=r?Nu(e,t):ju(e,t,!0),o=r;do{if(a===0){Wl&&!r&&Su(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!xu(n)){a=ju(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=$l;var l=c.current.memoizedState.isDehydrated;if(l&&(Tu(c,s).flags|=256),s=ju(c,s,!1),s!==2){if(Gl&&!l){c.errorRecoveryDisabledLanes|=o,Yl|=o,a=4;break a}o=eu,eu=a,o!==null&&(eu===null?eu=o:eu.push.apply(eu,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Tu(e,0),Su(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Su(r,t,Zl,!Ul);break a;case 2:eu=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=nu+300-we(),10<a)){if(Su(r,t,Zl,!Ul),We(r,0,!0)!==0)break a;uu=t,r.timeoutHandle=Qd(bu.bind(null,r,n,eu,au,tu,t,Zl,Yl,Ql,Ul,o,`Throttled`,-0,0),a);break a}bu(r,n,eu,au,tu,t,Zl,Yl,Ql,Ul,o,null,-0,0)}}break}while(1);sd(e)}function bu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Xt},kl(t,a,d);var m=(a&62914560)===a?nu-we():(a&4194048)===a?ru-we():0;if(m=$f(d,m),m!==null){uu=a,e.cancelPendingCommit=m(Bu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),Su(e,a,o,!l);return}}Bu(e,t,a,n,r,i,o,s,c)}function xu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!yr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Su(e,t,n,r){t&=~Xl,t&=~Yl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ie(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Ze(e,n,t)}function Cu(){return Ll&6?!0:(cd(0,!1),!1)}function wu(){if(zl!==null){if(Vl===0)var e=zl.return;else e=zl,Hi=Vi=null,Eo(e),Ea=null,Da=0,e=zl;for(;e!==null;)Lc(e.alternate,e),e=e.return;zl=null}}function Tu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,$d(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),uu=0,wu(),Rl=e,zl=n=ii(e.current,null),Bl=t,Vl=0,Hl=null,Ul=!1,Wl=Ge(e,t),Gl=!1,Ql=Zl=Xl=Yl=Jl=ql=0,eu=$l=null,tu=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Ie(r),a=1<<i;t|=e[i],r&=~a}return Kl=t,Jr(),n}function Eu(e,t){so=null,I.H=Ps,t===ga||t===va?(t=wa(),Vl=3):t===_a?(t=wa(),Vl=4):Vl=t===Qs?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Hl=t,zl===null&&(ql=1,Ks(e,fi(t,e.current)))}function Du(){var e=Za.current;return e===null?!0:(Bl&4194048)===Bl?Qa===null:(Bl&62914560)===Bl||Bl&536870912?e===Qa:!1}function Ou(){var e=I.H;return I.H=Ps,e===null?Ps:e}function ku(){var e=I.A;return I.A=Fl,e}function Au(){ql=4,Ul||(Bl&4194048)!==Bl&&Za.current!==null||(Wl=!0),!(Jl&134217727)&&!(Yl&134217727)||Rl===null||Su(Rl,Bl,Zl,!1)}function ju(e,t,n){var r=Ll;Ll|=2;var i=Ou(),a=ku();(Rl!==e||Bl!==t)&&(au=null,Tu(e,t)),t=!1;var o=ql;a:do try{if(Vl!==0&&zl!==null){var s=zl,c=Hl;switch(Vl){case 8:wu(),o=6;break a;case 3:case 2:case 9:case 6:Za.current===null&&(t=!0);var l=Vl;if(Vl=0,Hl=null,Lu(e,s,c,l),n&&Wl){o=0;break a}break;default:l=Vl,Vl=0,Hl=null,Lu(e,s,c,l)}}Mu(),o=ql;break}catch(t){Eu(e,t)}while(1);return t&&e.shellSuspendCounter++,Hi=Vi=null,Ll=r,I.H=i,I.A=a,zl===null&&(Rl=null,Bl=0,Jr()),o}function Mu(){for(;zl!==null;)Fu(zl)}function Nu(e,t){var n=Ll;Ll|=2;var r=Ou(),a=ku();Rl!==e||Bl!==t?(au=null,iu=we()+500,Tu(e,t)):Wl=Ge(e,t);a:do try{if(Vl!==0&&zl!==null){t=zl;var o=Hl;b:switch(Vl){case 1:Vl=0,Hl=null,Lu(e,t,o,1);break;case 2:case 9:if(ba(o)){Vl=0,Hl=null,Iu(t);break}t=function(){Vl!==2&&Vl!==9||Rl!==e||(Vl=7),sd(e)},o.then(t,t);break a;case 3:Vl=7;break a;case 4:Vl=5;break a;case 7:ba(o)?(Vl=0,Hl=null,Iu(t)):(Vl=0,Hl=null,Lu(e,t,o,7));break;case 5:var s=null;switch(zl.tag){case 26:s=zl.memoizedState;case 5:case 27:var c=zl;if(s?Xf(s):c.stateNode.complete){Vl=0,Hl=null;var l=c.sibling;if(l!==null)zl=l;else{var u=c.return;u===null?zl=null:(zl=u,Ru(u))}break b}}Vl=0,Hl=null,Lu(e,t,o,5);break;case 6:Vl=0,Hl=null,Lu(e,t,o,6);break;case 8:wu(),ql=6;break a;default:throw Error(i(462))}}Pu();break}catch(t){Eu(e,t)}while(1);return Hi=Vi=null,I.H=r,I.A=a,Ll=n,zl===null?(Rl=null,Bl=0,Jr(),ql):0}function Pu(){for(;zl!==null&&!Se();)Fu(zl)}function Fu(e){var t=Oc(e.alternate,e,Kl);e.memoizedProps=e.pendingProps,t===null?Ru(e):zl=t}function Iu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=fc(n,t,t.pendingProps,t.type,void 0,Bl);break;case 11:t=fc(n,t,t.pendingProps,t.type.render,t.ref,Bl);break;case 5:Eo(t);default:Lc(n,t),t=zl=ai(t,Kl),t=Oc(n,t,Kl)}e.memoizedProps=e.pendingProps,t===null?Ru(e):zl=t}function Lu(e,t,n,r){Hi=Vi=null,Eo(t),Ea=null,Da=0;var i=t.return;try{if(Zs(e,i,t,n,Bl)){ql=1,Ks(e,fi(n,e.current)),zl=null;return}}catch(t){if(i!==null)throw zl=i,t;ql=1,Ks(e,fi(n,e.current)),zl=null;return}t.flags&32768?(ki||r===1?e=!0:Wl||Bl&536870912?e=!1:(Ul=e=!0,(r===2||r===9||r===3||r===6)&&(r=Za.current,r!==null&&r.tag===13&&(r.flags|=16384))),zu(t,e)):Ru(t)}function Ru(e){var t=e;do{if(t.flags&32768){zu(t,Ul);return}e=t.return;var n=Fc(t.alternate,t,Kl);if(n!==null){zl=n;return}if(t=t.sibling,t!==null){zl=t;return}zl=t=e}while(t!==null);ql===0&&(ql=5)}function zu(e,t){do{var n=Ic(e.alternate,e);if(n!==null){n.flags&=32767,zl=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){zl=e;return}zl=e=n}while(e!==null);ql=6,zl=null}function Bu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Gu();while(su!==0);if(Ll&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=qr,Xe(e,n,o,s,c,l),e===Rl&&(zl=Rl=null,Bl=0),lu=t,cu=e,uu=n,du=o,fu=a,pu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,ed(Oe,function(){return Ku(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=I.T,I.T=null,a=L.p,L.p=2,s=Ll,Ll|=4;try{nl(e,t,n)}finally{Ll=s,L.p=a,I.T=r}}su=1,Vu(),Hu(),Uu()}}function Vu(){if(su===1){su=0;var e=cu,t=lu,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=I.T,I.T=null;var r=L.p;L.p=2;var i=Ll;Ll|=4;try{hl(t,e);var a=Gd,o=wr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Cr(s.ownerDocument.documentElement,s)){if(c!==null&&Tr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Sr(s,h),v=Sr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}pp=!!Wd,Gd=Wd=null}finally{Ll=i,L.p=r,I.T=n}}e.current=t,su=2}}function Hu(){if(su===2){su=0;var e=cu,t=lu,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=I.T,I.T=null;var r=L.p;L.p=2;var i=Ll;Ll|=4;try{rl(e,t.alternate,t)}finally{Ll=i,L.p=r,I.T=n}}su=3}}function Uu(){if(su===4||su===3){su=0,Ce();var e=cu,t=lu,n=uu,r=pu;t.subtreeFlags&10256||t.flags&10256?su=5:(su=0,lu=cu=null,Wu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ou=null),tt(n),t=t.stateNode,Pe&&typeof Pe.onCommitFiberRoot==`function`)try{Pe.onCommitFiberRoot(Ne,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=I.T,i=L.p,L.p=2,I.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{I.T=t,L.p=i}}uu&3&&Gu(),sd(e),i=e.pendingLanes,n&261930&&i&42?e===hu?mu++:(mu=0,hu=e):mu=0,cd(0,!1)}}function Wu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ra(t)))}function Gu(){return Vu(),Hu(),Uu(),Ku()}function Ku(){if(su!==5)return!1;var e=cu,t=du;du=0;var n=tt(uu),r=I.T,a=L.p;try{L.p=32>n?32:n,I.T=null,n=fu,fu=null;var o=cu,s=uu;if(su=0,lu=cu=null,uu=0,Ll&6)throw Error(i(331));var c=Ll;if(Ll|=4,Ml(o.current),wl(o,o.current,s,n),Ll=c,cd(0,!1),Pe&&typeof Pe.onPostCommitFiberRoot==`function`)try{Pe.onPostCommitFiberRoot(Ne,o)}catch{}return!0}finally{L.p=a,I.T=r,Wu(e,t)}}function qu(e,t,n){t=fi(n,t),t=Js(e.stateNode,t,2),e=Ra(e,t,2),e!==null&&(Ye(e,2),sd(e))}function Ju(e,t,n){if(e.tag===3)qu(e,e,n);else for(;t!==null;){if(t.tag===3){qu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(ou===null||!ou.has(r))){e=fi(n,e),n=Ys(2),r=Ra(t,n,2),r!==null&&(Xs(n,r,t,e),Ye(r,2),sd(r));break}}t=t.return}}function Yu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Il;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Gl=!0,i.add(n),e=Xu.bind(null,e,t,n),t.then(e,e))}function Xu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Rl===e&&(Bl&n)===n&&(ql===4||ql===3&&(Bl&62914560)===Bl&&300>we()-nu?!(Ll&2)&&Tu(e,0):Xl|=n,Ql===Bl&&(Ql=0)),sd(e)}function Zu(e,t){t===0&&(t=qe()),e=Zr(e,t),e!==null&&(Ye(e,t),sd(e))}function Qu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Zu(e,n)}function $u(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Zu(e,n)}function ed(e,t){return be(e,t)}var td=null,nd=null,rd=!1,id=!1,ad=!1,od=0;function sd(e){e!==nd&&e.next===null&&(nd===null?td=nd=e:nd=nd.next=e),id=!0,rd||(rd=!0,md())}function cd(e,t){if(!ad&&id){ad=!0;do for(var n=!1,r=td;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ie(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,pd(r,a))}else a=Bl,a=We(r,r===Rl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ge(r,a)||(n=!0,pd(r,a));r=r.next}while(n);ad=!1}}function ld(){ud()}function ud(){id=rd=!1;var e=0;od!==0&&Zd()&&(e=od);for(var t=we(),n=null,r=td;r!==null;){var i=r.next,a=dd(r,t);a===0?(r.next=null,n===null?td=i:n.next=i,i===null&&(nd=n)):(n=r,(e!==0||a&3)&&(id=!0)),r=i}su!==0&&su!==5||cd(e,!1),od!==0&&(od=0)}function dd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ie(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ke(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Rl,n=Bl,n=We(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Vl===2||Vl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&xe(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ge(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&xe(r),tt(n)){case 2:case 8:n=De;break;case 32:n=Oe;break;case 268435456:n=Ae;break;default:n=Oe}return r=fd.bind(null,e),n=be(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&xe(r),e.callbackPriority=2,e.callbackNode=null,2}function fd(e,t){if(su!==0&&su!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Gu()&&e.callbackNode!==n)return null;var r=Bl;return r=We(e,e===Rl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(yu(e,r,t),dd(e,we()),e.callbackNode!=null&&e.callbackNode===n?fd.bind(null,e):null)}function pd(e,t){if(Gu())return null;yu(e,t,!0)}function md(){tf(function(){Ll&6?be(Ee,ld):ud()})}function hd(){if(od===0){var e=oa;e===0&&(e=Be,Be<<=1,!(Be&261888)&&(Be=256)),od=e}return od}function gd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Yt(``+e)}function _d(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function vd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=gd((i[ot]||null).action),o=r.submitter;o&&(t=(t=o[ot]||null)?gd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new vn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(od!==0){var e=o?_d(i,o):new FormData(i);bs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?_d(i,o):new FormData(i),bs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var yd=0;yd<U.length;yd++){var bd=U[yd];W(bd.toLowerCase(),`on`+(bd[0].toUpperCase()+bd.slice(1)))}W(Lr,`onAnimationEnd`),W(Rr,`onAnimationIteration`),W(zr,`onAnimationStart`),W(`dblclick`,`onDoubleClick`),W(`focusin`,`onFocus`),W(`focusout`,`onBlur`),W(Br,`onTransitionRun`),W(Vr,`onTransitionStart`),W(H,`onTransitionCancel`),W(Hr,`onTransitionEnd`),xt(`onMouseEnter`,[`mouseout`,`mouseover`]),xt(`onMouseLeave`,[`mouseout`,`mouseover`]),xt(`onPointerEnter`,[`pointerout`,`pointerover`]),xt(`onPointerLeave`,[`pointerout`,`pointerover`]),bt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),bt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),bt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),bt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),bt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),bt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var xd=`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(` `),Sd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(xd));function Cd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Wr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Wr(e)}i.currentTarget=null,a=c}}}}function wd(e,t){var n=t[ct];n===void 0&&(n=t[ct]=new Set);var r=e+`__bubble`;n.has(r)||(Od(t,e,2,!1),n.add(r))}function Td(e,t,n){var r=0;t&&(r|=4),Od(n,e,r,t)}var Ed=`_reactListening`+Math.random().toString(36).slice(2);function Dd(e){if(!e[Ed]){e[Ed]=!0,vt.forEach(function(t){t!==`selectionchange`&&(Sd.has(t)||Td(t,!1,e),Td(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ed]||(t[Ed]=!0,Td(`selectionchange`,!1,t))}}function Od(e,t,n,r){switch(bp(t)){case 2:var i=mp;break;case 8:i=hp;break;default:i=gp}n=i.bind(null,t,n,e),i=void 0,!sn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function kd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=mt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}rn(function(){var r=a,i=Qt(n),s=[];a:{var c=Ur.get(e);if(c!==void 0){var l=vn,u=e;switch(e){case`keypress`:if(pn(n)===0)break a;case`keydown`:case`keyup`:l=In;break;case`focusin`:u=`focus`,l=Dn;break;case`focusout`:u=`blur`,l=Dn;break;case`beforeblur`:case`afterblur`:l=Dn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Tn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=En;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Rn;break;case Lr:case Rr:case zr:l=On;break;case Hr:l=zn;break;case`scroll`:case`scrollend`:l=bn;break;case`wheel`:l=Bn;break;case`copy`:case`cut`:case`paste`:l=kn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Ln;break;case`toggle`:case`beforetoggle`:l=Vn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=an(m,p),g!=null&&d.push(Ad(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==Zt&&(u=n.relatedTarget||n.fromElement)&&(mt(u)||u[st]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?mt(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=Tn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Ln,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:gt(l),h=u==null?c:gt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,mt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Md,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Nd(s,c,l,d,!1),u!==null&&f!==null&&Nd(s,f,u,d,!0)}}a:{if(c=r?gt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=sr;else if(tr(c))if(cr)v=_r;else{v=hr;var y=mr}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&qt(r.elementType)&&(v=sr):v=gr;if(v&&=v(e,r)){nr(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&zt(c,`number`,c.value)}switch(y=r?gt(r):window,e){case`focusin`:(tr(y)||y.contentEditable===`true`)&&(Dr=y,Or=r,kr=null);break;case`focusout`:kr=Or=Dr=null;break;case`mousedown`:Ar=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Ar=!1,jr(s,n,i);break;case`selectionchange`:if(Er)break;case`keydown`:case`keyup`:jr(s,n,i)}var b;if(Un)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else Zn?Yn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Kn&&n.locale!==`ko`&&(Zn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Zn&&(b=fn()):(ln=i,un=`value`in ln?ln.value:ln.textContent,Zn=!0)),y=jd(r,x),0<y.length&&(x=new An(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=Xn(n),b!==null&&(x.data=b)))),(b=Gn?Qn(e,n):$n(e,n))&&(x=jd(r,`onBeforeInput`),0<x.length&&(y=new An(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),vd(s,e,r,n,i)}Cd(s,t)})}function Ad(e,t,n){return{instance:e,listener:t,currentTarget:n}}function jd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=an(e,n),i!=null&&r.unshift(Ad(e,i,a)),i=an(e,t),i!=null&&r.push(Ad(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Md(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Nd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=an(n,a),l!=null&&o.unshift(Ad(n,l,c))):i||(l=an(n,a),l!=null&&o.push(Ad(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Pd=/\r\n?/g,Fd=/\u0000|\uFFFD/g;function Id(e){return(typeof e==`string`?e:``+e).replace(Pd,`
|
|
9
|
+
`).replace(Fd,``)}function Ld(e,t){return t=Id(t),Id(e)===t}function Rd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Ut(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Ut(e,``+r);break;case`className`:Dt(e,`class`,r);break;case`tabIndex`:Dt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Dt(e,n,r);break;case`style`:Kt(e,r,o);break;case`data`:if(t!==`object`){Dt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Yt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&Rd(e,t,`name`,a.name,a,null),Rd(e,t,`formEncType`,a.formEncType,a,null),Rd(e,t,`formMethod`,a.formMethod,a,null),Rd(e,t,`formTarget`,a.formTarget,a,null)):(Rd(e,t,`encType`,a.encType,a,null),Rd(e,t,`method`,a.method,a,null),Rd(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Yt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Xt);break;case`onScroll`:r!=null&&wd(`scroll`,e);break;case`onScrollEnd`:r!=null&&wd(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Yt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:wd(`beforetoggle`,e),wd(`toggle`,e),Et(e,`popover`,r);break;case`xlinkActuate`:Ot(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Ot(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Ot(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Ot(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Ot(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Ot(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Ot(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Ot(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Ot(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Et(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Jt.get(n)||n,Et(e,n,r))}}function zd(e,t,n,r,a,o){switch(n){case`style`:Kt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Ut(e,r):(typeof r==`number`||typeof r==`bigint`)&&Ut(e,``+r);break;case`onScroll`:r!=null&&wd(`scroll`,e);break;case`onScrollEnd`:r!=null&&wd(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Xt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!yt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[ot]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Et(e,n,r)}}}function Bd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:wd(`error`,e),wd(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Rd(e,t,o,s,n,null)}}a&&Rd(e,t,`srcSet`,n.srcSet,n,null),r&&Rd(e,t,`src`,n.src,n,null);return;case`input`:wd(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Rd(e,t,r,d,n,null)}}Rt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in wd(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Rd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Bt(e,!!r,n,!0):Bt(e,!!r,t,!1);return;case`textarea`:for(s in wd(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Rd(e,t,s,c,n,null)}Ht(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Rd(e,t,l,r,n,null)}return;case`dialog`:wd(`beforetoggle`,e),wd(`toggle`,e),wd(`cancel`,e),wd(`close`,e);break;case`iframe`:case`object`:wd(`load`,e);break;case`video`:case`audio`:for(r=0;r<xd.length;r++)wd(xd[r],e);break;case`image`:wd(`error`,e),wd(`load`,e);break;case`details`:wd(`toggle`,e);break;case`embed`:case`source`:case`link`:wd(`error`,e),wd(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Rd(e,t,u,r,n,null)}return;default:if(qt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&zd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Rd(e,t,c,r,n,null))}function Vd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Rd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Rd(e,t,p,m,r,f)}}Lt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Rd(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Rd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Bt(e,!!n,n?[]:``,!1):Bt(e,!!n,t,!0)):Bt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Rd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Rd(e,t,s,a,r,o)}Vt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Rd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Rd(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Rd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Rd(e,t,u,p,r,m)}return;default:if(qt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&zd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||zd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Rd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Rd(e,t,f,p,r,m)}function Hd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Ud(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Hd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Hd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Wd=null,Gd=null;function Kd(e){return e.nodeType===9?e:e.ownerDocument}function qd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Jd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Yd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Xd=null;function Zd(){var e=window.event;return e&&e.type===`popstate`?e===Xd?!1:(Xd=e,!0):(Xd=null,!1)}var Qd=typeof setTimeout==`function`?setTimeout:void 0,$d=typeof clearTimeout==`function`?clearTimeout:void 0,ef=typeof Promise==`function`?Promise:void 0,tf=typeof queueMicrotask==`function`?queueMicrotask:ef===void 0?Qd:function(e){return ef.resolve(null).then(e).catch(nf)};function nf(e){setTimeout(function(){throw e})}function rf(e){return e===`head`}function af(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),zp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)yf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,yf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[ft]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&yf(e.ownerDocument.body);n=i}while(n);zp(t)}function of(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function sf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:sf(n),pt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function cf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[ft])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=mf(e.nextSibling),e===null)break}return null}function lf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=mf(e.nextSibling),e===null))return null;return e}function uf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=mf(e.nextSibling),e===null))return null;return e}function df(e){return e.data===`$?`||e.data===`$~`}function ff(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function pf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function mf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var hf=null;function gf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return mf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function _f(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function vf(e,t,n){switch(t=Kd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function yf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);pt(e)}var bf=new Map,xf=new Set;function Sf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Cf=L.d;L.d={f:wf,r:Tf,D:Of,C:kf,L:Af,m:jf,X:Nf,S:Mf,M:Pf};function wf(){var e=Cf.f(),t=Cu();return e||t}function Tf(e){var t=ht(e);t!==null&&t.tag===5&&t.type===`form`?Ss(t):Cf.r(e)}var Ef=typeof document>`u`?null:document;function Df(e,t,n){var r=Ef;if(r&&typeof t==`string`&&t){var i=It(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),xf.has(i)||(xf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Bd(t,`link`,e),_t(t),r.head.appendChild(t)))}}function Of(e){Cf.D(e),Df(`dns-prefetch`,e,null)}function kf(e,t){Cf.C(e,t),Df(`preconnect`,e,t)}function Af(e,t,n){Cf.L(e,t,n);var r=Ef;if(r&&e&&t){var i=`link[rel="preload"][as="`+It(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+It(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+It(n.imageSizes)+`"]`)):i+=`[href="`+It(e)+`"]`;var a=i;switch(t){case`style`:a=If(e);break;case`script`:a=Bf(e)}bf.has(a)||(e=h({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),bf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Lf(a))||t===`script`&&r.querySelector(Vf(a))||(t=r.createElement(`link`),Bd(t,`link`,e),_t(t),r.head.appendChild(t)))}}function jf(e,t){Cf.m(e,t);var n=Ef;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+It(r)+`"][href="`+It(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Bf(e)}if(!bf.has(a)&&(e=h({rel:`modulepreload`,href:e},t),bf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Vf(a)))return}r=n.createElement(`link`),Bd(r,`link`,e),_t(r),n.head.appendChild(r)}}}function Mf(e,t,n){Cf.S(e,t,n);var r=Ef;if(r&&e){var i=B(r).hoistableStyles,a=If(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Lf(a)))s.loading=5;else{e=h({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=bf.get(a))&&Wf(e,n);var c=o=r.createElement(`link`);_t(c),Bd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Uf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Nf(e,t){Cf.X(e,t);var n=Ef;if(n&&e){var r=B(n).hoistableScripts,i=Bf(e),a=r.get(i);a||(a=n.querySelector(Vf(i)),a||(e=h({src:e,async:!0},t),(t=bf.get(i))&&Gf(e,t),a=n.createElement(`script`),_t(a),Bd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Pf(e,t){Cf.M(e,t);var n=Ef;if(n&&e){var r=B(n).hoistableScripts,i=Bf(e),a=r.get(i);a||(a=n.querySelector(Vf(i)),a||(e=h({src:e,async:!0,type:`module`},t),(t=bf.get(i))&&Gf(e,t),a=n.createElement(`script`),_t(a),Bd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Ff(e,t,n,r){var a=(a=oe.current)?Sf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=If(n.href),n=B(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=If(n.href);var o=B(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Lf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),bf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},bf.set(e,n),o||zf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Bf(n),n=B(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function If(e){return`href="`+It(e)+`"`}function Lf(e){return`link[rel="stylesheet"][`+e+`]`}function Rf(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function zf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Bd(t,`link`,n),_t(t),e.head.appendChild(t))}function Bf(e){return`[src="`+It(e)+`"]`}function Vf(e){return`script[async]`+e}function Hf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+It(n.href)+`"]`);if(r)return t.instance=r,_t(r),r;var a=h({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),_t(r),Bd(r,`style`,a),Uf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=If(n.href);var o=e.querySelector(Lf(a));if(o)return t.state.loading|=4,t.instance=o,_t(o),o;r=Rf(n),(a=bf.get(a))&&Wf(r,a),o=(e.ownerDocument||e).createElement(`link`),_t(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Bd(o,`link`,r),t.state.loading|=4,Uf(o,n.precedence,e),t.instance=o;case`script`:return o=Bf(n.src),(a=e.querySelector(Vf(o)))?(t.instance=a,_t(a),a):(r=n,(a=bf.get(o))&&(r=h({},n),Gf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),_t(a),Bd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Uf(r,n.precedence,e));return t.instance}function Uf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Wf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Gf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Kf=null;function qf(e,t,n){if(Kf===null){var r=new Map,i=Kf=new Map;i.set(n,r)}else i=Kf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[ft]||a[at]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Jf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Yf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Xf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Zf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=If(r.href),a=t.querySelector(Lf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=ep.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,_t(a);return}a=t.ownerDocument||t,r=Rf(r),(i=bf.get(i))&&Wf(r,i),a=a.createElement(`link`),_t(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Bd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=ep.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Qf=0;function $f(e,t){return e.stylesheets&&e.count===0&&np(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&np(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Qf===0&&(Qf=62500*Ud());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&np(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Qf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function ep(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)np(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var tp=null;function np(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,tp=new Map,t.forEach(rp,e),tp=null,ep.call(e))}function rp(e,t){if(!(t.state.loading&4)){var n=tp.get(e);if(n)var r=n.get(null);else{n=new Map,tp.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=ep.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var ip={$$typeof:C,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function ap(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Je(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Je(0),this.hiddenUpdates=Je(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function op(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ap(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ni(3,null,null,t),e.current=a,a.stateNode=e,t=na(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Fa(a),e}function sp(e){return e?(e=ei,e):ei}function cp(e,t,n,r,i,a){i=sp(i),r.context===null?r.context=i:r.pendingContext=i,r=La(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ra(e,r,t),n!==null&&(vu(n,e,t),za(n,e,t))}function lp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function up(e,t){lp(e,t),(e=e.alternate)&&lp(e,t)}function dp(e){if(e.tag===13||e.tag===31){var t=Zr(e,67108864);t!==null&&vu(t,e,67108864),up(e,67108864)}}function fp(e){if(e.tag===13||e.tag===31){var t=gu();t=et(t);var n=Zr(e,t);n!==null&&vu(n,e,t),up(e,t)}}var pp=!0;function mp(e,t,n,r){var i=I.T;I.T=null;var a=L.p;try{L.p=2,gp(e,t,n,r)}finally{L.p=a,I.T=i}}function hp(e,t,n,r){var i=I.T;I.T=null;var a=L.p;try{L.p=8,gp(e,t,n,r)}finally{L.p=a,I.T=i}}function gp(e,t,n,r){if(pp){var i=_p(r);if(i===null)kd(e,t,r,vp,n),kp(e,r);else if(jp(i,e,t,n,r))r.stopPropagation();else if(kp(e,r),t&4&&-1<Op.indexOf(e)){for(;i!==null;){var a=ht(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ue(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ie(o);s.entanglements[1]|=c,o&=~c}sd(a),!(Ll&6)&&(iu=we()+500,cd(0,!1))}}break;case 31:case 13:s=Zr(a,2),s!==null&&vu(s,a,2),Cu(),up(a,2)}if(a=_p(r),a===null&&kd(e,t,r,vp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else kd(e,t,r,null,n)}}function _p(e){return e=Qt(e),yp(e)}var vp=null;function yp(e){if(vp=null,e=mt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return vp=e,null}function bp(e){switch(e){case`beforetoggle`: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`toggle`: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 2;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`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Te()){case Ee:return 2;case De:return 8;case Oe:case ke:return 32;case Ae:return 268435456;default:return 32}default:return 32}}var xp=!1,Sp=null,Cp=null,wp=null,Tp=new Map,Ep=new Map,Dp=[],Op=`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`.split(` `);function kp(e,t){switch(e){case`focusin`:case`focusout`:Sp=null;break;case`dragenter`:case`dragleave`:Cp=null;break;case`mouseover`:case`mouseout`:wp=null;break;case`pointerover`:case`pointerout`:Tp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Ep.delete(t.pointerId)}}function Ap(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=ht(t),t!==null&&dp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function jp(e,t,n,r,i){switch(t){case`focusin`:return Sp=Ap(Sp,e,t,n,r,i),!0;case`dragenter`:return Cp=Ap(Cp,e,t,n,r,i),!0;case`mouseover`:return wp=Ap(wp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Tp.set(a,Ap(Tp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Ep.set(a,Ap(Ep.get(a)||null,e,t,n,r,i)),!0}return!1}function Mp(e){var t=mt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,rt(e.priority,function(){fp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,rt(e.priority,function(){fp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Np(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=_p(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Zt=r,n.target.dispatchEvent(r),Zt=null}else return t=ht(n),t!==null&&dp(t),e.blockedOn=n,!1;t.shift()}return!0}function Pp(e,t,n){Np(e)&&n.delete(t)}function Fp(){xp=!1,Sp!==null&&Np(Sp)&&(Sp=null),Cp!==null&&Np(Cp)&&(Cp=null),wp!==null&&Np(wp)&&(wp=null),Tp.forEach(Pp),Ep.forEach(Pp)}function Ip(e,n){e.blockedOn===n&&(e.blockedOn=null,xp||(xp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Fp)))}var Lp=null;function Rp(e){Lp!==e&&(Lp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Lp===e&&(Lp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(yp(r||n)===null)continue;break}var a=ht(n);a!==null&&(e.splice(t,3),t-=3,bs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function zp(e){function t(t){return Ip(t,e)}Sp!==null&&Ip(Sp,e),Cp!==null&&Ip(Cp,e),wp!==null&&Ip(wp,e),Tp.forEach(t),Ep.forEach(t);for(var n=0;n<Dp.length;n++){var r=Dp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Dp.length&&(n=Dp[0],n.blockedOn===null);)Mp(n),n.blockedOn===null&&Dp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[ot]||null;if(typeof a==`function`)o||Rp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[ot]||null)s=o.formAction;else if(yp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Rp(n)}}}function Bp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Vp(e){this._internalRoot=e}Hp.prototype.render=Vp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;cp(n,gu(),e,t,null,null)},Hp.prototype.unmount=Vp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;cp(e.current,2,null,e,null,null),Cu(),t[st]=null}};function Hp(e){this._internalRoot=e}Hp.prototype.unstable_scheduleHydration=function(e){if(e){var t=nt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dp.length&&t!==0&&t<Dp[n].priority;n++);Dp.splice(n,0,e),n===0&&Mp(e)}};var Up=n.version;if(Up!==`19.2.7`)throw Error(i(527,Up,`19.2.7`));L.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=d(t),e=e===null?null:p(e),e=e===null?null:e.stateNode,e};var Wp={bundleType:0,version:`19.2.7`,rendererPackageName:`react-dom`,currentDispatcherRef:I,reconcilerVersion:`19.2.7`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Gp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gp.isDisabled&&Gp.supportsFiber)try{Ne=Gp.inject(Wp),Pe=Gp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Us,s=Ws,c=Gs;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=op(e,1,!1,null,null,n,r,null,o,s,c,Bp),e[st]=t.current,Dd(e),new Vp(t)}})),g=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=h()}));function _(e,...t){let n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append(`args[]`,e)),`Minified MUI error #${e}; visit ${n} for the full message.`}var v=`$$material`;function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(null,arguments)}var b=!1;function x(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function S(e){var t=document.createElement(`style`);return t.setAttribute(`data-emotion`,e.key),e.nonce!==void 0&&t.setAttribute(`nonce`,e.nonce),t.appendChild(document.createTextNode(``)),t.setAttribute(`data-s`,``),t}var C=function(){function e(e){var t=this;this._insertTag=function(e){var n=t.tags.length===0?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling;t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=e.speedy===void 0?!b:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(S(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=x(t);try{n.insertRule(e,n.cssRules.length)}catch{}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode?.removeChild(e)}),this.tags=[],this.ctr=0},e}(),w=`-ms-`,T=`-moz-`,E=`-webkit-`,D=`comm`,O=`rule`,k=`decl`,A=`@import`,j=`@keyframes`,M=`@layer`,N=Math.abs,P=String.fromCharCode,F=Object.assign;function I(e,t){return ne(e,0)^45?(((t<<2^ne(e,0))<<2^ne(e,1))<<2^ne(e,2))<<2^ne(e,3):0}function L(e){return e.trim()}function ee(e,t){return(e=t.exec(e))?e[0]:e}function R(e,t,n){return e.replace(t,n)}function te(e,t){return e.indexOf(t)}function ne(e,t){return e.charCodeAt(t)|0}function re(e,t,n){return e.slice(t,n)}function z(e){return e.length}function ie(e){return e.length}function ae(e,t){return t.push(e),e}function oe(e,t){return e.map(t).join(``)}var se=1,ce=1,le=0,ue=0,de=0,fe=``;function pe(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:se,column:ce,length:o,return:``}}function me(e,t){return F(pe(``,null,null,``,null,null,0),e,{length:-e.length},t)}function he(){return de}function ge(){return de=ue>0?ne(fe,--ue):0,ce--,de===10&&(ce=1,se--),de}function _e(){return de=ue<le?ne(fe,ue++):0,ce++,de===10&&(ce=1,se++),de}function ve(){return ne(fe,ue)}function ye(){return ue}function be(e,t){return re(fe,e,t)}function xe(e){switch(e){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 Se(e){return se=ce=1,le=z(fe=e),ue=0,[]}function Ce(e){return fe=``,e}function we(e){return L(be(ue-1,De(e===91?e+2:e===40?e+1:e)))}function Te(e){for(;(de=ve())&&de<33;)_e();return xe(e)>2||xe(de)>3?``:` `}function Ee(e,t){for(;--t&&_e()&&!(de<48||de>102||de>57&&de<65||de>70&&de<97););return be(e,ye()+(t<6&&ve()==32&&_e()==32))}function De(e){for(;_e();)switch(de){case e:return ue;case 34:case 39:e!==34&&e!==39&&De(de);break;case 40:e===41&&De(e);break;case 92:_e();break}return ue}function Oe(e,t){for(;_e()&&e+de!==57&&!(e+de===84&&ve()===47););return`/*`+be(t,ue-1)+`*`+P(e===47?e:_e())}function ke(e){for(;!xe(ve());)_e();return be(e,ue)}function Ae(e){return Ce(je(``,null,null,null,[``],e=Se(e),0,[0],e))}function je(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=_e()){case 40:if(m!=108&&ne(C,d-1)==58){te(C+=R(we(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=we(v);break;case 9:case 10:case 13:case 32:C+=Te(m);break;case 92:C+=Ee(ye()-1,7);continue;case 47:switch(ve()){case 42:case 47:ae(Ne(Oe(_e(),ye()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=z(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=R(C,/\f/g,``)),p>0&&z(C)-d&&ae(p>32?Pe(C+`;`,r,n,d-1):Pe(R(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(ae(S=Me(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123)if(u===0)je(C,t,S,S,b,a,d,s,x);else switch(f===99&&ne(C,3)===110?100:f){case 100:case 108:case 109:case 115:je(e,S,S,r&&ae(Me(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:je(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+z(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&ge()==125)continue}switch(C+=P(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(z(C)-1)*_,_=1;break;case 64:ve()===45&&(C+=we(_e())),f=ve(),u=d=z(y=C+=ke(ye())),v++;break;case 45:m===45&&z(C)==2&&(h=0)}}return a}function Me(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=ie(f),m=0,h=0,g=0;m<r;++m)for(var _=0,v=re(e,d+1,d=N(h=o[m])),y=e;_<p;++_)(y=L(h>0?f[_]+` `+v:R(v,/&\f/g,f[_])))&&(c[g++]=y);return pe(e,t,n,i===0?O:s,c,l,u)}function Ne(e,t,n){return pe(e,t,n,D,P(he()),re(e,2,-2),0)}function Pe(e,t,n,r){return pe(e,t,n,k,re(e,0,r),re(e,r+1,-1),r)}function Fe(e,t){for(var n=``,r=ie(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||``;return n}function Ie(e,t,n,r){switch(e.type){case M:if(e.children.length)break;case A:case k:return e.return=e.return||e.value;case D:return``;case j:return e.return=e.value+`{`+Fe(e.children,r)+`}`;case O:e.value=e.props.join(`,`)}return z(n=Fe(e.children,r))?e.return=e.value+`{`+n+`}`:``}function Le(e){var t=ie(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function Re(e){return function(t){t.root||(t=t.return)&&e(t)}}function ze(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Be=function(e,t,n){for(var r=0,i=0;r=i,i=ve(),r===38&&i===12&&(t[n]=1),!xe(i);)_e();return be(e,ue)},Ve=function(e,t){var n=-1,r=44;do switch(xe(r)){case 0:r===38&&ve()===12&&(t[n]=1),e[n]+=Be(ue-1,t,n);break;case 2:e[n]+=we(r);break;case 4:if(r===44){e[++n]=ve()===58?`&\f`:``,t[n]=e[n].length;break}default:e[n]+=P(r)}while(r=_e());return e},He=function(e,t){return Ce(Ve(Se(e),t))},Ue=new WeakMap,We=function(e){if(!(e.type!==`rule`||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!==`rule`;)if(n=n.parent,!n)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Ue.get(n))&&!r){Ue.set(e,!0);for(var i=[],a=He(t,i),o=n.props,s=0,c=0;s<a.length;s++)for(var l=0;l<o.length;l++,c++)e.props[c]=i[s]?a[s].replace(/&\f/g,o[l]):o[l]+` `+a[s]}}},Ge=function(e){if(e.type===`decl`){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return=``,e.value=``)}};function Ke(e,t){switch(I(e,t)){case 5103:return E+`print-`+e+e;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 E+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return E+e+T+e+w+e+e;case 6828:case 4268:return E+e+w+e+e;case 6165:return E+e+w+`flex-`+e+e;case 5187:return E+e+R(e,/(\w+).+(:[^]+)/,E+`box-$1$2`+w+`flex-$1$2`)+e;case 5443:return E+e+w+`flex-item-`+R(e,/flex-|-self/,``)+e;case 4675:return E+e+w+`flex-line-pack`+R(e,/align-content|flex-|-self/,``)+e;case 5548:return E+e+w+R(e,`shrink`,`negative`)+e;case 5292:return E+e+w+R(e,`basis`,`preferred-size`)+e;case 6060:return E+`box-`+R(e,`-grow`,``)+E+e+w+R(e,`grow`,`positive`)+e;case 4554:return E+R(e,/([^-])(transform)/g,`$1`+E+`$2`)+e;case 6187:return R(R(R(e,/(zoom-|grab)/,E+`$1`),/(image-set)/,E+`$1`),e,``)+e;case 5495:case 3959:return R(e,/(image-set\([^]*)/,E+"$1$`$1");case 4968:return R(R(e,/(.+:)(flex-)?(.*)/,E+`box-pack:$3`+w+`flex-pack:$3`),/s.+-b[^;]+/,`justify`)+E+e+e;case 4095:case 3583:case 4068:case 2532:return R(e,/(.+)-inline(.+)/,E+`$1$2`)+e;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(z(e)-1-t>6)switch(ne(e,t+1)){case 109:if(ne(e,t+4)!==45)break;case 102:return R(e,/(.+:)(.+)-([^]+)/,`$1`+E+`$2-$3$1`+T+(ne(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~te(e,`stretch`)?Ke(R(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(ne(e,t+1)!==115)break;case 6444:switch(ne(e,z(e)-3-(~te(e,`!important`)&&10))){case 107:return R(e,`:`,`:`+E)+e;case 101:return R(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+E+(ne(e,14)===45?`inline-`:``)+`box$3$1`+E+`$2$3$1`+w+`$2box$3`)+e}break;case 5936:switch(ne(e,t+11)){case 114:return E+e+w+R(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return E+e+w+R(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return E+e+w+R(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return E+e+w+e+e}return e}var qe=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case k:e.return=Ke(e.value,e.length);break;case j:return Fe([me(e,{value:R(e.value,`@`,`@`+E)})],r);case O:if(e.length)return oe(e.props,function(t){switch(ee(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return Fe([me(e,{props:[R(t,/:(read-\w+)/,`:`+T+`$1`)]})],r);case`::placeholder`:return Fe([me(e,{props:[R(t,/:(plac\w+)/,`:`+E+`input-$1`)]}),me(e,{props:[R(t,/:(plac\w+)/,`:`+T+`$1`)]}),me(e,{props:[R(t,/:(plac\w+)/,w+`input-$1`)]})],r)}return``})}}],Je=function(e){var t=e.key;if(t===`css`){var n=document.querySelectorAll(`style[data-emotion]:not([data-s])`);Array.prototype.forEach.call(n,function(e){e.getAttribute(`data-emotion`).indexOf(` `)!==-1&&(document.head.appendChild(e),e.setAttribute(`data-s`,``))})}var r=e.stylisPlugins||qe,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll(`style[data-emotion^="`+t+` "]`),function(e){for(var t=e.getAttribute(`data-emotion`).split(` `),n=1;n<t.length;n++)i[t[n]]=!0;o.push(e)});var s,c=[We,Ge],l,u=[Ie,Re(function(e){l.insert(e)})],d=Le(c.concat(r,u)),f=function(e){return Fe(Ae(e),d)};s=function(e,t,n,r){l=n,f(e?e+`{`+t.styles+`}`:t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new C({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(o),p},Ye=o((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),Xe=o(((e,t)=>{t.exports=Ye()})),Ze=o(((e,t)=>{var n=Xe(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$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[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g<a.length;++g){var _=a[g];if(!i[_]&&!(n&&n[_])&&!(s&&s[_])&&!(o&&o[_])){var v=f(t,_);try{l(e,_,v)}catch{}}}}return e}t.exports=h})),Qe=!0;function $e(e,t,n){var r=``;return n.split(` `).forEach(function(n){e[n]===void 0?n&&(r+=n+` `):t.push(e[n]+`;`)}),r}var et=function(e,t,n){var r=e.key+`-`+t.name;(n===!1||Qe===!1)&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},tt=function(e,t,n){et(e,t,n);var r=e.key+`-`+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?`.`+r:``,i,e.sheet,!0),i=i.next;while(i!==void 0)}};function nt(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var rt={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},it=!1,at=/[A-Z]|^ms/g,ot=/_EMO_([^_]+?)_([^]*?)_EMO_/g,st=function(e){return e.charCodeAt(1)===45},ct=function(e){return e!=null&&typeof e!=`boolean`},lt=ze(function(e){return st(e)?e:e.replace(at,`-$&`).toLowerCase()}),ut=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(ot,function(e,t,n){return ht={name:t,styles:n,next:ht},t})}return rt[e]!==1&&!st(e)&&typeof t==`number`&&t!==0?t+`px`:t},dt=`Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.`;function ft(e,t,n){if(n==null)return``;var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case`boolean`:return``;case`object`:var i=n;if(i.anim===1)return ht={name:i.name,styles:i.styles,next:ht},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)ht={name:o.name,styles:o.styles,next:ht},o=o.next;return a.styles+`;`}return pt(e,t,n);case`function`:if(e!==void 0){var s=ht,c=n(e);return ht=s,ft(e,t,c)}break}var l=n;if(t==null)return l;var u=t[l];return u===void 0?l:u}function pt(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=ft(e,t,n[i])+`;`;else for(var a in n){var o=n[a];if(typeof o!=`object`){var s=o;t!=null&&t[s]!==void 0?r+=a+`{`+t[s]+`}`:ct(s)&&(r+=lt(a)+`:`+ut(a,s)+`;`)}else{if(a===`NO_COMPONENT_SELECTOR`&&it)throw Error(dt);if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)ct(o[c])&&(r+=lt(a)+`:`+ut(a,o[c])+`;`);else{var l=ft(e,t,o);switch(a){case`animation`:case`animationName`:r+=lt(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}}return r}var mt=/label:\s*([^\s;{]+)\s*(;|$)/g,ht;function gt(e,t,n){if(e.length===1&&typeof e[0]==`object`&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i=``;ht=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,i+=ft(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=ft(n,t,e[o]),r&&(i+=a[o]);mt.lastIndex=0;for(var s=``,c;(c=mt.exec(i))!==null;)s+=`-`+c[1];return{name:nt(i)+s,styles:i,next:ht}}var B=c(u()),_t=function(e){return e()},vt=B.useInsertionEffect?B.useInsertionEffect:!1,yt=vt||_t,bt=vt||B.useLayoutEffect,xt=B.createContext(typeof HTMLElement<`u`?Je({key:`css`}):null),St=xt.Provider,Ct=function(e){return(0,B.forwardRef)(function(t,n){return e(t,(0,B.useContext)(xt),n)})},wt=B.createContext({}),Tt={}.hasOwnProperty,Et=`__EMOTION_TYPE_PLEASE_DO_NOT_USE__`,Dt=function(e,t){var n={};for(var r in t)Tt.call(t,r)&&(n[r]=t[r]);return n[Et]=e,n},Ot=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return et(t,n,r),yt(function(){return tt(t,n,r)}),null},kt=Ct(function(e,t,n){var r=e.css;typeof r==`string`&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Et],a=[r],o=``;typeof e.className==`string`?o=$e(t.registered,a,e.className):e.className!=null&&(o=e.className+` `);var s=gt(a,void 0,B.useContext(wt));o+=t.key+`-`+s.name;var c={};for(var l in e)Tt.call(e,l)&&l!==`css`&&l!==Et&&(c[l]=e[l]);return c.className=o,n&&(c.ref=n),B.createElement(B.Fragment,null,B.createElement(Ot,{cache:t,serialized:s,isStringTag:typeof i==`string`}),B.createElement(i,c))});Ze();var At=function(e,t){var n=arguments;if(t==null||!Tt.call(t,`css`))return B.createElement.apply(void 0,n);var r=n.length,i=Array(r);i[0]=kt,i[1]=Dt(e,t);for(var a=2;a<r;a++)i[a]=n[a];return B.createElement.apply(null,i)};(function(e){var t;t||=e.JSX||={}})(At||={});var jt=Ct(function(e,t){var n=e.styles,r=gt([n],void 0,B.useContext(wt)),i=B.useRef();return bt(function(){var e=t.key+`-global`,n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,o=document.querySelector(`style[data-emotion="`+e+` `+r.name+`"]`);return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),o!==null&&(a=!0,o.setAttribute(`data-emotion`,e),n.hydrate([o])),i.current=[n,a],function(){n.flush()}},[t]),bt(function(){var e=i.current,n=e[0];if(e[1]){e[1]=!1;return}r.next!==void 0&&tt(t,r.next,!0),n.tags.length&&(n.before=n.tags[n.tags.length-1].nextElementSibling,n.flush()),t.insert(``,r,n,!1)},[t,r.name]),null});function Mt(){return gt([...arguments])}function Nt(){var e=Mt.apply(void 0,arguments),t=`animation-`+e.name;return{name:t,styles:`@keyframes `+t+`{`+e.styles+`}`,anim:1,toString:function(){return`_EMO_`+this.name+`_`+this.styles+`_EMO_`}}}var Pt=/^((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)-.*))$/,Ft=ze(function(e){return Pt.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),It=!1,Lt=Ft,Rt=function(e){return e!==`theme`},zt=function(e){return typeof e==`string`&&e.charCodeAt(0)>96?Lt:Rt},Bt=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return typeof r!=`function`&&n&&(r=e.__emotion_forwardProp),r},Vt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return et(t,n,r),yt(function(){return tt(t,n,r)}),null},Ht=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,o;n!==void 0&&(a=n.label,o=n.target);var s=Bt(t,n,r),c=s||zt(i),l=!c(`as`);return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push(`label:`+a+`;`),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var p=u.length,m=1;m<p;m++)d.push(u[m],f[m])}var h=Ct(function(e,t,n){var r=l&&e.as||i,a=``,u=[],f=e;if(e.theme==null){for(var p in f={},e)f[p]=e[p];f.theme=B.useContext(wt)}typeof e.className==`string`?a=$e(t.registered,u,e.className):e.className!=null&&(a=e.className+` `);var m=gt(d.concat(u),t.registered,f);a+=t.key+`-`+m.name,o!==void 0&&(a+=` `+o);var h=l&&s===void 0?zt(r):c,g={};for(var _ in e)l&&_===`as`||h(_)&&(g[_]=e[_]);return g.className=a,n&&(g.ref=n),B.createElement(B.Fragment,null,B.createElement(Vt,{cache:t,serialized:m,isStringTag:typeof r==`string`}),B.createElement(r,g))});return h.displayName=a===void 0?`Styled(`+(typeof i==`string`?i:i.displayName||i.name||`Component`)+`)`:a,h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=i,h.__emotion_styles=d,h.__emotion_forwardProp=s,Object.defineProperty(h,"toString",{value:function(){return o===void 0&&It?`NO_COMPONENT_SELECTOR`:`.`+o}}),h.withComponent=function(t,r){return e(t,y({},n,r,{shouldForwardProp:Bt(h,r,!0)})).apply(void 0,d)},h}},Ut=`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`.split(`.`),Wt=Ht.bind(null);Ut.forEach(function(e){Wt[e]=Wt(e)});var Gt=o(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),Kt=o(((e,t)=>{var n=Gt();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),qt=o(((e,t)=>{t.exports=Kt()()})),Jt=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),V=o(((e,t)=>{t.exports=Jt()}))(),Yt=new Map,Xt={insert:void 0},Zt=(e,t)=>{let n=Je(e);return n.sheet=new t({key:n.key,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy,prepend:n.sheet.prepend,insertionPoint:n.sheet.insertionPoint}),n},Qt;if(typeof document==`object`&&(Qt=document.querySelector(`[name="emotion-insertion-point"]`),!Qt)){Qt=document.createElement(`meta`),Qt.setAttribute(`name`,`emotion-insertion-point`),Qt.setAttribute(`content`,``);let e=document.querySelector(`head`);e&&e.prepend(Qt)}function $t(e,t){if(e||t){class n extends C{insert(e,t){return Xt.insert?Xt.insert(e,t):(this.key&&this.key.endsWith(`global`)&&(this.before=Qt),super.insert(e,t))}}let r=Zt({key:`css`,insertionPoint:e?Qt:void 0},n);if(t){let e=r.insert;r.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return r}}function en(e){let{injectFirst:t,enableCssLayer:n,children:r}=e,i=B.useMemo(()=>{let e=`${t}-${n}`;if(typeof document==`object`&&Yt.has(e))return Yt.get(e);let r=$t(t,n);return Yt.set(e,r),r},[t,n]);return i?(0,V.jsx)(St,{value:i,children:r}):r}function tn(e){return e==null||Object.keys(e).length===0}function nn(e){let{styles:t,defaultTheme:n={}}=e;return(0,V.jsx)(jt,{styles:typeof t==`function`?e=>t(tn(e)?n:e):t})}function rn(e,t){return Wt(e,t)}function an(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var on=[];function sn(e){return on[0]=e,gt(on)}var cn=o((e=>{var t=Symbol.for(`react.fragment`),n=Symbol.for(`react.strict_mode`),r=Symbol.for(`react.profiler`),i=Symbol.for(`react.consumer`),a=Symbol.for(`react.context`),o=Symbol.for(`react.forward_ref`),s=Symbol.for(`react.suspense`),c=Symbol.for(`react.suspense_list`),l=Symbol.for(`react.memo`),u=Symbol.for(`react.lazy`),d=Symbol.for(`react.client.reference`);e.isValidElementType=function(e){return!!(typeof e==`string`||typeof e==`function`||e===t||e===r||e===n||e===s||e===c||typeof e==`object`&&e&&(e.$$typeof===u||e.$$typeof===l||e.$$typeof===a||e.$$typeof===i||e.$$typeof===o||e.$$typeof===d||e.getModuleId!==void 0))}})),ln=o(((e,t)=>{t.exports=cn()}))();function un(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function dn(e){if(B.isValidElement(e)||(0,ln.isValidElementType)(e)||!un(e))return e;let t={};return Object.keys(e).forEach(n=>{t[n]=dn(e[n])}),t}function fn(e,t,n={clone:!0}){let r=n.clone?{...e}:e;return un(e)&&un(t)&&Object.keys(t).forEach(i=>{B.isValidElement(t[i])||(0,ln.isValidElementType)(t[i])?r[i]=t[i]:un(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&un(e[i])?r[i]=fn(e[i],t[i],n):n.clone?r[i]=un(t[i])?dn(t[i]):t[i]:r[i]=t[i]}),r}var pn=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})};function mn(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n=`px`,step:r=5,...i}=e,a=pn(t),o=Object.keys(a);function s(e){return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n})`}function c(e){return`@media (max-width:${(typeof t[e]==`number`?t[e]:e)-r/100}${n})`}function l(e,i){let a=o.indexOf(i);return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n}) and (max-width:${(a!==-1&&typeof t[o[a]]==`number`?t[o[a]]:i)-r/100}${n})`}function u(e){return o.indexOf(e)+1<o.length?l(e,o[o.indexOf(e)+1]):s(e)}function d(e){let t=o.indexOf(e);return t===0?s(o[1]):t===o.length-1?c(o[t]):l(e,o[o.indexOf(e)+1]).replace(`@media`,`@media not all and`)}return{keys:o,values:a,up:s,down:c,between:l,only:u,not:d,unit:n,...i}}function hn(e,t){if(!e.containerQueries)return t;let n=Object.keys(t).filter(e=>e.startsWith(`@container`)).sort((e,t)=>{let n=/min-width:\s*([0-9.]+)/;return(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{let r=t[n];return delete e[n],e[n]=r,e},{...t}):t}function gn(e,t){return t===`@`||t.startsWith(`@`)&&(e.some(e=>t.startsWith(`@${e}`))||!!t.match(/^@\d/))}function _n(e,t){let n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;let[,r,i]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(a)}function vn(e){let t=(e,t)=>e.replace(`@media`,t?`@container ${t}`:`@container`);function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{let i=t(e.breakpoints.not(...n),r);return i.includes(`not all and`)?i.replace(`not all and `,``).replace(`min-width:`,`width<`).replace(`max-width:`,`width>`).replace(`and`,`or`):i}}let r={},i=e=>(n(r,e),r);return n(i),{...e,containerQueries:i}}var yn={borderRadius:4};function bn(e,t){return t?fn(e,t,{clone:!1}):e}var xn={xs:0,sm:600,md:900,lg:1200,xl:1536},Sn={keys:[`xs`,`sm`,`md`,`lg`,`xl`],up:e=>`@media (min-width:${xn[e]}px)`},Cn={containerQueries:e=>({up:t=>{let n=typeof t==`number`?t:xn[t]||t;return typeof n==`number`&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function wn(e,t,n){let r=e.theme||{};if(Array.isArray(t)){let e=r.breakpoints||Sn;return t.reduce((r,i,a)=>(r[e.up(e.keys[a])]=n(t[a]),r),{})}if(typeof t==`object`){let e=r.breakpoints||Sn;return Object.keys(t).reduce((i,a)=>{if(gn(e.keys,a)){let e=_n(r.containerQueries?r:Cn,a);e&&(i[e]=n(t[a],a))}else if(Object.keys(e.values||xn).includes(a)){let r=e.up(a);i[r]=n(t[a],a)}else{let e=a;i[e]=t[e]}return i},{})}return n(t)}function Tn(e={}){return e.keys?.reduce((t,n)=>{let r=e.up(n);return t[r]={},t},{})||{}}function En(e,t){return e.reduce((e,t)=>{let n=e[t];return(!n||Object.keys(n).length===0)&&delete e[t],e},t)}function Dn(e,t){if(typeof e!=`object`)return{};let n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((t,r)=>{r<e.length&&(n[t]=!0)}):r.forEach(t=>{e[t]!=null&&(n[t]=!0)}),n}function On({values:e,breakpoints:t,base:n}){let r=n||Dn(e,t),i=Object.keys(r);if(i.length===0)return e;let a;return i.reduce((t,n,r)=>(Array.isArray(e)?(t[n]=e[r]==null?e[a]:e[r],a=r):typeof e==`object`?(t[n]=e[n]==null?e[a]:e[n],a=n):t[n]=e,t),{})}function kn(e){if(typeof e!=`string`)throw Error(_(7));return e.charAt(0).toUpperCase()+e.slice(1)}function An(e,t,n=!0){if(!t||typeof t!=`string`)return null;if(e&&e.vars&&n){let n=`vars.${t}`.split(`.`).reduce((e,t)=>e&&e[t]?e[t]:null,e);if(n!=null)return n}return t.split(`.`).reduce((e,t)=>e&&e[t]!=null?e[t]:null,e)}function jn(e,t,n,r=n){let i;return i=typeof e==`function`?e(n):Array.isArray(e)?e[n]||r:An(e,n)||r,t&&(i=t(i,r,e)),i}function Mn(e){let{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=e=>{if(e[t]==null)return null;let a=e[t],o=e.theme,s=An(o,r)||{};return wn(e,a,e=>{let r=jn(s,i,e);return e===r&&typeof e==`string`&&(r=jn(s,i,`${t}${e==="default"?``:kn(e)}`,e)),n===!1?r:{[n]:r}})};return a.propTypes={},a.filterProps=[t],a}function Nn(e){let t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var Pn={m:`margin`,p:`padding`},Fn={t:`Top`,r:`Right`,b:`Bottom`,l:`Left`,x:[`Left`,`Right`],y:[`Top`,`Bottom`]},In={marginX:`mx`,marginY:`my`,paddingX:`px`,paddingY:`py`},Ln=Nn(e=>{if(e.length>2)if(In[e])e=In[e];else return[e];let[t,n]=e.split(``),r=Pn[t],i=Fn[n]||``;return Array.isArray(i)?i.map(e=>r+e):[r+i]}),Rn=[`m`,`mt`,`mr`,`mb`,`ml`,`mx`,`my`,`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`marginX`,`marginY`,`marginInline`,`marginInlineStart`,`marginInlineEnd`,`marginBlock`,`marginBlockStart`,`marginBlockEnd`],zn=[`p`,`pt`,`pr`,`pb`,`pl`,`px`,`py`,`padding`,`paddingTop`,`paddingRight`,`paddingBottom`,`paddingLeft`,`paddingX`,`paddingY`,`paddingInline`,`paddingInlineStart`,`paddingInlineEnd`,`paddingBlock`,`paddingBlockStart`,`paddingBlockEnd`],Bn=[...Rn,...zn];function Vn(e,t,n,r){let i=An(e,t,!0)??n;return typeof i==`number`||typeof i==`string`?e=>typeof e==`string`?e:typeof i==`string`?`calc(${e} * ${i})`:i*e:Array.isArray(i)?e=>{if(typeof e==`string`)return e;let t=i[Math.abs(e)];return e>=0?t:typeof t==`number`?-t:`-${t}`}:typeof i==`function`?i:()=>void 0}function Hn(e){return Vn(e,`spacing`,8,`spacing`)}function Un(e,t){return typeof t==`string`||t==null?t:e(t)}function Wn(e,t){return n=>e.reduce((e,r)=>(e[r]=Un(t,n),e),{})}function Gn(e,t,n,r){if(!t.includes(n))return null;let i=Wn(Ln(n),r),a=e[n];return wn(e,a,i)}function Kn(e,t){let n=Hn(e.theme);return Object.keys(e).map(r=>Gn(e,t,r,n)).reduce(bn,{})}function qn(e){return Kn(e,Rn)}qn.propTypes={},qn.filterProps=Rn;function Jn(e){return Kn(e,zn)}Jn.propTypes={},Jn.filterProps=zn;function Yn(e){return Kn(e,Bn)}Yn.propTypes={},Yn.filterProps=Bn;function Xn(e=8,t=Hn({spacing:e})){if(e.mui)return e;let n=(...e)=>(e.length===0?[1]:e).map(e=>{let n=t(e);return typeof n==`number`?`${n}px`:n}).join(` `);return n.mui=!0,n}function Zn(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?bn(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function Qn(e){return typeof e==`number`?`${e}px solid`:e}function $n(e,t){return Mn({prop:e,themeKey:`borders`,transform:t})}var er=$n(`border`,Qn),tr=$n(`borderTop`,Qn),nr=$n(`borderRight`,Qn),rr=$n(`borderBottom`,Qn),ir=$n(`borderLeft`,Qn),ar=$n(`borderColor`),or=$n(`borderTopColor`),sr=$n(`borderRightColor`),cr=$n(`borderBottomColor`),lr=$n(`borderLeftColor`),ur=$n(`outline`,Qn),dr=$n(`outlineColor`),fr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=Vn(e.theme,`shape.borderRadius`,4,`borderRadius`);return wn(e,e.borderRadius,e=>({borderRadius:Un(t,e)}))}return null};fr.propTypes={},fr.filterProps=[`borderRadius`],Zn(er,tr,nr,rr,ir,ar,or,sr,cr,lr,fr,ur,dr);var pr=e=>{if(e.gap!==void 0&&e.gap!==null){let t=Vn(e.theme,`spacing`,8,`gap`);return wn(e,e.gap,e=>({gap:Un(t,e)}))}return null};pr.propTypes={},pr.filterProps=[`gap`];var mr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=Vn(e.theme,`spacing`,8,`columnGap`);return wn(e,e.columnGap,e=>({columnGap:Un(t,e)}))}return null};mr.propTypes={},mr.filterProps=[`columnGap`];var hr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=Vn(e.theme,`spacing`,8,`rowGap`);return wn(e,e.rowGap,e=>({rowGap:Un(t,e)}))}return null};hr.propTypes={},hr.filterProps=[`rowGap`],Zn(pr,mr,hr,Mn({prop:`gridColumn`}),Mn({prop:`gridRow`}),Mn({prop:`gridAutoFlow`}),Mn({prop:`gridAutoColumns`}),Mn({prop:`gridAutoRows`}),Mn({prop:`gridTemplateColumns`}),Mn({prop:`gridTemplateRows`}),Mn({prop:`gridTemplateAreas`}),Mn({prop:`gridArea`}));function gr(e,t){return t===`grey`?t:e}Zn(Mn({prop:`color`,themeKey:`palette`,transform:gr}),Mn({prop:`bgcolor`,cssProperty:`backgroundColor`,themeKey:`palette`,transform:gr}),Mn({prop:`backgroundColor`,themeKey:`palette`,transform:gr}));function _r(e){return e<=1&&e!==0?`${e*100}%`:e}var vr=Mn({prop:`width`,transform:_r}),yr=e=>e.maxWidth!==void 0&&e.maxWidth!==null?wn(e,e.maxWidth,t=>{let n=e.theme?.breakpoints?.values?.[t]||xn[t];return n?e.theme?.breakpoints?.unit===`px`?{maxWidth:n}:{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:_r(t)}}):null;yr.filterProps=[`maxWidth`];var br=Mn({prop:`minWidth`,transform:_r}),xr=Mn({prop:`height`,transform:_r}),Sr=Mn({prop:`maxHeight`,transform:_r}),Cr=Mn({prop:`minHeight`,transform:_r});Mn({prop:`size`,cssProperty:`width`,transform:_r}),Mn({prop:`size`,cssProperty:`height`,transform:_r}),Zn(vr,yr,br,xr,Sr,Cr,Mn({prop:`boxSizing`}));var wr={border:{themeKey:`borders`,transform:Qn},borderTop:{themeKey:`borders`,transform:Qn},borderRight:{themeKey:`borders`,transform:Qn},borderBottom:{themeKey:`borders`,transform:Qn},borderLeft:{themeKey:`borders`,transform:Qn},borderColor:{themeKey:`palette`},borderTopColor:{themeKey:`palette`},borderRightColor:{themeKey:`palette`},borderBottomColor:{themeKey:`palette`},borderLeftColor:{themeKey:`palette`},outline:{themeKey:`borders`,transform:Qn},outlineColor:{themeKey:`palette`},borderRadius:{themeKey:`shape.borderRadius`,style:fr},color:{themeKey:`palette`,transform:gr},bgcolor:{themeKey:`palette`,cssProperty:`backgroundColor`,transform:gr},backgroundColor:{themeKey:`palette`,transform:gr},p:{style:Jn},pt:{style:Jn},pr:{style:Jn},pb:{style:Jn},pl:{style:Jn},px:{style:Jn},py:{style:Jn},padding:{style:Jn},paddingTop:{style:Jn},paddingRight:{style:Jn},paddingBottom:{style:Jn},paddingLeft:{style:Jn},paddingX:{style:Jn},paddingY:{style:Jn},paddingInline:{style:Jn},paddingInlineStart:{style:Jn},paddingInlineEnd:{style:Jn},paddingBlock:{style:Jn},paddingBlockStart:{style:Jn},paddingBlockEnd:{style:Jn},m:{style:qn},mt:{style:qn},mr:{style:qn},mb:{style:qn},ml:{style:qn},mx:{style:qn},my:{style:qn},margin:{style:qn},marginTop:{style:qn},marginRight:{style:qn},marginBottom:{style:qn},marginLeft:{style:qn},marginX:{style:qn},marginY:{style:qn},marginInline:{style:qn},marginInlineStart:{style:qn},marginInlineEnd:{style:qn},marginBlock:{style:qn},marginBlockStart:{style:qn},marginBlockEnd:{style:qn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:pr},rowGap:{style:hr},columnGap:{style:mr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:`zIndex`},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:`shadows`},width:{transform:_r},maxWidth:{style:yr},minWidth:{transform:_r},height:{transform:_r},maxHeight:{transform:_r},minHeight:{transform:_r},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 Tr(...e){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}function Er(e,t){return typeof e==`function`?e(t):e}function Dr(){function e(e,t,n,r){let i={[e]:t,theme:n},a=r[e];if(!a)return{[e]:t};let{cssProperty:o=e,themeKey:s,transform:c,style:l}=a;if(t==null)return null;if(s===`typography`&&t===`inherit`)return{[e]:t};let u=An(n,s)||{};return l?l(i):wn(i,t,t=>{let n=jn(u,c,t);return t===n&&typeof t==`string`&&(n=jn(u,c,`${e}${t==="default"?``:kn(t)}`,t)),o===!1?n:{[o]:n}})}function t(n){let{sx:r,theme:i={},nested:a}=n||{};if(!r)return null;let o=i.unstable_sxConfig??wr;function s(n){let r=n;if(typeof n==`function`)r=n(i);else if(typeof n!=`object`)return n;if(!r)return null;let s=Tn(i.breakpoints),c=Object.keys(s),l=s;return Object.keys(r).forEach(n=>{let a=Er(r[n],i);if(a!=null)if(typeof a==`object`)if(o[n])l=bn(l,e(n,a,i,o));else{let e=wn({theme:i},a,e=>({[n]:e}));Tr(e,a)?l[n]=t({sx:a,theme:i,nested:!0}):l=bn(l,e)}else l=bn(l,e(n,a,i,o))}),!a&&i.modularCssLayers?{"@layer sx":hn(i,En(c,l))}:hn(i,En(c,l))}return Array.isArray(r)?r.map(s):s(r)}return t}var Or=Dr();Or.filterProps=[`sx`];function kr(e,t){let n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!=`function`)return{};let r=n.getColorSchemeSelector(e);return r===`&`?t:((r.includes(`data-`)||r.includes(`.`))&&(r=`*:where(${r.replace(/\s*&$/,``)}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Ar(e={},...t){let{breakpoints:n={},palette:r={},spacing:i,shape:a={},...o}=e,s=mn(n),c=Xn(i),l=fn({breakpoints:s,direction:`ltr`,components:{},palette:{mode:`light`,...r},spacing:c,shape:{...yn,...a}},o);return l=vn(l),l.applyStyles=kr,l=t.reduce((e,t)=>fn(e,t),l),l.unstable_sxConfig={...wr,...o?.unstable_sxConfig},l.unstable_sx=function(e){return Or({sx:e,theme:this})},l}function jr(e){return Object.keys(e).length===0}function Mr(e=null){let t=B.useContext(wt);return!t||jr(t)?e:t}var Nr=Ar();function Pr(e=Nr){return Mr(e)}function Fr(e){let t=sn(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Ir({styles:e,themeId:t,defaultTheme:n={}}){let r=Pr(n),i=t&&r[t]||r,a=typeof e==`function`?e(i):e;return i.modularCssLayers&&(a=Array.isArray(a)?a.map(e=>Fr(typeof e==`function`?e(i):e)):Fr(a)),(0,V.jsx)(nn,{styles:a})}var Lr=e=>{let t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??wr;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function Rr(e){let{sx:t,...n}=e,{systemProps:r,otherProps:i}=Lr(n),a;return a=Array.isArray(t)?[r,...t]:typeof t==`function`?(...e)=>{let n=t(...e);return un(n)?{...r,...n}:r}:{...r,...t},{...i,sx:a}}var zr=e=>e,Br=(()=>{let e=zr;return{configure(t){e=t},generate(t){return e(t)},reset(){e=zr}}})();function Vr(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Vr(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function H(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Vr(e))&&(r&&(r+=` `),r+=t);return r}function Hr(e={}){let{themeId:t,defaultTheme:n,defaultClassName:r=`MuiBox-root`,generateClassName:i}=e,a=rn(`div`,{shouldForwardProp:e=>e!==`theme`&&e!==`sx`&&e!==`as`})(Or);return B.forwardRef(function(e,o){let s=Pr(n),{className:c,component:l=`div`,...u}=Rr(e);return(0,V.jsx)(a,{as:l,ref:o,className:H(c,i?i(r):r),theme:t&&s[t]||s,...u})})}var Ur={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 U(e,t,n=`Mui`){let r=Ur[t];return r?`${n}-${r}`:`${Br.generate(e)}-${t}`}function W(e,t,n=`Mui`){let r={};return t.forEach(t=>{r[t]=U(e,t,n)}),r}function Wr(e){let{variants:t,...n}=e,r={variants:t,style:sn(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{typeof e.style!=`function`&&(e.style=sn(e.style))}),r}var Gr=Ar();function Kr(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}function qr(e,t){return t&&e&&typeof e==`object`&&e.styles&&!e.styles.startsWith(`@layer`)&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Jr(e){return e?(t,n)=>n[e]:null}function Yr(e,t,n){e.theme=$r(e.theme)?n:e.theme[t]||e.theme}function Xr(e,t,n){let r=typeof t==`function`?t(e):t;if(Array.isArray(r))return r.flatMap(t=>Xr(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?qr(r.style,n):r.style;else{let{variants:e,...i}=r;t=n?qr(sn(i),n):i}return Zr(e,r.variants,[t],n)}return r?.isProcessed?n?qr(sn(r.style),n):r.style:n?qr(sn(r),n):r}function Zr(e,t,n=[],r=void 0){let i;variantLoop:for(let a=0;a<t.length;a+=1){let o=t[a];if(typeof o.props==`function`){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!o.props(i))continue}else for(let t in o.props)if(e[t]!==o.props[t]&&e.ownerState?.[t]!==o.props[t])continue variantLoop;typeof o.style==`function`?(i??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?qr(sn(o.style(i)),r):o.style(i))):n.push(r?qr(sn(o.style),r):o.style)}return n}function Qr(e={}){let{themeId:t,defaultTheme:n=Gr,rootShouldForwardProp:r=Kr,slotShouldForwardProp:i=Kr}=e;function a(e){Yr(e,t,n)}return(e,t={})=>{an(e,e=>e.filter(e=>e!==Or));let{name:n,slot:o,skipVariantsResolver:s,skipSx:c,overridesResolver:l=Jr(ti(o)),...u}=t,d=n&&n.startsWith(`Mui`)||o?`components`:`custom`,f=s===void 0?o&&o!==`Root`&&o!==`root`||!1:s,p=c||!1,m=Kr;o===`Root`||o===`root`?m=r:o?m=i:ei(e)&&(m=void 0);let h=rn(e,{shouldForwardProp:m,label:void 0,...u}),g=e=>{if(e.__emotion_real===e)return e;if(typeof e==`function`)return function(t){return Xr(t,e,t.theme.modularCssLayers?d:void 0)};if(un(e)){let t=Wr(e);return function(e){return t.variants?Xr(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?qr(t.style,d):t.style}}return e},_=(...t)=>{let r=[],i=t.map(g),o=[];if(r.push(a),n&&l&&o.push(function(e){let t=e.theme.components?.[n]?.styleOverrides;if(!t)return null;let r={};for(let n in t)r[n]=Xr(e,t[n],e.theme.modularCssLayers?`theme`:void 0);return l(e,r)}),n&&!f&&o.push(function(e){let t=e.theme?.components?.[n]?.variants;return t?Zr(e,t,[],e.theme.modularCssLayers?`theme`:void 0):null}),p||o.push(Or),Array.isArray(i[0])){let e=i.shift(),t=Array(r.length).fill(``),n=Array(o.length).fill(``),a;a=[...t,...e,...n],a.raw=[...t,...e.raw,...n],r.unshift(a)}let s=h(...r,...i,...o);return e.muiName&&(s.muiName=e.muiName),s};return h.withConfig&&(_.withConfig=h.withConfig),_}}function $r(e){for(let t in e)return!1;return!0}function ei(e){return typeof e==`string`&&e.charCodeAt(0)>96}function ti(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}var ni=Qr();function ri(e,t){let n={...t};for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)){let i=r;if(i===`components`||i===`slots`)n[i]={...e[i],...n[i]};else if(i===`componentsProps`||i===`slotProps`){let r=e[i],a=t[i];if(!a)n[i]=r||{};else if(!r)n[i]=a;else{n[i]={...a};for(let e in r)if(Object.prototype.hasOwnProperty.call(r,e)){let t=e;n[i][t]=ri(r[t],a[t])}}}else n[i]===void 0&&(n[i]=e[i])}return n}function ii(e){let{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:ri(t.components[n].defaultProps,r)}function ai({props:e,name:t,defaultTheme:n,themeId:r}){let i=Pr(n);return r&&(i=i[r]||i),ii({theme:i,name:t,props:e})}var oi=typeof window<`u`?B.useLayoutEffect:B.useEffect;function si(e,t,n,r,i){let[a,o]=B.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return oi(()=>{if(!n)return;let t=n(e),r=()=>{o(t.matches)};return r(),t.addEventListener(`change`,r),()=>{t.removeEventListener(`change`,r)}},[e,n]),a}var ci={...B}.useSyncExternalStore;function li(e,t,n,r,i){let a=B.useCallback(()=>t,[t]),o=B.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){let{matches:t}=r(e);return()=>t}return a},[a,e,r,i,n]),[s,c]=B.useMemo(()=>{if(n===null)return[a,()=>()=>{}];let t=n(e);return[()=>t.matches,e=>(t.addEventListener(`change`,e),()=>{t.removeEventListener(`change`,e)})]},[a,n,e]);return ci(c,s,o)}function ui(e={}){let{themeId:t}=e;return function(e,n={}){let r=Mr();r&&t&&(r=r[t]||r);let i=typeof window<`u`&&window.matchMedia!==void 0,{defaultMatches:a=!1,matchMedia:o=i?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:c=!1}=ii({name:`MuiUseMediaQuery`,props:n,theme:r}),l=typeof e==`function`?e(r):e;return l=l.replace(/^@media( ?)/m,``),l.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(`
|
|
10
|
+
`)),(ci===void 0?si:li)(l,a,o,s,c)}}ui();function di(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function fi(e,t=0,n=1){return di(e,t,n)}function pi(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,`g`),n=e.match(t);return n&&n[0].length===1&&(n=n.map(e=>e+e)),n?`rgb${n.length===4?`a`:``}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(`, `)})`:``}function mi(e){if(e.type)return e;if(e.charAt(0)===`#`)return mi(pi(e));let t=e.indexOf(`(`),n=e.substring(0,t);if(![`rgb`,`rgba`,`hsl`,`hsla`,`color`].includes(n))throw Error(_(9,e));let r=e.substring(t+1,e.length-1),i;if(n===`color`){if(r=r.split(` `),i=r.shift(),r.length===4&&r[3].charAt(0)===`/`&&(r[3]=r[3].slice(1)),![`srgb`,`display-p3`,`a98-rgb`,`prophoto-rgb`,`rec-2020`].includes(i))throw Error(_(10,i))}else r=r.split(`,`);return r=r.map(e=>parseFloat(e)),{type:n,values:r,colorSpace:i}}var hi=e=>{let t=mi(e);return t.values.slice(0,3).map((e,n)=>t.type.includes(`hsl`)&&n!==0?`${e}%`:e).join(` `)},gi=(e,t)=>{try{return hi(e)}catch{return e}};function _i(e){let{type:t,colorSpace:n}=e,{values:r}=e;return t.includes(`rgb`)?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes(`hsl`)&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes(`color`)?`${n} ${r.join(` `)}`:`${r.join(`, `)}`,`${t}(${r})`}function vi(e){e=mi(e);let{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),o=(e,t=(e+n/30)%12)=>i-a*Math.max(Math.min(t-3,9-t,1),-1),s=`rgb`,c=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type===`hsla`&&(s+=`a`,c.push(t[3])),_i({type:s,values:c})}function yi(e){e=mi(e);let t=e.type===`hsl`||e.type===`hsla`?mi(vi(e)).values:e.values;return t=t.map(t=>(e.type!==`color`&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function bi(e,t){let n=yi(e),r=yi(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function xi(e,t){return e=mi(e),t=fi(t),(e.type===`rgb`||e.type===`hsl`)&&(e.type+=`a`),e.type===`color`?e.values[3]=`/${t}`:e.values[3]=t,_i(e)}function Si(e,t,n){try{return xi(e,t)}catch{return e}}function Ci(e,t){if(e=mi(e),t=fi(t),e.type.includes(`hsl`))e.values[2]*=1-t;else if(e.type.includes(`rgb`)||e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return _i(e)}function wi(e,t,n){try{return Ci(e,t)}catch{return e}}function Ti(e,t){if(e=mi(e),t=fi(t),e.type.includes(`hsl`))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes(`rgb`))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return _i(e)}function Ei(e,t,n){try{return Ti(e,t)}catch{return e}}function Di(e,t=.15){return yi(e)>.5?Ci(e,t):Ti(e,t)}function Oi(e,t,n){try{return Di(e,t)}catch{return e}}function ki(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function Ai(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}function ji(e,t){return B.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function Mi(e){return e&&e.ownerDocument||document}function Ni(e){return Mi(e).defaultView||window}function Pi(e,t){typeof e==`function`?e(t):e&&(e.current=t)}var Fi=0;function Ii(e){let[t,n]=B.useState(e),r=e||t;return B.useEffect(()=>{t??(Fi+=1,n(`mui-${Fi}`))},[t]),r}var Li={...B}.useId;function Ri(e){if(Li!==void 0){let t=Li();return e??t}return Ii(e)}function zi({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=B.useRef(e!==void 0),[a,o]=B.useState(t);return[i?e:a,B.useCallback(e=>{i||o(e)},[])]}function Bi(e){let t=B.useRef(e);return oi(()=>{t.current=e}),B.useRef((...e)=>(0,t.current)(...e)).current}function Vi(...e){let t=B.useRef(void 0),n=B.useCallback(t=>{let n=e.map(e=>{if(e==null)return null;if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return B.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var Hi={};function Ui(e,t){let n=B.useRef(Hi);return n.current===Hi&&(n.current=e(t)),n}var Wi=[];function Gi(e){B.useEffect(e,Wi)}var Ki=class e{static create(){return new e}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function qi(){let e=Ui(Ki.create).current;return Gi(e.disposeEffect),e}function Ji(e){try{return e.matches(`:focus-visible`)}catch{}return!1}function Yi(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}var Xi=e=>{let t=B.useRef({});return B.useEffect(()=>{t.current=e}),t.current};function G(e,t,n=void 0){let r={};for(let i in e){let a=e[i],o=``,s=!0;for(let e=0;e<a.length;e+=1){let r=a[e];r&&(o+=(s===!0?``:` `)+t(r),s=!1,n&&n[r]&&(o+=` `+n[r]))}r[i]=o}return r}function Zi(e){return typeof e==`string`}function Qi(e,t,n){return e===void 0||Zi(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function $i(e,t=[]){if(e===void 0)return{};let n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]==`function`&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function ea(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]==`function`)).forEach(n=>{t[n]=e[n]}),t}function ta(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=H(n?.className,a,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},o={...n,...i,...r};return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let o=$i({...i,...r}),s=ea(r),c=ea(i),l=t(o),u=H(l?.className,n?.className,a,i?.className,r?.className),d={...l?.style,...n?.style,...i?.style,...r?.style},f={...l,...n,...c,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:l.ref}}function na(e,t,n){return typeof e==`function`?e(t,n):e}function ra(e){let{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,o=i?{}:na(n,r),{props:s,internalRef:c}=ta({...a,externalSlotProps:o}),l=Vi(c,o?.ref,e.additionalProps?.ref);return Qi(t,{...s,ref:l},r)}function ia(e){return e?.props?.ref||null}var aa=B.createContext(null);function oa(){return B.useContext(aa)}var sa=typeof Symbol==`function`&&Symbol.for?Symbol.for(`mui.nested`):`__THEME_NESTED__`;function ca(e,t){return typeof t==`function`?t(e):{...e,...t}}function la(e){let{children:t,theme:n}=e,r=oa(),i=B.useMemo(()=>{let e=r===null?{...n}:ca(r,n);return e!=null&&(e[sa]=r!==null),e},[n,r]);return(0,V.jsx)(aa.Provider,{value:i,children:t})}var ua=B.createContext();function da({value:e,...t}){return(0,V.jsx)(ua.Provider,{value:e??!0,...t})}var fa=()=>B.useContext(ua)??!1,pa=B.createContext(void 0);function ma({value:e,children:t}){return(0,V.jsx)(pa.Provider,{value:e,children:t})}function ha(e){let{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;let i=t.components[n];return i.defaultProps?ri(i.defaultProps,r):!i.styleOverrides&&!i.variants?ri(i,r):r}function ga({props:e,name:t}){return ha({props:e,name:t,theme:{components:B.useContext(pa)}})}function _a(e){let t=Mr(),n=Ri()||``,{modularCssLayers:r}=e,i=`mui.global, mui.components, mui.theme, mui.custom, mui.sx`;return i=!r||t!==null?``:typeof r==`string`?r.replace(/mui(?!\.)/g,i):`@layer ${i};`,oi(()=>{let e=document.querySelector(`head`);if(!e)return;let t=e.firstChild;if(i){if(t&&t.hasAttribute?.(`data-mui-layer-order`)&&t.getAttribute(`data-mui-layer-order`)===n)return;let r=document.createElement(`style`);r.setAttribute(`data-mui-layer-order`,n),r.textContent=i,e.prepend(r)}else e.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[i,n]),i?(0,V.jsx)(Ir,{styles:i}):null}var va={};function ya(e,t,n,r=!1){return B.useMemo(()=>{let i=e&&t[e]||t;if(typeof n==`function`){let a=n(i),o=e?{...t,[e]:a}:a;return r?()=>o:o}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function ba(e){let{children:t,theme:n,themeId:r}=e,i=Mr(va),a=oa()||va,o=ya(r,i,n),s=ya(r,a,n,!0),c=(r?o[r]:o).direction===`rtl`,l=_a(o);return(0,V.jsx)(la,{theme:s,children:(0,V.jsx)(wt.Provider,{value:o,children:(0,V.jsx)(da,{value:c,children:(0,V.jsxs)(ma,{value:r?o[r].components:o.components,children:[l,t]})})})})}var xa={theme:void 0};function Sa(e){let t,n;return function(r){let i=t;return(i===void 0||r.theme!==n)&&(xa.theme=r.theme,i=Wr(e(xa)),t=i,n=r.theme),i}}var Ca=`mode`,wa=`color-scheme`,Ta=`data-color-scheme`;function Ea(e){let{defaultMode:t=`system`,defaultLightColorScheme:n=`light`,defaultDarkColorScheme:r=`dark`,modeStorageKey:i=Ca,colorSchemeStorageKey:a=wa,attribute:o=Ta,colorSchemeNode:s=`document.documentElement`,nonce:c}=e||{},l=``,u=o;if(o===`class`&&(u=`.%s`),o===`data`&&(u=`[data-%s]`),u.startsWith(`.`)){let e=u.substring(1);l+=`${s}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark));
|
|
11
|
+
${s}.classList.add('${e}'.replace('%s', colorScheme));`}let d=u.match(/\[([^\]]+)\]/);if(d){let[e,t]=d[1].split(`=`);t||(l+=`${s}.removeAttribute('${e}'.replace('%s', light));
|
|
12
|
+
${s}.removeAttribute('${e}'.replace('%s', dark));`),l+=`
|
|
13
|
+
${s}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:`""`});`}else l+=`${s}.setAttribute('${u}', colorScheme);`;return(0,V.jsx)(`script`,{suppressHydrationWarning:!0,nonce:typeof window>`u`?c:``,dangerouslySetInnerHTML:{__html:`(function() {
|
|
14
|
+
try {
|
|
15
|
+
let colorScheme = '';
|
|
16
|
+
const mode = localStorage.getItem('${i}') || '${t}';
|
|
17
|
+
const dark = localStorage.getItem('${a}-dark') || '${r}';
|
|
18
|
+
const light = localStorage.getItem('${a}-light') || '${n}';
|
|
19
|
+
if (mode === 'system') {
|
|
20
|
+
// handle system mode
|
|
21
|
+
const mql = window.matchMedia('(prefers-color-scheme: dark)');
|
|
22
|
+
if (mql.matches) {
|
|
23
|
+
colorScheme = dark
|
|
24
|
+
} else {
|
|
25
|
+
colorScheme = light
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
if (mode === 'light') {
|
|
29
|
+
colorScheme = light;
|
|
30
|
+
}
|
|
31
|
+
if (mode === 'dark') {
|
|
32
|
+
colorScheme = dark;
|
|
33
|
+
}
|
|
34
|
+
if (colorScheme) {
|
|
35
|
+
${l}
|
|
36
|
+
}
|
|
37
|
+
} catch(e){}})();`}},`mui-color-scheme-init`)}function Da(){}var Oa=({key:e,storageWindow:t})=>(!t&&typeof window<`u`&&(t=window),{get(n){if(typeof window>`u`)return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return Da;let r=t=>{let r=t.newValue;t.key===e&&n(r)};return t.addEventListener(`storage`,r),()=>{t.removeEventListener(`storage`,r)}}});function ka(){}function Aa(e){if(typeof window<`u`&&typeof window.matchMedia==`function`&&e===`system`)return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function ja(e,t){if(e.mode===`light`||e.mode===`system`&&e.systemMode===`light`)return t(`light`);if(e.mode===`dark`||e.mode===`system`&&e.systemMode===`dark`)return t(`dark`)}function Ma(e){return ja(e,t=>{if(t===`light`)return e.lightColorScheme;if(t===`dark`)return e.darkColorScheme})}function Na(e){let{defaultMode:t=`light`,defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:a=Ca,colorSchemeStorageKey:o=wa,storageWindow:s=typeof window>`u`?void 0:window,storageManager:c=Oa,noSsr:l=!1}=e,u=i.join(`,`),d=i.length>1,f=B.useMemo(()=>c?.({key:a,storageWindow:s}),[c,a,s]),p=B.useMemo(()=>c?.({key:`${o}-light`,storageWindow:s}),[c,o,s]),m=B.useMemo(()=>c?.({key:`${o}-dark`,storageWindow:s}),[c,o,s]),[h,g]=B.useState(()=>{let e=f?.get(t)||t,i=p?.get(n)||n,a=m?.get(r)||r;return{mode:e,systemMode:Aa(e),lightColorScheme:i,darkColorScheme:a}}),[_,v]=B.useState(l||!d);B.useEffect(()=>{v(!0)},[]);let y=Ma(h),b=B.useCallback(e=>{g(n=>{if(e===n.mode)return n;let r=e??t;return f?.set(r),{...n,mode:r,systemMode:Aa(r)}})},[f,t]),x=B.useCallback(e=>{e?typeof e==`string`?e&&!u.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):g(t=>{let n={...t};return ja(t,t=>{t===`light`&&(p?.set(e),n.lightColorScheme=e),t===`dark`&&(m?.set(e),n.darkColorScheme=e)}),n}):g(t=>{let i={...t},a=e.light===null?n:e.light,o=e.dark===null?r:e.dark;return a&&(u.includes(a)?(i.lightColorScheme=a,p?.set(a)):console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)),o&&(u.includes(o)?(i.darkColorScheme=o,m?.set(o)):console.error(`\`${o}\` does not exist in \`theme.colorSchemes\`.`)),i}):g(e=>(p?.set(n),m?.set(r),{...e,lightColorScheme:n,darkColorScheme:r}))},[u,p,m,n,r]),S=B.useCallback(e=>{h.mode===`system`&&g(t=>{let n=e?.matches?`dark`:`light`;return t.systemMode===n?t:{...t,systemMode:n}})},[h.mode]),C=B.useRef(S);return C.current=S,B.useEffect(()=>{if(typeof window.matchMedia!=`function`||!d)return;let e=(...e)=>C.current(...e),t=window.matchMedia(`(prefers-color-scheme: dark)`);return t.addListener(e),e(t),()=>{t.removeListener(e)}},[d]),B.useEffect(()=>{if(d){let e=f?.subscribe(e=>{(!e||[`light`,`dark`,`system`].includes(e))&&b(e||t)})||ka,n=p?.subscribe(e=>{(!e||u.match(e))&&x({light:e})})||ka,r=m?.subscribe(e=>{(!e||u.match(e))&&x({dark:e})})||ka;return()=>{e(),n(),r()}}},[x,b,u,t,s,d,f,p,m]),{...h,mode:_?h.mode:void 0,systemMode:_?h.systemMode:void 0,colorScheme:_?y:void 0,setMode:b,setColorScheme:x}}var Pa=`*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function Fa(e){let{themeId:t,theme:n={},modeStorageKey:r=Ca,colorSchemeStorageKey:i=wa,disableTransitionOnChange:a=!1,defaultColorScheme:o,resolveTheme:s}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},l=B.createContext(void 0),u=()=>B.useContext(l)||c,d={},f={};function p(e){let{children:c,theme:u,modeStorageKey:p=r,colorSchemeStorageKey:m=i,disableTransitionOnChange:h=a,storageManager:g,storageWindow:_=typeof window>`u`?void 0:window,documentNode:v=typeof document>`u`?void 0:document,colorSchemeNode:y=typeof document>`u`?void 0:document.documentElement,disableNestedContext:b=!1,disableStyleSheetGeneration:x=!1,defaultMode:S=`system`,noSsr:C}=e,w=B.useRef(!1),T=oa(),E=B.useContext(l),D=!!E&&!b,O=B.useMemo(()=>u||(typeof n==`function`?n():n),[u]),k=O[t],A=k||O,{colorSchemes:j=d,components:M=f,cssVarPrefix:N}=A,P=Object.keys(j).filter(e=>!!j[e]).join(`,`),F=B.useMemo(()=>P.split(`,`),[P]),I=typeof o==`string`?o:o.light,L=typeof o==`string`?o:o.dark,{mode:ee,setMode:R,systemMode:te,lightColorScheme:ne,darkColorScheme:re,colorScheme:z,setColorScheme:ie}=Na({supportedColorSchemes:F,defaultLightColorScheme:I,defaultDarkColorScheme:L,modeStorageKey:p,colorSchemeStorageKey:m,defaultMode:j[I]&&j[L]?S:j[A.defaultColorScheme]?.palette?.mode||A.palette?.mode,storageManager:g,storageWindow:_,noSsr:C}),ae=ee,oe=z;D&&(ae=E.mode,oe=E.colorScheme);let se=B.useMemo(()=>{let e=oe||A.defaultColorScheme,t=A.generateThemeVars?.()||A.vars,n={...A,components:M,colorSchemes:j,cssVarPrefix:N,vars:t};if(typeof n.generateSpacing==`function`&&(n.spacing=n.generateSpacing()),e){let t=j[e];t&&typeof t==`object`&&Object.keys(t).forEach(e=>{t[e]&&typeof t[e]==`object`?n[e]={...n[e],...t[e]}:n[e]=t[e]})}return s?s(n):n},[A,oe,M,j,N]),ce=A.colorSchemeSelector;oi(()=>{if(oe&&y&&ce&&ce!==`media`){let e=ce,t=ce;if(e===`class`&&(t=`.%s`),e===`data`&&(t=`[data-%s]`),e?.startsWith(`data-`)&&!e.includes(`%s`)&&(t=`[${e}="%s"]`),t.startsWith(`.`))y.classList.remove(...F.map(e=>t.substring(1).replace(`%s`,e))),y.classList.add(t.substring(1).replace(`%s`,oe));else{let e=t.replace(`%s`,oe).match(/\[([^\]]+)\]/);if(e){let[t,n]=e[1].split(`=`);n||F.forEach(e=>{y.removeAttribute(t.replace(oe,e))}),y.setAttribute(t,n?n.replace(/"|'/g,``):``)}else y.setAttribute(t,oe)}}},[oe,ce,y,F]),B.useEffect(()=>{let e;if(h&&w.current&&v){let t=v.createElement(`style`);t.appendChild(v.createTextNode(Pa)),v.head.appendChild(t),window.getComputedStyle(v.body),e=setTimeout(()=>{v.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[oe,h,v]),B.useEffect(()=>(w.current=!0,()=>{w.current=!1}),[]);let le=B.useMemo(()=>({allColorSchemes:F,colorScheme:oe,darkColorScheme:re,lightColorScheme:ne,mode:ae,setColorScheme:ie,setMode:R,systemMode:te}),[F,oe,re,ne,ae,ie,R,te,se.colorSchemeSelector]),ue=!0;(x||A.cssVariables===!1||D&&T?.cssVarPrefix===N)&&(ue=!1);let de=(0,V.jsxs)(B.Fragment,{children:[(0,V.jsx)(ba,{themeId:k?t:void 0,theme:se,children:c}),ue&&(0,V.jsx)(nn,{styles:se.generateStyleSheets?.()||[]})]});return D?de:(0,V.jsx)(l.Provider,{value:le,children:de})}let m=typeof o==`string`?o:o.light,h=typeof o==`string`?o:o.dark;return{CssVarsProvider:p,useColorScheme:u,getInitColorSchemeScript:e=>Ea({colorSchemeStorageKey:i,defaultLightColorScheme:m,defaultDarkColorScheme:h,modeStorageKey:r,...e})}}function Ia(e=``){function t(...n){if(!n.length)return``;let r=n[0];return typeof r==`string`&&!r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:``}${r}${t(...n.slice(1))})`:`, ${r}`}return(n,...r)=>`var(--${e?`${e}-`:``}${n}${t(...r)})`}var La=(e,t,n,r=[])=>{let i=e;t.forEach((e,a)=>{a===t.length-1?Array.isArray(i)?i[Number(e)]=n:i&&typeof i==`object`&&(i[e]=n):i&&typeof i==`object`&&(i[e]||(i[e]=r.includes(e)?[]:{}),i=i[e])})},Ra=(e,t,n)=>{function r(e,i=[],a=[]){Object.entries(e).forEach(([e,o])=>{(!n||n&&!n([...i,e]))&&o!=null&&(typeof o==`object`&&Object.keys(o).length>0?r(o,[...i,e],Array.isArray(o)?[...a,e]:a):t([...i,e],o,a))})}r(e)},za=(e,t)=>typeof t==`number`?[`lineHeight`,`fontWeight`,`opacity`,`zIndex`].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes(`opacity`)?t:`${t}px`:t;function Ba(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},a={},o={};return Ra(e,(e,t,s)=>{if((typeof t==`string`||typeof t==`number`)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:``}${e.join(`-`)}`,c=za(e,t);Object.assign(i,{[r]:c}),La(a,e,`var(${r})`,s),La(o,e,`var(${r}, ${c})`,s)}},e=>e[0]===`vars`),{css:i,vars:a,varsWithDefaults:o}}function Va(e,t={}){let{getSelector:n=g,disableCssColorScheme:r,colorSchemeSelector:i}=t,{colorSchemes:a={},components:o,defaultColorScheme:s=`light`,...c}=e,{vars:l,css:u,varsWithDefaults:d}=Ba(c,t),f=d,p={},{[s]:m,...h}=a;if(Object.entries(h||{}).forEach(([e,n])=>{let{vars:r,css:i,varsWithDefaults:a}=Ba(n,t);f=fn(f,a),p[e]={css:i,vars:r}}),m){let{css:e,vars:n,varsWithDefaults:r}=Ba(m,t);f=fn(f,r),p[s]={css:e,vars:n}}function g(t,n){let r=i;if(i===`class`&&(r=`.%s`),i===`data`&&(r=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(r=`[${i}="%s"]`),t){if(r===`media`)return e.defaultColorScheme===t?`:root`:{[`@media (prefers-color-scheme: ${a[t]?.palette?.mode||t})`]:{":root":n}};if(r)return e.defaultColorScheme===t?`:root, ${r.replace(`%s`,String(t))}`:r.replace(`%s`,String(t))}return`:root`}return{vars:f,generateThemeVars:()=>{let e={...l};return Object.entries(p).forEach(([,{vars:t}])=>{e=fn(e,t)}),e},generateStyleSheets:()=>{let t=[],i=e.defaultColorScheme||`light`;function o(e,n){Object.keys(n).length&&t.push(typeof e==`string`?{[e]:{...n}}:e)}o(n(void 0,{...u}),u);let{[i]:s,...c}=p;if(s){let{css:e}=s,t=a[i]?.palette?.mode,c=!r&&t?{colorScheme:t,...e}:{...e};o(n(i,{...c}),c)}return Object.entries(c).forEach(([e,{css:t}])=>{let i=a[e]?.palette?.mode,s=!r&&i?{colorScheme:i,...t}:{...t};o(n(e,{...s}),s)}),t}}}function Ha(e){return function(t){return e===`media`?`@media (prefers-color-scheme: ${t})`:e?e.startsWith(`data-`)&&!e.includes(`%s`)?`[${e}="${t}"] &`:e===`class`?`.${t} &`:e===`data`?`[data-${t}] &`:`${e.replace(`%s`,t)} &`:`&`}}var Ua=(e,t)=>e.filter(e=>t.includes(e)),Wa=(e,t,n)=>{let r=e.keys[0];Array.isArray(t)?t.forEach((t,r)=>{n((t,n)=>{r<=e.keys.length-1&&(r===0?Object.assign(t,n):t[e.up(e.keys[r])]=n)},t)}):t&&typeof t==`object`?(Object.keys(t).length>e.keys.length?e.keys:Ua(e.keys,Object.keys(t))).forEach(i=>{if(e.keys.includes(i)){let a=t[i];a!==void 0&&n((t,n)=>{r===i?Object.assign(t,n):t[e.up(i)]=n},a)}}):(typeof t==`number`||typeof t==`string`)&&n((e,t)=>{Object.assign(e,t)},t)};function Ga(e){return`--Grid-${e}Spacing`}function Ka(e){return`--Grid-parent-${e}Spacing`}var qa=`--Grid-columns`,Ja=`--Grid-parent-columns`,Ya=({theme:e,ownerState:t})=>{let n={};return Wa(e.breakpoints,t.size,(e,t)=>{let r={};t===`grow`&&(r={flexBasis:0,flexGrow:1,maxWidth:`100%`}),t===`auto`&&(r={flexBasis:`auto`,flexGrow:0,flexShrink:0,maxWidth:`none`,width:`auto`}),typeof t==`number`&&(r={flexGrow:0,flexBasis:`auto`,width:`calc(100% * ${t} / var(${Ja}) - (var(${Ja}) - ${t}) * (var(${Ka(`column`)}) / var(${Ja})))`}),e(n,r)}),n},Xa=({theme:e,ownerState:t})=>{let n={};return Wa(e.breakpoints,t.offset,(e,t)=>{let r={};t===`auto`&&(r={marginLeft:`auto`}),typeof t==`number`&&(r={marginLeft:t===0?`0px`:`calc(100% * ${t} / var(${Ja}) + var(${Ka(`column`)}) * ${t} / var(${Ja}))`}),e(n,r)}),n},Za=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={[qa]:12};return Wa(e.breakpoints,t.columns,(e,t)=>{let r=t??12;e(n,{[qa]:r,"> *":{[Ja]:r}})}),n},Qa=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={};return Wa(e.breakpoints,t.rowSpacing,(t,r)=>{let i=typeof r==`string`?r:e.spacing?.(r);t(n,{[Ga(`row`)]:i,"> *":{[Ka(`row`)]:i}})}),n},$a=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={};return Wa(e.breakpoints,t.columnSpacing,(t,r)=>{let i=typeof r==`string`?r:e.spacing?.(r);t(n,{[Ga(`column`)]:i,"> *":{[Ka(`column`)]:i}})}),n},eo=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={};return Wa(e.breakpoints,t.direction,(e,t)=>{e(n,{flexDirection:t})}),n},to=({ownerState:e})=>({minWidth:0,boxSizing:`border-box`,...e.container&&{display:`flex`,flexWrap:`wrap`,...e.wrap&&e.wrap!==`wrap`&&{flexWrap:e.wrap},gap:`var(${Ga(`row`)}) var(${Ga(`column`)})`}}),no=e=>{let t=[];return Object.entries(e).forEach(([e,n])=>{n!==!1&&n!==void 0&&t.push(`grid-${e}-${String(n)}`)}),t},ro=(e,t=`xs`)=>{function n(e){return e===void 0?!1:typeof e==`string`&&!Number.isNaN(Number(e))||typeof e==`number`&&e>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e==`object`&&!Array.isArray(e)){let t=[];return Object.entries(e).forEach(([e,r])=>{n(r)&&t.push(`spacing-${e}-${String(r)}`)}),t}return[]},io=e=>e===void 0?[]:typeof e==`object`?Object.entries(e).map(([e,t])=>`direction-${e}-${t}`):[`direction-xs-${String(e)}`];function ao(e,t){let n=[];e.item!==void 0&&(delete e.item,n.push(`item`)),e.zeroMinWidth!==void 0&&(delete e.zeroMinWidth,n.push(`zeroMinWidth`)),t.keys.forEach(t=>{e[t]!==void 0&&(n.push(t),delete e[t])})}var oo=Ar(),so=ni(`div`,{name:`MuiGrid`,slot:`Root`,overridesResolver:(e,t)=>t.root});function co(e){return ai({props:e,name:`MuiGrid`,defaultTheme:oo})}function lo(e={}){let{createStyledComponent:t=so,useThemeProps:n=co,useTheme:r=Pr,componentName:i=`MuiGrid`}=e,a=(e,t)=>{let{container:n,direction:r,spacing:a,wrap:o,size:s}=e;return G({root:[`root`,n&&`container`,o!==`wrap`&&`wrap-xs-${String(o)}`,...io(r),...no(s),...n?ro(a,t.breakpoints.keys[0]):[]]},e=>U(i,e),{})};function o(e,t,n=()=>!0){let r={};return e===null||(Array.isArray(e)?e.forEach((e,i)=>{e!==null&&n(e)&&t.keys[i]&&(r[t.keys[i]]=e)}):typeof e==`object`?Object.keys(e).forEach(t=>{let i=e[t];i!=null&&n(i)&&(r[t]=i)}):r[t.keys[0]]=e),r}let s=t(Za,$a,Qa,Ya,eo,to,Xa),c=B.forwardRef(function(e,t){let i=r(),c=Rr(n(e));ao(c,i.breakpoints);let{className:l,children:u,columns:d=12,container:f=!1,component:p=`div`,direction:m=`row`,wrap:h=`wrap`,size:g={},offset:_={},spacing:v=0,rowSpacing:y=v,columnSpacing:b=v,unstable_level:x=0,...S}=c,C=o(g,i.breakpoints,e=>e!==!1),w=o(_,i.breakpoints),T=e.columns??(x?void 0:d),E=e.spacing??(x?void 0:v),D=e.rowSpacing??e.spacing??(x?void 0:y),O=e.columnSpacing??e.spacing??(x?void 0:b),k={...c,level:x,columns:T,container:f,direction:m,wrap:h,spacing:E,rowSpacing:D,columnSpacing:O,size:C,offset:w};return(0,V.jsx)(s,{ref:t,as:p,ownerState:k,className:H(a(k,i).root,l),...S,children:B.Children.map(u,e=>B.isValidElement(e)&&ji(e,[`Grid`])&&f&&e.props.container?B.cloneElement(e,{unstable_level:e.props?.unstable_level??x+1}):e)})});return c.muiName=`Grid`,c}var uo={black:`#000`,white:`#fff`},fo={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`},po={50:`#f3e5f5`,100:`#e1bee7`,200:`#ce93d8`,300:`#ba68c8`,400:`#ab47bc`,500:`#9c27b0`,600:`#8e24aa`,700:`#7b1fa2`,800:`#6a1b9a`,900:`#4a148c`,A100:`#ea80fc`,A200:`#e040fb`,A400:`#d500f9`,A700:`#aa00ff`},mo={50:`#ffebee`,100:`#ffcdd2`,200:`#ef9a9a`,300:`#e57373`,400:`#ef5350`,500:`#f44336`,600:`#e53935`,700:`#d32f2f`,800:`#c62828`,900:`#b71c1c`,A100:`#ff8a80`,A200:`#ff5252`,A400:`#ff1744`,A700:`#d50000`},ho={50:`#fff3e0`,100:`#ffe0b2`,200:`#ffcc80`,300:`#ffb74d`,400:`#ffa726`,500:`#ff9800`,600:`#fb8c00`,700:`#f57c00`,800:`#ef6c00`,900:`#e65100`,A100:`#ffd180`,A200:`#ffab40`,A400:`#ff9100`,A700:`#ff6d00`},go={50:`#e3f2fd`,100:`#bbdefb`,200:`#90caf9`,300:`#64b5f6`,400:`#42a5f5`,500:`#2196f3`,600:`#1e88e5`,700:`#1976d2`,800:`#1565c0`,900:`#0d47a1`,A100:`#82b1ff`,A200:`#448aff`,A400:`#2979ff`,A700:`#2962ff`},_o={50:`#e1f5fe`,100:`#b3e5fc`,200:`#81d4fa`,300:`#4fc3f7`,400:`#29b6f6`,500:`#03a9f4`,600:`#039be5`,700:`#0288d1`,800:`#0277bd`,900:`#01579b`,A100:`#80d8ff`,A200:`#40c4ff`,A400:`#00b0ff`,A700:`#0091ea`},vo={50:`#e8f5e9`,100:`#c8e6c9`,200:`#a5d6a7`,300:`#81c784`,400:`#66bb6a`,500:`#4caf50`,600:`#43a047`,700:`#388e3c`,800:`#2e7d32`,900:`#1b5e20`,A100:`#b9f6ca`,A200:`#69f0ae`,A400:`#00e676`,A700:`#00c853`};function yo(){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:uo.white,default:uo.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}}}var bo=yo();function xo(){return{text:{primary:uo.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:uo.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}}}var So=xo();function Co(e,t,n,r){let i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t===`light`?e.light=Ti(e.main,i):t===`dark`&&(e.dark=Ci(e.main,a)))}function wo(e=`light`){return e===`dark`?{main:go[200],light:go[50],dark:go[400]}:{main:go[700],light:go[400],dark:go[800]}}function To(e=`light`){return e===`dark`?{main:po[200],light:po[50],dark:po[400]}:{main:po[500],light:po[300],dark:po[700]}}function Eo(e=`light`){return e===`dark`?{main:mo[500],light:mo[300],dark:mo[700]}:{main:mo[700],light:mo[400],dark:mo[800]}}function Do(e=`light`){return e===`dark`?{main:_o[400],light:_o[300],dark:_o[700]}:{main:_o[700],light:_o[500],dark:_o[900]}}function Oo(e=`light`){return e===`dark`?{main:vo[400],light:vo[300],dark:vo[700]}:{main:vo[800],light:vo[500],dark:vo[900]}}function ko(e=`light`){return e===`dark`?{main:ho[400],light:ho[300],dark:ho[700]}:{main:`#ed6c02`,light:ho[500],dark:ho[900]}}function Ao(e){let{mode:t=`light`,contrastThreshold:n=3,tonalOffset:r=.2,...i}=e,a=e.primary||wo(t),o=e.secondary||To(t),s=e.error||Eo(t),c=e.info||Do(t),l=e.success||Oo(t),u=e.warning||ko(t);function d(e){return bi(e,So.text.primary)>=n?So.text.primary:bo.text.primary}let f=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:a=700})=>{if(e={...e},!e.main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty(`main`))throw Error(_(11,t?` (${t})`:``,n));if(typeof e.main!=`string`)throw Error(_(12,t?` (${t})`:``,JSON.stringify(e.main)));return Co(e,`light`,i,r),Co(e,`dark`,a,r),e.contrastText||=d(e.main),e},p;return t===`light`?p=yo():t===`dark`&&(p=xo()),fn({common:{...uo},mode:t,primary:f({color:a,name:`primary`}),secondary:f({color:o,name:`secondary`,mainShade:`A400`,lightShade:`A200`,darkShade:`A700`}),error:f({color:s,name:`error`}),warning:f({color:u,name:`warning`}),info:f({color:c,name:`info`}),success:f({color:l,name:`success`}),grey:fo,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r,...p},i)}function jo(e){let t={};return Object.entries(e).forEach(e=>{let[n,r]=e;typeof r==`object`&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:``}${r.fontVariant?`${r.fontVariant} `:``}${r.fontWeight?`${r.fontWeight} `:``}${r.fontStretch?`${r.fontStretch} `:``}${r.fontSize||``}${r.lineHeight?`/${r.lineHeight} `:``}${r.fontFamily||``}`)}),t}function Mo(e,t){return{toolbar:{minHeight:56,[e.up(`xs`)]:{"@media (orientation: landscape)":{minHeight:48}},[e.up(`sm`)]:{minHeight:64}},...t}}function No(e){return Math.round(e*1e5)/1e5}var Po={textTransform:`uppercase`},Fo=`"Roboto", "Helvetica", "Arial", sans-serif`;function Io(e,t){let{fontFamily:n=Fo,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:l,pxToRem:u,...d}=typeof t==`function`?t(e):t,f=r/14,p=u||(e=>`${e/c*f}rem`),m=(e,t,r,i,a)=>({fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===Fo?{letterSpacing:`${No(i/t)}em`}:{},...a,...l});return fn({htmlFontSize:c,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:s,h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(o,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(o,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(o,14,1.75,.4,Po),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Po),inherit:{fontFamily:`inherit`,fontWeight:`inherit`,fontSize:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},d,{clone:!1})}var Lo=.2,Ro=.14,zo=.12;function Bo(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Lo})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Ro})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${zo})`].join(`,`)}var Vo=[`none`,Bo(0,2,1,-1,0,1,1,0,0,1,3,0),Bo(0,3,1,-2,0,2,2,0,0,1,5,0),Bo(0,3,3,-2,0,3,4,0,0,1,8,0),Bo(0,2,4,-1,0,4,5,0,0,1,10,0),Bo(0,3,5,-1,0,5,8,0,0,1,14,0),Bo(0,3,5,-1,0,6,10,0,0,1,18,0),Bo(0,4,5,-2,0,7,10,1,0,2,16,1),Bo(0,5,5,-3,0,8,10,1,0,3,14,2),Bo(0,5,6,-3,0,9,12,1,0,3,16,2),Bo(0,6,6,-3,0,10,14,1,0,4,18,3),Bo(0,6,7,-4,0,11,15,1,0,4,20,3),Bo(0,7,8,-4,0,12,17,2,0,5,22,4),Bo(0,7,8,-4,0,13,19,2,0,5,24,4),Bo(0,7,9,-4,0,14,21,2,0,5,26,4),Bo(0,8,9,-5,0,15,22,2,0,6,28,5),Bo(0,8,10,-5,0,16,24,2,0,6,30,5),Bo(0,8,11,-5,0,17,26,2,0,6,32,5),Bo(0,9,11,-5,0,18,28,2,0,7,34,6),Bo(0,9,12,-6,0,19,29,2,0,7,36,6),Bo(0,10,13,-6,0,20,31,3,0,8,38,7),Bo(0,10,13,-6,0,21,33,3,0,8,40,7),Bo(0,10,14,-6,0,22,35,3,0,8,42,7),Bo(0,11,14,-7,0,23,36,3,0,9,44,8),Bo(0,11,15,-7,0,24,38,3,0,9,46,8)],Ho={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)`},Uo={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Wo(e){return`${Math.round(e)}ms`}function Go(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Ko(e){let t={...Ho,...e.easing},n={...Uo,...e.duration};return{getAutoHeightDuration:Go,create:(e=[`all`],r={})=>{let{duration:i=n.standard,easing:a=t.easeInOut,delay:o=0,...s}=r;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${typeof i==`string`?i:Wo(i)} ${a} ${typeof o==`string`?o:Wo(o)}`).join(`,`)},...e,easing:t,duration:n}}var qo={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Jo(e){return un(e)||e===void 0||typeof e==`string`||typeof e==`boolean`||typeof e==`number`||Array.isArray(e)}function Yo(e={}){let t={...e};function n(e){let t=Object.entries(e);for(let r=0;r<t.length;r++){let[i,a]=t[r];!Jo(a)||i.startsWith(`unstable_`)?delete e[i]:un(a)&&(e[i]={...a},n(e[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
38
|
+
|
|
39
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
40
|
+
|
|
41
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
42
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
43
|
+
|
|
44
|
+
export default theme;`}function Xo(e={},...t){let{breakpoints:n,mixins:r={},spacing:i,palette:a={},transitions:o={},typography:s={},shape:c,...l}=e;if(e.vars&&e.generateThemeVars===void 0)throw Error(_(20));let u=Ao(a),d=Ar(e),f=fn(d,{mixins:Mo(d.breakpoints,r),palette:u,shadows:Vo.slice(),typography:Io(u,s),transitions:Ko(o),zIndex:{...qo}});return f=fn(f,l),f=t.reduce((e,t)=>fn(e,t),f),f.unstable_sxConfig={...wr,...l?.unstable_sxConfig},f.unstable_sx=function(e){return Or({sx:e,theme:this})},f.toRuntimeSource=Yo,f}function Zo(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}var Qo=[...Array(25)].map((e,t)=>{if(t===0)return`none`;let n=Zo(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function $o(e){return{inputPlaceholder:e===`dark`?.5:.42,inputUnderline:e===`dark`?.7:.42,switchTrackDisabled:e===`dark`?.2:.12,switchTrack:e===`dark`?.3:.38}}function es(e){return e===`dark`?Qo:[]}function ts(e){let{palette:t={mode:`light`},opacity:n,overlays:r,...i}=e,a=Ao(t);return{palette:a,opacity:{...$o(a.mode),...n},overlays:r||es(a.mode),...i}}function ns(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]===`palette`&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var rs=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:``}overlays-${n}`),`--${e?`${e}-`:``}palette-AppBar-darkBg`,`--${e?`${e}-`:``}palette-AppBar-darkColor`],is=e=>(t,n)=>{let r=e.rootSelector||`:root`,i=e.colorSchemeSelector,a=i;if(i===`class`&&(a=`.%s`),i===`data`&&(a=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t===`dark`){let i={};return rs(e.cssVarPrefix).forEach(e=>{i[e]=n[e],delete n[e]}),a===`media`?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:a?{[a.replace(`%s`,t)]:i,[`${r}, ${a.replace(`%s`,t)}`]:n}:{[r]:{...n,...i}}}if(a&&a!==`media`)return`${r}, ${a.replace(`%s`,String(t))}`}else if(t){if(a===`media`)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace(`%s`,String(t))}return r};function as(e,t){t.forEach(t=>{e[t]||(e[t]={})})}function K(e,t,n){!e[t]&&n&&(e[t]=n)}function os(e){return typeof e!=`string`||!e.startsWith(`hsl`)?e:vi(e)}function ss(e,t){`${t}Channel`in e||(e[`${t}Channel`]=gi(os(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
45
|
+
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function cs(e){return typeof e==`number`?`${e}px`:typeof e==`string`||typeof e==`function`||Array.isArray(e)?e:`8px`}var ls=e=>{try{return e()}catch{}},us=(e=`mui`)=>Ia(e);function ds(e,t,n,r){if(!t)return;t=t===!0?{}:t;let i=r===`dark`?`dark`:`light`;if(!n){e[r]=ts({...t,palette:{mode:i,...t?.palette}});return}let{palette:a,...o}=Xo({...n,palette:{mode:i,...t?.palette}});return e[r]={...t,palette:a,opacity:{...$o(i),...t?.opacity},overlays:t?.overlays||es(i)},o}function fs(e={},...t){let{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a=`mui`,shouldSkipGeneratingVar:o=ns,colorSchemeSelector:s=n.light&&n.dark?`media`:void 0,rootSelector:c=`:root`,...l}=e,u=Object.keys(n)[0],d=r||(n.light&&u!==`light`?`light`:u),f=us(a),{[d]:p,light:m,dark:h,...g}=n,v={...g},y=p;if((d===`dark`&&!(`dark`in n)||d===`light`&&!(`light`in n))&&(y=!0),!y)throw Error(_(21,d));let b=ds(v,y,l,d);m&&!v.light&&ds(v,m,void 0,`light`),h&&!v.dark&&ds(v,h,void 0,`dark`);let x={defaultColorScheme:d,...b,cssVarPrefix:a,colorSchemeSelector:s,rootSelector:c,getCssVar:f,colorSchemes:v,font:{...jo(b.typography),...b.font},spacing:cs(l.spacing)};Object.keys(x.colorSchemes).forEach(e=>{let t=x.colorSchemes[e].palette,n=e=>{let n=e.split(`-`),r=n[1],i=n[2];return f(e,t[r][i])};if(t.mode===`light`&&(K(t.common,`background`,`#fff`),K(t.common,`onBackground`,`#000`)),t.mode===`dark`&&(K(t.common,`background`,`#000`),K(t.common,`onBackground`,`#fff`)),as(t,[`Alert`,`AppBar`,`Avatar`,`Button`,`Chip`,`FilledInput`,`LinearProgress`,`Skeleton`,`Slider`,`SnackbarContent`,`SpeedDialAction`,`StepConnector`,`StepContent`,`Switch`,`TableCell`,`Tooltip`]),t.mode===`light`){K(t.Alert,`errorColor`,wi(t.error.light,.6)),K(t.Alert,`infoColor`,wi(t.info.light,.6)),K(t.Alert,`successColor`,wi(t.success.light,.6)),K(t.Alert,`warningColor`,wi(t.warning.light,.6)),K(t.Alert,`errorFilledBg`,n(`palette-error-main`)),K(t.Alert,`infoFilledBg`,n(`palette-info-main`)),K(t.Alert,`successFilledBg`,n(`palette-success-main`)),K(t.Alert,`warningFilledBg`,n(`palette-warning-main`)),K(t.Alert,`errorFilledColor`,ls(()=>t.getContrastText(t.error.main))),K(t.Alert,`infoFilledColor`,ls(()=>t.getContrastText(t.info.main))),K(t.Alert,`successFilledColor`,ls(()=>t.getContrastText(t.success.main))),K(t.Alert,`warningFilledColor`,ls(()=>t.getContrastText(t.warning.main))),K(t.Alert,`errorStandardBg`,Ei(t.error.light,.9)),K(t.Alert,`infoStandardBg`,Ei(t.info.light,.9)),K(t.Alert,`successStandardBg`,Ei(t.success.light,.9)),K(t.Alert,`warningStandardBg`,Ei(t.warning.light,.9)),K(t.Alert,`errorIconColor`,n(`palette-error-main`)),K(t.Alert,`infoIconColor`,n(`palette-info-main`)),K(t.Alert,`successIconColor`,n(`palette-success-main`)),K(t.Alert,`warningIconColor`,n(`palette-warning-main`)),K(t.AppBar,`defaultBg`,n(`palette-grey-100`)),K(t.Avatar,`defaultBg`,n(`palette-grey-400`)),K(t.Button,`inheritContainedBg`,n(`palette-grey-300`)),K(t.Button,`inheritContainedHoverBg`,n(`palette-grey-A100`)),K(t.Chip,`defaultBorder`,n(`palette-grey-400`)),K(t.Chip,`defaultAvatarColor`,n(`palette-grey-700`)),K(t.Chip,`defaultIconColor`,n(`palette-grey-700`)),K(t.FilledInput,`bg`,`rgba(0, 0, 0, 0.06)`),K(t.FilledInput,`hoverBg`,`rgba(0, 0, 0, 0.09)`),K(t.FilledInput,`disabledBg`,`rgba(0, 0, 0, 0.12)`),K(t.LinearProgress,`primaryBg`,Ei(t.primary.main,.62)),K(t.LinearProgress,`secondaryBg`,Ei(t.secondary.main,.62)),K(t.LinearProgress,`errorBg`,Ei(t.error.main,.62)),K(t.LinearProgress,`infoBg`,Ei(t.info.main,.62)),K(t.LinearProgress,`successBg`,Ei(t.success.main,.62)),K(t.LinearProgress,`warningBg`,Ei(t.warning.main,.62)),K(t.Skeleton,`bg`,`rgba(${n(`palette-text-primaryChannel`)} / 0.11)`),K(t.Slider,`primaryTrack`,Ei(t.primary.main,.62)),K(t.Slider,`secondaryTrack`,Ei(t.secondary.main,.62)),K(t.Slider,`errorTrack`,Ei(t.error.main,.62)),K(t.Slider,`infoTrack`,Ei(t.info.main,.62)),K(t.Slider,`successTrack`,Ei(t.success.main,.62)),K(t.Slider,`warningTrack`,Ei(t.warning.main,.62));let e=Oi(t.background.default,.8);K(t.SnackbarContent,`bg`,e),K(t.SnackbarContent,`color`,ls(()=>t.getContrastText(e))),K(t.SpeedDialAction,`fabHoverBg`,Oi(t.background.paper,.15)),K(t.StepConnector,`border`,n(`palette-grey-400`)),K(t.StepContent,`border`,n(`palette-grey-400`)),K(t.Switch,`defaultColor`,n(`palette-common-white`)),K(t.Switch,`defaultDisabledColor`,n(`palette-grey-100`)),K(t.Switch,`primaryDisabledColor`,Ei(t.primary.main,.62)),K(t.Switch,`secondaryDisabledColor`,Ei(t.secondary.main,.62)),K(t.Switch,`errorDisabledColor`,Ei(t.error.main,.62)),K(t.Switch,`infoDisabledColor`,Ei(t.info.main,.62)),K(t.Switch,`successDisabledColor`,Ei(t.success.main,.62)),K(t.Switch,`warningDisabledColor`,Ei(t.warning.main,.62)),K(t.TableCell,`border`,Ei(Si(t.divider,1),.88)),K(t.Tooltip,`bg`,Si(t.grey[700],.92))}if(t.mode===`dark`){K(t.Alert,`errorColor`,Ei(t.error.light,.6)),K(t.Alert,`infoColor`,Ei(t.info.light,.6)),K(t.Alert,`successColor`,Ei(t.success.light,.6)),K(t.Alert,`warningColor`,Ei(t.warning.light,.6)),K(t.Alert,`errorFilledBg`,n(`palette-error-dark`)),K(t.Alert,`infoFilledBg`,n(`palette-info-dark`)),K(t.Alert,`successFilledBg`,n(`palette-success-dark`)),K(t.Alert,`warningFilledBg`,n(`palette-warning-dark`)),K(t.Alert,`errorFilledColor`,ls(()=>t.getContrastText(t.error.dark))),K(t.Alert,`infoFilledColor`,ls(()=>t.getContrastText(t.info.dark))),K(t.Alert,`successFilledColor`,ls(()=>t.getContrastText(t.success.dark))),K(t.Alert,`warningFilledColor`,ls(()=>t.getContrastText(t.warning.dark))),K(t.Alert,`errorStandardBg`,wi(t.error.light,.9)),K(t.Alert,`infoStandardBg`,wi(t.info.light,.9)),K(t.Alert,`successStandardBg`,wi(t.success.light,.9)),K(t.Alert,`warningStandardBg`,wi(t.warning.light,.9)),K(t.Alert,`errorIconColor`,n(`palette-error-main`)),K(t.Alert,`infoIconColor`,n(`palette-info-main`)),K(t.Alert,`successIconColor`,n(`palette-success-main`)),K(t.Alert,`warningIconColor`,n(`palette-warning-main`)),K(t.AppBar,`defaultBg`,n(`palette-grey-900`)),K(t.AppBar,`darkBg`,n(`palette-background-paper`)),K(t.AppBar,`darkColor`,n(`palette-text-primary`)),K(t.Avatar,`defaultBg`,n(`palette-grey-600`)),K(t.Button,`inheritContainedBg`,n(`palette-grey-800`)),K(t.Button,`inheritContainedHoverBg`,n(`palette-grey-700`)),K(t.Chip,`defaultBorder`,n(`palette-grey-700`)),K(t.Chip,`defaultAvatarColor`,n(`palette-grey-300`)),K(t.Chip,`defaultIconColor`,n(`palette-grey-300`)),K(t.FilledInput,`bg`,`rgba(255, 255, 255, 0.09)`),K(t.FilledInput,`hoverBg`,`rgba(255, 255, 255, 0.13)`),K(t.FilledInput,`disabledBg`,`rgba(255, 255, 255, 0.12)`),K(t.LinearProgress,`primaryBg`,wi(t.primary.main,.5)),K(t.LinearProgress,`secondaryBg`,wi(t.secondary.main,.5)),K(t.LinearProgress,`errorBg`,wi(t.error.main,.5)),K(t.LinearProgress,`infoBg`,wi(t.info.main,.5)),K(t.LinearProgress,`successBg`,wi(t.success.main,.5)),K(t.LinearProgress,`warningBg`,wi(t.warning.main,.5)),K(t.Skeleton,`bg`,`rgba(${n(`palette-text-primaryChannel`)} / 0.13)`),K(t.Slider,`primaryTrack`,wi(t.primary.main,.5)),K(t.Slider,`secondaryTrack`,wi(t.secondary.main,.5)),K(t.Slider,`errorTrack`,wi(t.error.main,.5)),K(t.Slider,`infoTrack`,wi(t.info.main,.5)),K(t.Slider,`successTrack`,wi(t.success.main,.5)),K(t.Slider,`warningTrack`,wi(t.warning.main,.5));let e=Oi(t.background.default,.98);K(t.SnackbarContent,`bg`,e),K(t.SnackbarContent,`color`,ls(()=>t.getContrastText(e))),K(t.SpeedDialAction,`fabHoverBg`,Oi(t.background.paper,.15)),K(t.StepConnector,`border`,n(`palette-grey-600`)),K(t.StepContent,`border`,n(`palette-grey-600`)),K(t.Switch,`defaultColor`,n(`palette-grey-300`)),K(t.Switch,`defaultDisabledColor`,n(`palette-grey-600`)),K(t.Switch,`primaryDisabledColor`,wi(t.primary.main,.55)),K(t.Switch,`secondaryDisabledColor`,wi(t.secondary.main,.55)),K(t.Switch,`errorDisabledColor`,wi(t.error.main,.55)),K(t.Switch,`infoDisabledColor`,wi(t.info.main,.55)),K(t.Switch,`successDisabledColor`,wi(t.success.main,.55)),K(t.Switch,`warningDisabledColor`,wi(t.warning.main,.55)),K(t.TableCell,`border`,wi(Si(t.divider,1),.68)),K(t.Tooltip,`bg`,Si(t.grey[700],.92))}ss(t.background,`default`),ss(t.background,`paper`),ss(t.common,`background`),ss(t.common,`onBackground`),ss(t,`divider`),Object.keys(t).forEach(e=>{let n=t[e];e!==`tonalOffset`&&n&&typeof n==`object`&&(n.main&&K(t[e],`mainChannel`,gi(os(n.main))),n.light&&K(t[e],`lightChannel`,gi(os(n.light))),n.dark&&K(t[e],`darkChannel`,gi(os(n.dark))),n.contrastText&&K(t[e],`contrastTextChannel`,gi(os(n.contrastText))),e===`text`&&(ss(t[e],`primary`),ss(t[e],`secondary`)),e===`action`&&(n.active&&ss(t[e],`active`),n.selected&&ss(t[e],`selected`)))})}),x=t.reduce((e,t)=>fn(e,t),x);let S={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:o,getSelector:is(x)},{vars:C,generateThemeVars:w,generateStyleSheets:T}=Va(x,S);return x.vars=C,Object.entries(x.colorSchemes[x.defaultColorScheme]).forEach(([e,t])=>{x[e]=t}),x.generateThemeVars=w,x.generateStyleSheets=T,x.generateSpacing=function(){return Xn(l.spacing,Hn(this))},x.getColorSchemeSelector=Ha(s),x.spacing=x.generateSpacing(),x.shouldSkipGeneratingVar=o,x.unstable_sxConfig={...wr,...l?.unstable_sxConfig},x.unstable_sx=function(e){return Or({sx:e,theme:this})},x.toRuntimeSource=Yo,x}function ps(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Ao({...n===!0?{}:n.palette,mode:t})})}function ms(e={},...t){let{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...o}=e,s=a||`light`,c=i?.[s],l={...i,...n?{[s]:{...typeof c!=`boolean`&&c,palette:n}}:void 0};if(r===!1){if(!(`colorSchemes`in e))return Xo(e,...t);let r=n;`palette`in e||l[s]&&(l[s]===!0?s===`dark`&&(r={mode:`dark`}):r=l[s].palette);let i=Xo({...e,palette:r},...t);return i.defaultColorScheme=s,i.colorSchemes=l,i.palette.mode===`light`&&(i.colorSchemes.light={...l.light!==!0&&l.light,palette:i.palette},ps(i,`dark`,l.dark)),i.palette.mode===`dark`&&(i.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:i.palette},ps(i,`light`,l.light)),i}return!n&&!(`light`in l)&&s===`light`&&(l.light=!0),fs({...o,colorSchemes:l,defaultColorScheme:s,...typeof r!=`boolean`&&r},...t)}var hs=ms();function gs(){let e=Pr(hs);return e.$$material||e}function _s(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}var vs=e=>_s(e)&&e!==`classes`,q=Qr({themeId:v,defaultTheme:hs,rootShouldForwardProp:vs});function ys({theme:e,...t}){let n=`$$material`in e?e[v]:void 0;return(0,V.jsx)(ba,{...t,themeId:n?v:void 0,theme:n||e})}var bs={attribute:`data-mui-color-scheme`,colorSchemeStorageKey:`mui-color-scheme`,defaultLightColorScheme:`light`,defaultDarkColorScheme:`dark`,modeStorageKey:`mui-mode`},{CssVarsProvider:xs,useColorScheme:Ss,getInitColorSchemeScript:Cs}=Fa({themeId:v,theme:()=>ms({cssVariables:!0}),colorSchemeStorageKey:bs.colorSchemeStorageKey,modeStorageKey:bs.modeStorageKey,defaultColorScheme:{light:bs.defaultLightColorScheme,dark:bs.defaultDarkColorScheme},resolveTheme:e=>{let t={...e,typography:Io(e.palette,e.typography)};return t.unstable_sx=function(e){return Or({sx:e,theme:this})},t}}),ws=xs;function Ts({theme:e,...t}){let n=B.useMemo(()=>{if(typeof e==`function`)return e;let t=`$$material`in e?e[v]:e;return`colorSchemes`in t?null:`vars`in t?e:{...e,vars:null}},[e]);return n?(0,V.jsx)(ys,{theme:n,...t}):(0,V.jsx)(ws,{theme:e,...t})}var Es=g(),Ds=11/23/100;function Os(e){let t={r:0,g:0,b:0};if(e.length===7)t.r=parseInt(e.substring(1,3),16),t.g=parseInt(e.substring(3,5),16),t.b=parseInt(e.substring(5,7),16);else if(e.length===4){let n=e[1],r=e[2],i=e[3];t.r=parseInt(n+n,16),t.g=parseInt(r+r,16),t.b=parseInt(i+i,16)}return t}function ks(e){return`#${Math.round(e.r).toString(16).padStart(2,`0`)}${Math.round(e.g).toString(16).padStart(2,`0`)}${Math.round(e.b).toString(16).padStart(2,`0`)}`}function As(e,t,n){let r=Os(e),i=Os(t);return r.r+=i.r*(.05+Ds*(n-1)),r.g+=i.g*(.05+Ds*(n-1)),r.b+=i.b*(.05+Ds*(n-1)),ks(r)}function js(e,t){let n={};for(let r=1;r<=24;r++)n[`elevation${r}`]={backgroundColor:As(e,t,r)};return n}function Ms(e,t){let n,r;e===`dark`?(r={MuiAppBar:{colorDefault:{backgroundColor:`#272727`}},MuiLink:{root:{textTransform:`uppercase`,transition:`color .3s ease`,color:ho[200],"&:hover":{color:ho[100]}}},MuiPaper:js(`#121212`,`#fff`)},n={name:e,palette:{mode:`dark`,background:{paper:`#121212`,default:`#121212`},primary:{main:`#4dabf5`},secondary:{main:`#436a93`},expert:`#14bb00`,text:{primary:`#ffffff`,secondary:`#ffffff`}}}):e===`blue`?(r={MuiAppBar:{colorDefault:{backgroundColor:`#3399CC`}},MuiLink:{root:{textTransform:`uppercase`,transition:`color .3s ease`,color:ho[400],"&:hover":{color:ho[300]}}}},n={name:e,palette:{mode:`dark`,background:{paper:`#151d21`,default:`#151d21`},primary:{main:`#4dabf5`},secondary:{main:`#436a93`},expert:`#14bb00`,text:{primary:`#ffffff`,secondary:`#ffffff`}}}):e===`colored`?(r={MuiAppBar:{colorDefault:{backgroundColor:`#2a3135`}},MuiLink:{root:{textTransform:`uppercase`,transition:`color .3s ease`,color:ho[200],"&:hover":{color:ho[100]}}},MuiPaper:js(`#151d21`,`#fff`)},n={name:e,palette:{mode:`light`,primary:{main:`#3399CC`},secondary:{main:`#164477`},expert:`#96fc96`}}):e===`PT`?(r={MuiAppBar:{colorDefault:{backgroundColor:`#0F99DE`}},MuiLink:{root:{textTransform:`uppercase`,transition:`color .3s ease`,color:ho[400],"&:hover":{color:ho[300]}}}},n={name:e,palette:{mode:`light`,primary:{main:`#0F99DE`},secondary:{main:`#88A536`},expert:`#BD1B24`}}):e===`NW`?(r={MuiAppBar:{colorDefault:{backgroundColor:`#272727`}},MuiLink:{root:{textTransform:`uppercase`,transition:`color .3s ease`,color:ho[400],"&:hover":{color:ho[300]}}},MuiPaper:js(`#121212`,`#fff`)},n={name:e,palette:{mode:`dark`,background:{paper:`#121212`,default:`#121212`},primary:{main:`#00af78`},secondary:{main:`#005a40`},expert:`#14bb00`,text:{primary:`#ffffff`,secondary:`#ffffff`}}}):e===`HA`?(r={MuiAppBar:{colorDefault:{backgroundColor:`#272727`}},MuiLink:{root:{textTransform:`uppercase`,transition:`color .3s ease`,color:`#db0a33`,"&:hover":{color:`#FF0a33`}}},MuiPaper:js(`#121212`,`#fff`)},n={name:e,palette:{mode:`dark`,background:{paper:`#121212`,default:`#121212`},primary:{main:`#970720`},secondary:{main:`#db0a33`},expert:`#db0a33`,nonAck:`#ffe96a`,text:{primary:`#ffffff`,secondary:`#ffffff`}}}):(r={MuiLink:{root:{textTransform:`uppercase`,transition:`color .3s ease`,color:ho[400],"&:hover":{color:ho[300]}}}},n={name:e,palette:{mode:`light`,primary:{main:`#3399CC`,dark:`#256c97`,light:`#76d0fd`},secondary:{main:`#164477`},expert:`#14bb00`}}),n.toolbar={height:48},n.saveToolbar={background:n.palette?.primary?.main,button:{borderRadius:3,height:32}},n.palette&&(n.palette.grey={main:fo[300],dark:fo[400]});let i=ms(n),a=i.palette;return ms(i,{...t||void 0,components:{...r,MuiButton:{variants:[{props:{variant:`contained`,color:`grey`},style:{backgroundColor:a.grey?.[300],color:a.getContrastText&&a.grey?.[300]?a.getContrastText(a.grey[300]):void 0}},{props:{variant:`outlined`,color:`grey`},style:{color:a.text?.primary,borderColor:a.mode===`light`?`rgba(0, 0, 0, 0.23)`:`rgba(255, 255, 255, 0.23)`,"&.Mui-disabled":{border:`1px solid ${a.action?.disabledBackground}`},"&:hover":{borderColor:a.mode===`light`?`rgba(0, 0, 0, 0.23)`:`rgba(255, 255, 255, 0.23)`,backgroundColor:xi(a.text?.primary||``,a.action?.hoverOpacity||.04)}}},{props:{variant:`text`,color:`grey`},style:{color:a.text?.primary,"&:hover":{backgroundColor:xi(a.text?.primary||``,a.action?.hoverOpacity||.04)}}}]},...t?.components||void 0}})}function Ns(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function Ps(e){return e?.rows.map(e=>e.value).filter(e=>!!e)??[]}function Fs(e){return e?.startsWith(`system.host.`)||(e=`system.host.${e}`),e}function Is(e){return e?.startsWith(`system.host.`)&&(e=e.substring(12)),e}function Ls(e){return new Promise(t=>{setTimeout(t,e)})}function Rs(e){e=(e||``).toString();let t=e[0]===`*`,n=e[e.length-1]===`*`;return e=e.replace(/[-/\\^$+?.()|[\]{}]/g,`\\$&`).replace(/\*/g,`.*`),(t?``:`^`)+e+(n?``:`$`)}globalThis.process!==void 0&&(globalThis.location||={href:`http://localhost:8081/`,protocol:`http:`,host:`localhost:8081`,pathname:`/`,hostname:`localhost`,reload:()=>{}},globalThis.localStorage||={_keys:{},setItem:(e,t)=>{globalThis.localStorage._keys[e]=t},getItem:e=>e in globalThis.localStorage._keys?globalThis.localStorage._keys[e]:null,removeItem:e=>{e in globalThis.localStorage._keys&&delete globalThis.localStorage._keys[e]}},globalThis.sessionStorage||=globalThis.localStorage,globalThis.navigator||={language:`en`});var zs;(function(e){e[e.CONNECTING=0]=`CONNECTING`,e[e.CONNECTED=1]=`CONNECTED`,e[e.OBJECTS_LOADED=2]=`OBJECTS_LOADED`,e[e.READY=3]=`READY`})(zs||={});var Bs;(function(e){e.PERMISSION_ERROR=`permissionError`,e.NOT_CONNECTED=`notConnectedError`,e.TIMEOUT=`timeout`,e.NOT_ADMIN=`Allowed only in admin`,e.NOT_SUPPORTED=`Not supported`})(Bs||={}),Bs.PERMISSION_ERROR,Bs.NOT_CONNECTED;var Vs=[`material`,`echarts`,`vis`],Hs=class e{props;connId;lastAccessToken=null;ignoreState=``;connected=!1;subscribed=!1;firstConnect=!0;waitForRestart=!1;loaded=!1;simStates={};objectViewCached;constructor(e){this.props=this.applyDefaultProps(e),this.connId=`${this.props.name?`${this.props.name}-`:``}${Math.round(Math.random()*1e6).toString().padStart(6,`0`)}`,this.waitForSocketLib().then(()=>this.startSocket()).catch(e=>{alert(`Socket connection could not be initialized: ${e}`)})}applyDefaultProps(e){return{...e,protocol:e.protocol||globalThis.location.protocol,host:e.host||globalThis.location.hostname,port:e.port||(globalThis.location.port===`3000`?8081:globalThis.location.port),ioTimeout:Math.max(e.ioTimeout||2e4,2e4),cmdTimeout:Math.max(e.cmdTimeout||5e3,5e3),admin5only:e.admin5only||!1,autoSubscribes:e.autoSubscribes??[],autoSubscribeLog:e.autoSubscribeLog??!1,doNotLoadACL:e.doNotLoadACL??!0,doNotLoadAllObjects:e.doNotLoadAllObjects??!0}}statesSubscribes={};filesSubscribes={};objectsSubscribes={};objects={};states={};acl=null;isSecure=!1;onReadyDone=!1;onConnectionHandlers=[];onLogHandlers=[];onCmdStdoutHandler;onCmdStderrHandler;onCmdExitHandler;onError(e){(this.props.onError??console.error)(e)}_socket;_waitForSocketPromise;_waitForFirstConnectionPromise=Ns();_instanceSubscriptions={};_promises={};_authTimer=null;_refreshTimer=null;_systemConfig;get systemConfig(){return this._systemConfig}systemLang=`en`;static isWeb(){return globalThis.socketUrl!==void 0}waitForSocketLib(){return this._waitForSocketPromise||=new Promise(async(e,t)=>{if(this.props.connect){e();return}if(globalThis.io===void 0&&globalThis.iob===void 0)if(typeof globalThis.registerSocketOnLoad==`function`)globalThis.registerSocketOnLoad(()=>e());else{for(let t=1;t<=30;t++){if(globalThis.io||globalThis.iob)return e();await Ls(100)}t(Error(`Socket library could not be loaded!`))}else e()}),this._waitForSocketPromise}async startSocket(){if(this._socket)return;let t=this.props.host,n=this.props.port,r=(this.props.protocol||globalThis.location.protocol).replace(`:`,``),i=globalThis.location.pathname;if(globalThis.location.hostname===`iobroker.net`||globalThis.location.hostname===`iobroker.pro`)i=``;else{if(globalThis.socketUrl){let e=new globalThis.URL(globalThis.socketUrl);t=e.hostname,n=e.port,r=e.protocol.replace(`:`,``)}let a=i.lastIndexOf(`/`);if(a!==-1&&(i=i.substring(0,a+1)),e.isWeb()){let e=i.split(`/`);e.length>2&&(e.pop(),e.pop(),Vs.includes(e[e.length-1])&&e.pop(),i=e.join(`/`),i.endsWith(`/`)||(i+=`/`))}}let a=globalThis.socketPath||``,o=n?`${r}://${t}:${n}${a}`:`${r}://${t}${a}`,s=this.props.connect||(globalThis.io||globalThis.iob).connect;return this._socket=s(o,{path:i.endsWith(`/`)?`${i}socket.io`:`${i}/socket.io`,query:`ws=true`,name:this.props.name,timeout:this.props.ioTimeout,uuid:this.props.uuid,token:this.props.token}),this._socket.on(`connect`,t=>{globalThis.addEventListener?.(`storage`,this.onAccessTokenUpdated);let n=e.readTokens();if(n&&!n.owner){let e=Date.now();this.saveTokens({access_token:n.access_token,refresh_token:n.refresh_token,expires_in:Math.round((n.expires_in.getTime()-e)/1e3),refresh_token_expires_in:Math.round((n.refresh_token_expires_in.getTime()-e)/1e3),token_type:`Bearer`},n.stayLoggedIn)}this.onReadyDone=!1,t===!0?this._socket.emit(`authenticate`,(e,t)=>{this.onPreConnect(e,t)}):(this.connected=!0,setTimeout(()=>this.getVersion().then(e=>{let[t,n,r]=e.version.split(`.`);parseInt(t,10)*1e4+parseInt(n,10)*100+parseInt(r,10)<40102?(this._authTimer=null,this.onPreConnect(!1,!1)):this._socket.emit(`authenticate`,(e,t)=>this.onPreConnect(e,t))}).catch(e=>this.onError({message:e.toString(),operation:`getVersion`})),500))}),this._socket.on(`reconnect`,()=>{this.onReadyDone=!1,this.props.onProgress?.(zs.READY),this.connected=!0,this.waitForRestart?globalThis.location.reload():(this._subscribe(!0),this.onConnectionHandlers.forEach(e=>e(!0)))}),this._socket.on(`disconnect`,()=>{this.onReadyDone=!1,this.connected=!1,this.subscribed=!1,this.props.onProgress?.(zs.CONNECTING),this.onConnectionHandlers.forEach(e=>e(!1))}),this._socket.on(`reauthenticate`,()=>this.authenticate()),this._socket.on(`log`,e=>{this.props.onLog?.(e),this.onLogHandlers.forEach(t=>t(e))}),this._socket.on(`error`,e=>{let t;e==null?t=``:typeof e.toString==`function`?t=e.toString():(t=JSON.stringify(e),console.error(`Received strange error: ${t}`)),t.includes(`User not authorized`)?this.authenticate():t.includes(`websocket error`)?(console.error(`Socket Error => reload: ${e}`),globalThis.location.reload()):console.error(`Socket Error: ${e}`)}),this._socket.on(`connect_error`,e=>console.error(`Connect error: ${e}`)),this._socket.on(`permissionError`,e=>this.onError({message:`no permission`,operation:e.operation,type:e.type,id:e.id||``})),this._socket.on(`objectChange`,(e,t)=>{setTimeout(()=>this.objectChange(e,t),0)}),this._socket.on(`stateChange`,(e,t)=>{setTimeout(()=>this.stateChange(e,t),0)}),this._socket.on(`im`,(e,t,n)=>{setTimeout(()=>this.instanceMessage(e,t,n),0)}),this._socket.on(`fileChange`,(e,t,n)=>{setTimeout(()=>this.fileChange(e,t,n),0)}),this._socket.on(`cmdStdout`,(e,t)=>{this.onCmdStdoutHandler?.(e,t)}),this._socket.on(`cmdStderr`,(e,t)=>{this.onCmdStderrHandler?.(e,t)}),this._socket.on(`cmdExit`,(e,t)=>{this.onCmdExitHandler?.(e,t)}),Promise.resolve()}onPreConnect(e,t){this._authTimer&&=(clearTimeout(this._authTimer),null),this.connected=!0,this.isSecure=t,this.waitForRestart?globalThis.location.reload():(this.firstConnect?this.loadData().catch(e=>{console.error(`Cannot load data: ${e}`)}):this.props.onProgress?.(zs.READY),this._subscribe(!0),this.onConnectionHandlers.forEach(e=>e(!0)),this.checkAccessTokenExpire()),this._waitForFirstConnectionPromise.resolve()}static readTokens(){let e=globalThis.sessionStorage.getItem(`iob_tokens`),t=!e;if(e||=globalThis.localStorage.getItem(`iob_tokens`),!e)return null;let[n,r,i,a,o]=e.split(`;`),s=new Date(r);return s.getTime()<Date.now()?null:{refresh_token:n,refresh_token_expires_in:s,access_token:i,expires_in:new Date(a),owner:o,stayLoggedIn:t}}static saveTokensStatic(e,t,n){let r=`${e.refresh_token};${new Date(Date.now()+e.refresh_token_expires_in*1e3).toISOString()};${e.access_token};${new Date(Date.now()+e.expires_in*1e3).toISOString()}${n?`;${n}`:``}`;t?globalThis.localStorage.setItem(`iob_tokens`,r):globalThis.sessionStorage.setItem(`iob_tokens`,r)}saveTokens(t,n){e.saveTokensStatic(t,n,this.connId)}static deleteTokensStatic(){globalThis.localStorage.removeItem(`iob_tokens`),globalThis.sessionStorage.removeItem(`iob_tokens`)}deleteTokens(t,n){let r=e.readTokens();r&&(n?e.deleteTokensStatic():r.stayLoggedIn===t&&r.owner===this.connId&&(r.stayLoggedIn?globalThis.localStorage.removeItem(`iob_tokens`):globalThis.sessionStorage.removeItem(`iob_tokens`)))}onAccessTokenUpdated=t=>{if(t.key===`iob_tokens`){let t=e.readTokens();t&&(console.log(`Tab ${this.connId} received updated token: ${t.access_token}`),this.updateTokenExpiration(t.access_token))}};updateTokenExpiration(e){this.lastAccessToken!==e&&(this.lastAccessToken=e,this._socket.emit(`updateTokenExpiration`,e,(t,n)=>{t?(console.error(`[UPDATE/${new Date().toISOString()}] cannot say to server about new token: ${t}`),globalThis.location.reload()):n?console.log(`[UPDATE/${new Date().toISOString()}] server accepted new token: ${e}`):(console.error(`[UPDATE/${new Date().toISOString()}] cannot say to server about new token`),globalThis.location.reload())})),this.checkAccessTokenExpire()}refreshTokens(e,t){if(!e){console.log(`[REFRESH/${new Date().toISOString()}] No token structure found => reloading the page`),setTimeout(()=>globalThis.location.reload(),500);return}t||!e.owner||e.owner===this.connId?(console.log(`[REFRESH/${new Date().toISOString()}] claim ownership of the token`),this.acquireTokenLock()?(console.log(`[REFRESH/${new Date().toISOString()}] refreshing token`),fetch(`./oauth/token`,{method:`POST`,headers:{"Content-Type":`application/x-www-form-urlencoded`},body:`grant_type=refresh_token&refresh_token=${e.refresh_token}&client_id=ioBroker&stayloggedin=${e.stayLoggedIn}`}).then(e=>{if(e.ok)return e.json();throw Error(`Cannot refresh access token`)}).then(t=>{if(t.access_token)console.log(`[REFRESH/${new Date().toISOString()}] received new token: ${t.access_token}`),this.saveTokens(t,e.stayLoggedIn),this.releaseTokenLock(),this.updateTokenExpiration(t.access_token);else throw Error(`Cannot get access token`)}).catch(t=>{console.warn(`[REFRESH/${new Date().toISOString()}] cannot refresh token: ${t}`),this.releaseTokenLock(),this.deleteTokens(e.stayLoggedIn),console.error(t),globalThis.location.reload()})):(console.log(`[REFRESH/${new Date().toISOString()}] Someone else is updating the token, so wait for the next check`),this.checkAccessTokenExpire())):this.lastAccessToken!==e.access_token&&this.updateTokenExpiration(e.access_token)}acquireTokenLock(){let e=Date.now(),t=globalThis.localStorage.getItem(`iob_token_semaphore`);if(t)try{if(e<JSON.parse(t).expiry)return!1}catch{}let n={connId:this.connId,expiry:e+10*1e3};return globalThis.localStorage.setItem(`iob_token_semaphore`,JSON.stringify(n)),!0}releaseTokenLock(){let e=globalThis.localStorage.getItem(`iob_token_semaphore`);if(e)try{JSON.parse(e).connId===this.connId&&globalThis.localStorage.removeItem(`iob_token_semaphore`)}catch{globalThis.localStorage.removeItem(`iob_token_semaphore`)}}checkAccessTokenExpire(){if(this._refreshTimer&&=(clearTimeout(this._refreshTimer),null),this.isSecure){let t=e.readTokens();if(t){let e=t.expires_in.getTime();if(e<Date.now()+3e4){let n=e<Date.now()+5500;console.log(`[TOKEN/${new Date().toISOString()}] Updating refresh token ${t.access_token}`),t.refresh_token?t.owner===this.connId||n?(t.owner===this.connId?console.log(`[TOKEN/${new Date().toISOString()}] We are the owner of the token`):console.log(`[TOKEN/${new Date().toISOString()}] We are not the owner of the token, but we will take ownership`),this.props.tokenTimeoutHandler?(console.log(`[TOKEN/${new Date().toISOString()}] Asking GUI if we should prolong the token`),this.props.tokenTimeoutHandler(e).then(r=>{r?(console.log(`[TOKEN/${new Date().toISOString()}] Token will be prolonged`),this.refreshTokens(t,n)):(console.log(`[TOKEN/${new Date().toISOString()}] Token will not be prolonged. Reloading the page`),setTimeout(()=>globalThis.location.reload(),Date.now()>e?500:e-Date.now()))})):(console.log(`[TOKEN/${new Date().toISOString()}] No tokenTimeoutHandler defined. Prolonging the token`),this.refreshTokens(t,n))):this.lastAccessToken===t.access_token?(console.log(`[TOKEN/${new Date().toISOString()}] We are not the owner of the token and the token did not change. Check in 3 seconds if the owner updated the token`),this._refreshTimer=setTimeout(()=>{this._refreshTimer=null,this.checkAccessTokenExpire()},3e3)):(console.log(`[TOKEN/${new Date().toISOString()}] We are not the owner of the token, but we will inform the server about new token`),this.refreshTokens(t)):(console.log(`[TOKEN/${new Date().toISOString()}] We do not have a refresh token, so we need to reauthenticate`),setTimeout(()=>globalThis.location.reload(),Date.now()>e?500:e-Date.now()))}else this._refreshTimer=setTimeout(()=>{this._refreshTimer=null,this.checkAccessTokenExpire()},e-Date.now()-3e4>12e4?12e4:e-Date.now()-3e4)}}}static isCloud(){return globalThis.location.hostname.includes(`amazonaws.com`)||globalThis.location.hostname.includes(`iobroker.in`)?!0:globalThis.socketUrl===void 0?!1:globalThis.socketUrl.includes(`iobroker.in`)||globalThis.socketUrl.includes(`amazonaws`)}isConnected(){return this.connected}waitForFirstConnection(){return this._waitForFirstConnectionPromise}async getUserPermissions(){return this.request({commandTimeout:!1,executor:(e,t)=>{this._socket.emit(`getUserPermissions`,(n,r)=>{n?t(n):e(r||null)})}})}async loadData(){if(!this.loaded)for(let t=1;t<=10;t++){if(this.doLoadData().catch(e=>console.error(`Cannot load data: ${e}`)),this.loaded)return;await Ls(e.isCloud()?5e3:1e3)}}async doLoadData(){if(!this.loaded){if(!this.props.doNotLoadACL)try{this.acl=await this.getUserPermissions()}catch(e){this.onError(`Cannot read user permissions: ${e}`);return}try{this.props.admin5only&&!e.isWeb()&&(!globalThis.vendorPrefix||globalThis.vendorPrefix===`@@vendorPrefix@@`)?this._systemConfig=await this.getCompactSystemConfig():this._systemConfig=await this.getSystemConfig()}catch(e){this.onError(`Cannot read system config: ${e}`);return}this._systemConfig&&(this.systemLang=this._systemConfig.common?.language,this.systemLang||(this.systemLang=globalThis.navigator.userLanguage||globalThis.navigator.language,/^(en|de|ru|pt|nl|fr|it|es|pl|uk)-?/.test(this.systemLang)?this.systemLang=this.systemLang.substring(0,2):/^(en|de|ru|pt|nl|fr|it|es|pl|uk|zh-cn)$/.test(this.systemLang)||(this.systemLang=`en`),this._systemConfig.common.language=this.systemLang)),this.props.onLanguage?.(this.systemLang),this.loaded=!0,this.props.onProgress?.(zs.CONNECTED),this.firstConnect=!1,this.props.doNotLoadAllObjects?this.props.admin5only?this.objects={}:this.objects={"system.config":this._systemConfig}:this.objects=await this.getObjects(),this.props.onProgress?.(zs.READY),this.onReadyDone||(this.onReadyDone=!0,this.props.onReady?.(this.objects))}}authenticate(){globalThis.location.search.includes(`&href=`)?globalThis.location.href=`${globalThis.location.protocol}//${globalThis.location.host}${globalThis.location.pathname}${globalThis.location.search}`:globalThis.location.href=`${globalThis.location.protocol}//${globalThis.location.host}${globalThis.location.pathname}?login&href=${encodeURIComponent(globalThis.location.search+globalThis.location.hash)}`}async subscribeState(...t){let n,r,i;t.length===3?[n,r,i]=t:([n,i]=t,r=!1);let a;if(a=Array.isArray(n)?n:[n],typeof i!=`function`)throw Error(`The state change handler must be a function!`);let o=[];for(let e=0;e<a.length;e++){let t=a[e];this.statesSubscribes[t]?!this.statesSubscribes[t].cbs.includes(i)&&this.statesSubscribes[t].cbs.push(i):(this.statesSubscribes[t]={reg:new RegExp(Rs(t)),cbs:[i]},n!==this.ignoreState&&o.push(t))}if(this.connected)if(o.length&&this._socket.emit(`subscribe`,o),r){let e;for(let t=0;t<a.length;t++){try{e=await this.getBinaryState(a[t])}catch(n){console.error(`Cannot getBinaryState "${a[t]}": ${JSON.stringify(n)}`),e=void 0}e!=null&&i(a[t],e)}}else if(a.find(e=>e.includes(`*`))){let e;for(let t=0;t<a.length;t++){try{e=await this.getForeignStates(a[t])}catch(e){console.error(`Cannot getForeignStates "${a[t]}": ${JSON.stringify(e)}`);return}if(e)for(let[t,n]of Object.entries(e)){let e=i(t,n);e instanceof Promise&&e.catch(e=>console.error(`Cannot call state change handler: ${e}`))}}}else try{let t=await(e.isWeb()?this.getStates(a):this.getForeignStates(a));if(t)for(let[e,n]of Object.entries(t)){let t=i(e,n);t instanceof Promise&&t.catch(e=>console.error(`Cannot call state change handler: ${e}`))}}catch(e){console.error(`Cannot getState "${a.join(`, `)}": ${e.message}`);return}}async subscribeStateAsync(e,t){return this.subscribeState(e,t)}unsubscribeState(e,t){let n;n=Array.isArray(e)?e:[e];let r=[];for(let e=0;e<n.length;e++){let i=n[e];if(this.statesSubscribes[i]){let e=this.statesSubscribes[i];if(t){let n=e.cbs.indexOf(t);n!==-1&&e.cbs.splice(n,1)}else e.cbs=[];e.cbs?.length||(delete this.statesSubscribes[i],i!==this.ignoreState&&r.push(i))}}this.connected&&r.length&&this._socket.emit(`unsubscribe`,n)}subscribeObject(e,t){let n;if(n=Array.isArray(e)?e:[e],typeof t!=`function`)throw Error(`The object change handler must be a function!`);let r=[];for(let e=0;e<n.length;e++){let i=n[e];this.objectsSubscribes[i]?!this.objectsSubscribes[i].cbs.includes(t)&&this.objectsSubscribes[i].cbs.push(t):(this.objectsSubscribes[i]={reg:new RegExp(Rs(i)),cbs:[t]},r.push(i))}return this.connected&&r.length&&this._socket.emit(`subscribeObjects`,r),Promise.resolve()}unsubscribeObject(e,t){let n;n=Array.isArray(e)?e:[e];let r=[];for(let e=0;e<n.length;e++){let i=n[e];if(this.objectsSubscribes[i]){let e=this.objectsSubscribes[i];if(t){let n=e.cbs.indexOf(t);n!==-1&&e.cbs.splice(n,1)}else e.cbs=[];e.cbs?.length||(delete this.objectsSubscribes[i],r.push(i))}}return this.connected&&r.length&&this._socket.emit(`unsubscribeObjects`,r),Promise.resolve()}objectChange(e,t){let n;this.objects[e]&&(n={_id:e,type:this.objects[e].type});let r=!1;t?(t._rev&&this.objects[e]&&(this.objects[e]._rev=t._rev),(!this.objects[e]||JSON.stringify(this.objects[e])!==JSON.stringify(t))&&(this.objects[e]=t,r=!0)):this.objects[e]&&(delete this.objects[e],r=!0);for(let[r,i]of Object.entries(this.objectsSubscribes))(r===e||i.reg.test(e))&&i.cbs.forEach(r=>{try{let i=r(e,t,n);i instanceof Promise&&i.catch(e=>console.error(`Cannot call object change handler: ${e}`))}catch(e){console.error(`Error by callback of objectChange: ${e}`)}});if(r){let n=this.props.onObjectChange?.(e,t);n instanceof Promise&&n.catch(e=>console.error(`Cannot call object change handler: ${e}`))}}stateChange(e,t){for(let n of Object.values(this.statesSubscribes))if(n.reg.test(e))for(let r of n.cbs)try{let n=r(e,t??null);n instanceof Promise&&n.catch(e=>console.error(`Cannot call state change handler: ${e}`))}catch(e){console.error(`Error by callback of stateChanged: ${e}`)}}instanceMessage(e,t,n){this._instanceSubscriptions[t]?.forEach(r=>{if(r.messageType===e){let i=r.callback(n,t,e);i instanceof Promise&&i.catch(e=>console.error(`Cannot call instance message handler: ${e}`))}})}fileChange(e,t,n){for(let r of Object.values(this.filesSubscribes))if(r.regId.test(e)&&r.regFilePattern.test(t))for(let i of r.cbs)try{i(e,t,n)}catch(e){console.error(`Error by callback of fileChange: ${e}`)}}async subscribeFiles(e,t,n){if(typeof n!=`function`)throw Error(`The state change handler must be a function!`);let r;r=Array.isArray(t)?t:[t];let i=[];for(let t=0;t<r.length;t++){let a=r[t],o=`${e}$%$${a}`;this.filesSubscribes[o]?!this.filesSubscribes[o].cbs.includes(n)&&this.filesSubscribes[o].cbs.push(n):(this.filesSubscribes[o]={regId:new RegExp(Rs(e)),regFilePattern:new RegExp(Rs(a)),cbs:[n]},i.push(a))}return this.connected&&i.length&&this._socket.emit(`subscribeFiles`,e,i),Promise.resolve()}unsubscribeFiles(e,t,n){let r;r=Array.isArray(t)?t:[t];let i=[];for(let t=0;t<r.length;t++){let a=r[t],o=`${e}$%$${a}`;if(this.filesSubscribes[o]){let e=this.filesSubscribes[o];if(n){let t=e.cbs.indexOf(n);t!==-1&&e.cbs.splice(t,1)}else e.cbs=[];e.cbs?.length||(delete this.filesSubscribes[o],i.push(a))}}this.connected&&i.length&&this._socket.emit(`unsubscribeFiles`,e,i)}async request({cacheKey:t,forceUpdate:n,commandTimeout:r,onTimeout:i,requireAdmin:a,requireFeatures:o,executor:s}){if(a&&e.isWeb())return Promise.reject(Error(Bs.NOT_ADMIN));if(t&&!n&&t in this._promises)return this._promises[t];if(!this.connected)return Promise.reject(Error(Bs.NOT_CONNECTED));if(o?.length){for(let e of o)if(!await this.checkFeatureSupported(e))throw Error(Bs.NOT_SUPPORTED)}let c=new Promise(async(e,n)=>{let a={elapsed:!1,clearTimeout:()=>{}},o;r!==!1&&(o=setTimeout(()=>{a.elapsed=!0,i?.(),t&&this._promises[t]instanceof Promise&&delete this._promises[t],n(Error(Bs.TIMEOUT))},r??this.props.cmdTimeout),a.clearTimeout=()=>{clearTimeout(o)});try{await s(e,n,a)}catch(e){t&&this._promises[t]instanceof Promise&&delete this._promises[t],n(Error(e.toString()))}});return t&&(this._promises[t]=c),c}resetCache(e,t){t?Object.keys(this._promises).filter(t=>t.startsWith(e)).forEach(e=>{delete this._promises[e]}):delete this._promises[e]}getStates(e){return this.request({commandTimeout:!1,executor:(t,n)=>{this._socket.emit(`getStates`,e,(e,r)=>{this.states=r??{},e?n(e):t(this.states)})}})}getState(e){return this.request({commandTimeout:!1,executor:(t,n)=>{if(e&&e===this.ignoreState){t(this.simStates[e]||{val:null,ack:!0});return}this._socket.emit(`getState`,e,(e,r)=>{e?n(e):t(r)})}})}getBinaryState(e){return this.request({commandTimeout:!1,executor:(t,n)=>{this._socket.emit(`getBinaryState`,e,(e,r)=>{e?n(e):t(r)})}})}setBinaryState(e,t){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit(`setBinaryState`,e,t,e=>{e?r(e):n()})}})}setState(e,t,n){return typeof n==`boolean`&&(t={val:t,ack:n}),this.request({commandTimeout:!1,executor:(r,i)=>{if(e&&e===this.ignoreState){let i;if(i=typeof n==`boolean`||typeof t==`object`&&t.val!==void 0?t:{val:t,ack:!1,ts:Date.now(),lc:Date.now(),from:`system.adapter.vis.0`},this.simStates[e]=i,this.statesSubscribes[e])for(let t of this.statesSubscribes[e].cbs)try{let n=t(e,i);n instanceof Promise&&n.catch(e=>console.error(`Cannot call state change handler: ${e}`))}catch(e){console.error(`Error by callback of stateChanged: ${e}`)}r();return}this._socket.emit(`setState`,e,t,e=>{e?i(e):r()})}})}getObjects(t,n){return this.request({commandTimeout:!1,executor:(r,i)=>{if(!t&&this.objects){r(this.objects);return}this._socket.emit(e.isWeb()?`getObjects`:`getAllObjects`,(e,t)=>{n||this.props.onProgress?.(zs.OBJECTS_LOADED),e?i(e):(this.objects=t??{},r(this.objects))})}})}getObjectsById(e){return this.request({commandTimeout:!1,executor:(t,n)=>{this._socket.emit(`getObjects`,e,(e,r)=>{e?n(e):t(r)})}})}_subscribe(e){if(e&&!this.subscribed){this.subscribed=!0,this.props.autoSubscribes?.length&&this._socket.emit(`subscribeObjects`,this.props.autoSubscribes);let e=Object.keys(this.objectsSubscribes);e.length&&this._socket.emit(`subscribeObjects`,e),Object.keys(this.objectsSubscribes).forEach(e=>this._socket.emit(`subscribeObjects`,e)),this.props.autoSubscribeLog&&this._socket.emit(`requireLog`,!0),Object.keys(this.statesSubscribes).forEach(e=>this._socket.emit(`subscribe`,e)),Object.keys(this.filesSubscribes).forEach(e=>{let[t,n]=e.split(`$%$`);this._socket.emit(`subscribeFiles`,t,n)})}else if(!e&&this.subscribed){this.subscribed=!1,this.props.autoSubscribes?.length&&this._socket.emit(`unsubscribeObjects`,this.props.autoSubscribes);let e=Object.keys(this.objectsSubscribes);e.length&&this._socket.emit(`unsubscribeObjects`,e),this.props.autoSubscribeLog&&this._socket.emit(`requireLog`,!1),Object.keys(this.statesSubscribes).forEach(e=>this._socket.emit(`unsubscribe`,e)),Object.keys(this.filesSubscribes).forEach(e=>{let[t,n]=e.split(`$%$`);this._socket.emit(`unsubscribeFiles`,t,n)})}}requireLog(e){return this.request({commandTimeout:!1,executor:(t,n)=>{this._socket.emit(`requireLog`,e,e=>{e?n(e):t()})}})}delObject(e,t=!1){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit(`delObject`,e,{maintenance:t},e=>{e?r(e):n()})}})}delObjects(e,t){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit(`delObjects`,e,{maintenance:t},e=>{e?r(e):n()})}})}setObject(e,t){return t?(t=JSON.parse(JSON.stringify(t)),delete t.from,delete t.user,delete t.ts,this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit(`setObject`,e,t,e=>{e?r(e):n()})}})):Promise.reject(Error(`Null object is not allowed`))}getObject(e){return this.request({commandTimeout:!1,executor:(t,n)=>{if(e&&e===this.ignoreState){t({_id:this.ignoreState,type:`state`,common:{name:`ignored state`,type:`mixed`}});return}this._socket.emit(`getObject`,e,(e,r)=>{e?n(e):t(r)})}})}sendTo(e,t,n){return this.request({commandTimeout:!1,executor:r=>{this._socket.emit(`sendTo`,e,t,n,e=>{r(e)})}})}extendObject(e,t){return t?(t=JSON.parse(JSON.stringify(t)),delete t.from,delete t.user,delete t.ts,this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit(`extendObject`,e,t,e=>{e?r(e):n()})}})):Promise.reject(Error(`Null object is not allowed`))}registerLogHandler(e){this.onLogHandlers.includes(e)||this.onLogHandlers.push(e)}unregisterLogHandler(e){let t=this.onLogHandlers.indexOf(e);t!==-1&&this.onLogHandlers.splice(t,1)}registerConnectionHandler(e){this.onConnectionHandlers.includes(e)||this.onConnectionHandlers.push(e)}unregisterConnectionHandler(e){let t=this.onConnectionHandlers.indexOf(e);t!==-1&&this.onConnectionHandlers.splice(t,1)}registerCmdStdoutHandler(e){this.onCmdStdoutHandler=e}unregisterCmdStdoutHandler(){this.onCmdStdoutHandler=void 0}registerCmdStderrHandler(e){this.onCmdStderrHandler=e}unregisterCmdStderrHandler(){this.onCmdStderrHandler=void 0}registerCmdExitHandler(e){this.onCmdExitHandler=e}unregisterCmdExitHandler(){this.onCmdExitHandler=void 0}getEnums(e,t){return this.request({cacheKey:`enums_${e||`all`}`,forceUpdate:t,commandTimeout:!1,executor:(t,n)=>{this._socket.emit(`getObjectView`,`system`,`enum`,{startkey:`enum.${e||``}`,endkey:e?`enum.${e}.\u9999`:`enum.香`},(r,i)=>{if(r)n(r);else{let n={};if(i)for(let t=0;t<i.rows.length;t++)e&&i.rows[t].id===`enum.${e}`||(n[i.rows[t].id]=i.rows[t].value);t(n)}})}})}getObjectView(e,t,n){return this.getObjectViewCustom(`system`,n,e,t)}async getObjectViewSystem(e,t,n){let r=`${e}_${t||``}_${n||``}`,i=await this.getObjectViewCustom(`system`,e,t,n);return this.objectViewCached?.[r]&&(this.objectViewCached[r]=i),i}async getObjectViewSystemCached(e,t,n){let r=`${e}_${t||``}_${n||``}`;if(this.objectViewCached?.[r])return Promise.resolve(this.objectViewCached[r]);let i=await this.getObjectViewCustom(`system`,e,t,n);return this.objectViewCached||={},this.objectViewCached[r]=i,i}getObjectViewCustom(e,t,n,r){return this.request({commandTimeout:!1,executor:(i,a)=>{n||=``,r||=`香`,this._socket.emit(`getObjectView`,e,t,{startkey:n,endkey:r},(e,t)=>{if(e)a(e);else{let e={};if(t&&t.rows)for(let n=0;n<t.rows.length;n++)e[t.rows[n].id]=t.rows[n].value;i(e)}})}})}readMetaItems(){return this.request({commandTimeout:!1,executor:(e,t)=>{this._socket.emit(`getObjectView`,`system`,`meta`,{startkey:``,endkey:`香`},(n,r)=>{n?t(n):e(r.rows?.map(e=>e.value).filter(e=>!!e))})}})}readDir(e,t){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit(`readDir`,e,t,(e,t)=>{e?r(e):n(t)})}})}readFile(e,t,n){return this.request({commandTimeout:!1,executor:(r,i)=>{this._socket.emit(n?`readFile64`:`readFile`,e,t,(e,t,n)=>{e?i(e):r({file:t,mimeType:n})})}})}writeFile64(e,t,n){return this.request({commandTimeout:!1,executor:(r,i)=>{if(typeof n==`string`)this._socket.emit(`writeFile`,e,t,n,e=>{e?i(e):r()});else{let a=btoa(new Uint8Array(n).reduce((e,t)=>e+String.fromCharCode(t),``));this._socket.emit(`writeFile64`,e,t,a,e=>{e?i(e):r()})}}})}deleteFile(e,t){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit(`deleteFile`,e,t,e=>{e?r(e):n()})}})}deleteFolder(e,t){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit(`deleteFolder`,e,t,e=>{e?r(e):n()})}})}rename(e,t,n){return this.request({commandTimeout:!1,executor:(r,i)=>{this._socket.emit(`rename`,e,t,n,e=>{e?i(e):r()})}})}renameFile(e,t,n){return this.request({commandTimeout:!1,executor:(r,i)=>{this._socket.emit(`renameFile`,e,t,n,e=>{e?i(e):r()})}})}cmdExec(e,t,n,r,i){return this.request({commandTimeout:r,executor:(r,a,o)=>{e=Fs(e);let s=e=>{o.elapsed||(o.clearTimeout(),e?a(e):r())};i?.length?this._socket.emit(`cmdExec`,e,n,t,i,s):this._socket.emit(`cmdExec`,e,n,t,s)}})}getSystemConfig(e){return this.request({cacheKey:`systemConfig`,forceUpdate:e,commandTimeout:!1,executor:async e=>{let t=await this.getObject(`system.config`);t??={},t.common??={},t.native??={},e(t)}})}getCompactSystemConfig(e){return this.request({cacheKey:`systemConfigCommon`,forceUpdate:e,commandTimeout:!1,executor:(e,t)=>{this._socket.emit(`getCompactSystemConfig`,(n,r)=>{n?t(n):(r??={},r.common??={},r.native??={},e(r))})}})}getForeignStates(e){return this.request({commandTimeout:!1,executor:(t,n)=>{this._socket.emit(`getForeignStates`,e||`*`,(e,r)=>{e?n(e):t(r??{})})}})}getForeignObjects(e,t){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit(`getForeignObjects`,e||`*`,t,(e,t)=>{e?r(e):n(t)})}})}setSystemConfig(e){return this.setObject(`system.config`,e)}getRawSocket(){return this._socket}getHistory(e,t){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit(`getHistory`,e,t,(e,t)=>{e?r(e):n(t)})}})}getHistoryEx(e,t){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit(`getHistory`,e,t,(e,t,i,a)=>{e?r(e):n({values:t,sessionId:a,step:i})})}})}getIpAddresses(e,t){return e=Fs(e),this.request({cacheKey:`IPs_${e}`,forceUpdate:t,commandTimeout:!1,executor:async t=>{t((await this.getObject(e))?.common.address??[])}})}getVersion(e){return this.request({cacheKey:`version`,forceUpdate:e,commandTimeout:!1,executor:(e,t)=>{this._socket.emit(`getVersion`,(n,r,i)=>{n&&!r&&typeof n==`string`&&n.match(/\d+\.\d+\.\d+/)?e({version:n,serverName:`socketio`}):n?t(n):e({version:r,serverName:i})})}})}getWebServerName(){return this.request({cacheKey:`webName`,commandTimeout:!1,executor:(e,t)=>{this._socket.emit(`getAdapterName`,(n,r)=>{n?t(n):e(r)})}})}fileExists(e,t){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit(`fileExists`,e,t,(e,t)=>{e?r(e):n(!!t)})}})}getCurrentUser(){return this.request({commandTimeout:!1,executor:e=>{this._socket.emit(`authEnabled`,(t,n)=>{e(n)})}})}getUuid(){return this.request({cacheKey:`uuid`,commandTimeout:!1,executor:async e=>{e((await this.getObject(`system.meta.uuid`))?.native?.uuid)}})}checkFeatureSupported(e,t){return this.request({cacheKey:`supportedFeatures_${e}`,forceUpdate:t,commandTimeout:!1,executor:(t,n)=>{this._socket.emit(`checkFeatureSupported`,e,(e,r)=>{e?n(e):t(r)})}})}getAdapterInstances(e,t){return typeof e==`boolean`&&(t=e,e=``),e||=``,this.request({cacheKey:`instances_${e}`,forceUpdate:t,commandTimeout:!1,executor:async t=>{let n=e?`system.adapter.${e}.`:`system.adapter.`,r=`${n}\u9999`,i=await this.getObjectViewSystem(`instance`,n,r),a=Object.values(i);t(e?a.filter(t=>t.common.name===e):a)}})}getAdapters(e,t){return typeof e==`boolean`&&(t=e,e=``),e||=``,this.request({cacheKey:`adapter_${e}`,forceUpdate:t,commandTimeout:!1,executor:async t=>{let n=await this.getObjectViewSystem(`adapter`,`system.adapter.${e||``}`,`system.adapter.${e||`香`}`),r=Object.values(n);t(e?r.filter(t=>t.common.name===e):r)}})}getGroups(e){return this.request({cacheKey:`groups`,forceUpdate:e,commandTimeout:!1,executor:(e,t)=>{this._socket.emit(`getObjectView`,`system`,`group`,{startkey:`system.group.`,endkey:`system.group.香`},(n,r)=>{n?t(n):e(Ps(r))})}})}logout(){return this.request({commandTimeout:!1,executor:(e,t)=>{this._socket.emit(`logout`,n=>{n?t(n):e(null)})}})}subscribeOnInstance(e,t,n,r){return this.request({commandTimeout:!1,executor:(i,a)=>{this._socket.emit(`clientSubscribe`,e,t,n,(n,o)=>{n?a(n):o&&(o.error?a(o.error):(e.startsWith(`system.adapter.`)||(e=`system.adapter.${e}`),this._instanceSubscriptions[e]=this._instanceSubscriptions[e]||[],this._instanceSubscriptions[e].find(e=>e.messageType===t&&e.callback===r)||this._instanceSubscriptions[e].push({messageType:t,callback:r}),i(o)))})}})}unsubscribeFromInstance(e,t,n){e.startsWith(`system.adapter.`)||(e=`system.adapter.${e}`);let r,i=[];do{r=!1;let a=this._instanceSubscriptions[e]?.findIndex(e=>(!t||e.messageType===t)&&(!n||e.callback===n));if(a!=null&&a!==-1){r=!0;let n=this._instanceSubscriptions[e][a].messageType;this._instanceSubscriptions[e].splice(a,1),this._instanceSubscriptions[e].length||delete this._instanceSubscriptions[e],this._instanceSubscriptions[e]&&this._instanceSubscriptions[e].find(e=>e.messageType===n)||i.push(this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit(`clientUnsubscribe`,e,t,(e,t)=>e?r(e):n(t))}}))}}while(r&&(!n||!t));return i.length?Promise.all(i).then(e=>!!e.find(e=>e)):Promise.resolve(!1)}log(e,t){return e?this.request({commandTimeout:!1,executor:n=>(this._socket.emit(`log`,e,t),n(null))}):Promise.resolve(null)}setStateToIgnore(e){this.ignoreState=e}destroy(){if(this._socket){let e=this._socket;try{typeof e.destroy==`function`?e.destroy():typeof e.close==`function`&&e.close(!0)}catch{}}globalThis.removeEventListener?.(`storage`,this.onAccessTokenUpdated),this._authTimer&&=(clearTimeout(this._authTimer),null),this._refreshTimer&&=(clearTimeout(this._refreshTimer),null),this.onConnectionHandlers.length=0,this.onLogHandlers.length=0;for(let e of Object.keys(this.statesSubscribes))delete this.statesSubscribes[e];for(let e of Object.keys(this.objectsSubscribes))delete this.objectsSubscribes[e];for(let e of Object.keys(this.filesSubscribes))delete this.filesSubscribes[e];this._instanceSubscriptions={},this.connected=!1,this.onReadyDone=!1}};function Us(e,t){if(!t)return;let n;if(t.length<700&&(t.indexOf(`/`)!==-1||t.indexOf(`\\`)!==-1))if(e.toLowerCase().includes(`private`))n=`private`;else if(t.toLowerCase().includes(`private`))n=`private`;else if(e.toLowerCase().includes(`public`))n=`public`;else if(t.toLowerCase().includes(`public`))n=`public`;else if(e.toLowerCase().includes(`chain`))n=`chained`;else if(t.toLowerCase().includes(`chain`))n=`chained`;else return;else n=t.substring(0,26)===`-----BEGIN RSA PRIVATE KEY`||t.substring(0,22)===`-----BEGIN PRIVATE KEY`?`private`:`public`,n===`public`&&t.split(`-----END CERTIFICATE-----`).filter(e=>e.replace(/\r\n|\r|\n/,``).trim()).length>1&&(n=`chained`);return{name:e,type:n}}function Ws(e){let t=[{name:`[IPv4] 0.0.0.0 - Listen on all IPs`,address:`0.0.0.0`,family:`ipv4`}],n=[{name:`[IPv6] :: - Listen on all IPs`,address:`::`,family:`ipv6`}];if(e.native?.hardware?.networkInterfaces){let r=e.native?.hardware?.networkInterfaces;Object.keys(r).forEach(e=>{r[e]?.forEach(r=>{r.family===`IPv6`?n.push({name:`[${r.family}] ${r.address} - ${e}`,address:r.address,family:`ipv6`}):t.push({name:`[${r.family}] ${r.address} - ${e}`,address:r.address,family:`ipv4`})})})}return{IPs4:t,IPs6:n}}var Gs=class extends Hs{constructor(e){super(e)}request(e){return super.request({requireAdmin:!0,...e})}getCertificates(e){return this.request({cacheKey:`cert`,forceUpdate:e,commandTimeout:!1,executor:async e=>{let t=await this.getObject(`system.certificates`);t?.native?.certificates?e(Object.entries(t.native.certificates).map(([e,t])=>Us(e,t)).filter(e=>!!e)):e([])}})}getLogs(e,t=200){return this.request({commandTimeout:!1,executor:n=>{this._socket.emit(`sendToHost`,e,`getLogs`,t||200,e=>{n(e)})}})}upgradeAdapterWithWebserver(e,t){return this.request({commandTimeout:!1,executor:n=>{this._socket.emit(`sendToHost`,e,`upgradeAdapterWithWebserver`,t,e=>{n(e)})}})}upgradeController(e,t,n){return this.request({commandTimeout:!1,executor:(r,i)=>{this._socket.emit(`sendToHost`,e,`upgradeController`,{version:t,adminInstance:n},e=>{let t=e;t.error?i(t.error):r(t.result)})}})}updateLicenses(e,t){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit(`updateLicenses`,e,t,(e,t)=>{e?r(e):n(t)})}})}upgradeOsPackages(e,t,n){return this.request({commandTimeout:!1,executor:r=>{this._socket.emit(`sendToHost`,e,`upgradeOsPackages`,{packages:t,restart:!!n},e=>{r(e)})}})}getLogsFiles(e){return this.request({commandTimeout:!1,executor:(t,n)=>{this._socket.emit(`readLogs`,e,(e,r)=>{e&&n(e),t(r)})}})}delLogs(e){return this.request({commandTimeout:!1,executor:(t,n)=>{this._socket.emit(`sendToHost`,e,`delLogs`,null,e=>{e&&n(e),t()})}})}deleteFile(e,t){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit(`deleteFile`,e,t,e=>{e&&r(e),n()})}})}deleteFolder(e,t){return this.request({commandTimeout:!1,executor:(n,r)=>{this._socket.emit(`deleteFolder`,e,t,e=>{e&&r(e),n()})}})}rename(e,t,n){return this.request({commandTimeout:!1,executor:(r,i)=>{this._socket.emit(`rename`,e,t,n,e=>{e&&i(e),r()})}})}renameFile(e,t,n){return this.request({commandTimeout:!1,executor:(r,i)=>{this._socket.emit(`renameFile`,e,t,n,e=>{e&&i(e),r()})}})}getHosts(e){return this.request({cacheKey:`hosts`,forceUpdate:e,commandTimeout:!1,executor:(e,t)=>{this._socket.emit(`getObjectView`,`system`,`host`,{startkey:`system.host.`,endkey:`system.host.香`},(n,r)=>{n?t(n):e(Ps(r))})}})}getUsers(e){return this.request({cacheKey:`users`,forceUpdate:e,commandTimeout:!1,executor:(e,t)=>{this._socket.emit(`getObjectView`,`system`,`user`,{startkey:`system.user.`,endkey:`system.user.香`},(n,r)=>{n?t(n):e(Ps(r))})}})}renameGroup(e,t,n){return this.request({commandTimeout:!1,executor:async r=>{let i=await this.getGroups(!0),a=i.filter(t=>t._id.startsWith(`${e}.`));for(let n of a){let r=n._id,i=t+n._id.substring(e.length);n._id=i,await this.setObject(i,n),await this.delObject(r)}let o=i.find(t=>t._id===e);if(o){let e=o._id;o._id=t,n!==void 0&&(o.common??={},o.common.name=n),await this.setObject(t,o),await this.delObject(e)}r()}})}getHostInfo(e,t,n){return e=Fs(e),this.request({cacheKey:`hostInfo_${e}`,forceUpdate:t,commandTimeout:n,executor:(t,n,r)=>{this._socket.emit(`sendToHost`,e,`getHostInfo`,null,e=>{r.elapsed||(r.clearTimeout(),e===Bs.PERMISSION_ERROR?n(`May not read "getHostInfo"`):e?t(e):n(`Cannot read "getHostInfo"`))})}})}getHostInfoShort(e,t,n){return e=Fs(e),this.request({cacheKey:`hostInfoShort_${e}`,forceUpdate:t,commandTimeout:n,executor:(t,n,r)=>{this._socket.emit(`sendToHost`,e,`getHostInfoShort`,null,e=>{r.elapsed||(r.clearTimeout(),e===Bs.PERMISSION_ERROR?n(`May not read "getHostInfoShort"`):e?t(e):n(`Cannot read "getHostInfoShort"`))})}})}getRepository(e,t,n,r){return this.request({cacheKey:`repository_${e}`,forceUpdate:n,commandTimeout:r,executor:(n,r,i)=>{this._socket.emit(`sendToHost`,e,`getRepository`,t,e=>{i.elapsed||(i.clearTimeout(),e===Bs.PERMISSION_ERROR?r(`May not read "getRepository"`):e?n(e):r(`Cannot read "getRepository"`))})}})}getInstalled(e,t,n){return e=Fs(e),this.request({cacheKey:`installed_${e}`,forceUpdate:t,commandTimeout:n,executor:(t,n,r)=>{this._socket.emit(`sendToHost`,e,`getInstalled`,null,e=>{r.elapsed||(r.clearTimeout(),e===Bs.PERMISSION_ERROR?n(`May not read "getInstalled"`):e?t(e):n(`Cannot read "getInstalled"`))})}})}cmdExec(e,t,n,r,i){return this.request({commandTimeout:r,executor:(r,a,o)=>{e=Fs(e);let s=e=>{o.elapsed||(o.clearTimeout(),e&&a(e),r())};i?.length?this._socket.emit(`cmdExec`,e,n,t,i,s):this._socket.emit(`cmdExec`,e,n,t,s)}})}readBaseSettings(e){return e=Is(e),this.request({requireFeatures:[`CONTROLLER_READWRITE_BASE_SETTINGS`],executor:(t,n,r)=>{this._socket.emit(`sendToHost`,e,`readBaseSettings`,null,e=>{r.elapsed||(r.clearTimeout(),e===Bs.PERMISSION_ERROR?n(`May not read "BaseSettings"`):e?e.error?n(Error(e.error)):t(e):n(`Cannot read "BaseSettings"`))})}})}writeBaseSettings(e,t){return e=Is(e),this.request({requireFeatures:[`CONTROLLER_READWRITE_BASE_SETTINGS`],executor:(n,r,i)=>{this._socket.emit(`sendToHost`,e,`writeBaseSettings`,t,e=>{i.elapsed||(i.clearTimeout(),e===Bs.PERMISSION_ERROR?r(`May not write "BaseSettings"`):e?n(e):r(`Cannot write "BaseSettings"`))})}})}restartController(e){return e=Is(e),this.request({executor:(t,n,r)=>{this._socket.emit(`sendToHost`,e,`restartController`,null,()=>{r.elapsed||(r.clearTimeout(),t(!0))})}})}getDiagData(e,t){return e=Is(e),this.request({executor:(n,r,i)=>{this._socket.emit(`sendToHost`,e,`getDiagData`,t,e=>{i.elapsed||(i.clearTimeout(),n(e||null))})}})}changePassword(e,t){return this.request({executor:(n,r,i)=>{this._socket.emit(`changePassword`,e,t,e=>{i.elapsed||(i.clearTimeout(),e&&r(e),n())})}})}getIpAddresses(e,t){return e=Fs(e),this.request({cacheKey:`IPs_${e}`,forceUpdate:t,commandTimeout:!1,executor:async t=>{t((await this.getObject(e))?.common.address??[])}})}getHostByIp(e,t){return e=Is(e),this.request({cacheKey:`rIPs_${e}`,forceUpdate:t,executor:(t,n,r)=>{this._socket.emit(`getHostByIp`,e,(e,n)=>{if(r.elapsed)return;r.clearTimeout();let{IPs4:i,IPs6:a}=Ws(n);t([...i,...a])})}})}encrypt(e){return this.request({executor:(t,n,r)=>{this._socket.emit(`encrypt`,e,(e,i)=>{r.elapsed||(r.clearTimeout(),e&&n(e),t(i))})}})}decrypt(e){return this.request({executor:(t,n,r)=>{this._socket.emit(`decrypt`,e,(e,i)=>{r.elapsed||(r.clearTimeout(),e&&n(e),t(i))})}})}chmodFile(e,t,n){return this.request({executor:(r,i,a)=>{this._socket.emit(`chmodFile`,e,t,n,(e,t)=>{a.elapsed||(a.clearTimeout(),e&&i(e),r(t))})}})}chownFile(e,t,n){return this.request({executor:(r,i,a)=>{this._socket.emit(`chownFile`,e,t,n,(e,t)=>{a.elapsed||(a.clearTimeout(),e&&i(e),r(t))})}})}getNotifications(e,t){return this.request({executor:(n,r,i)=>{this._socket.emit(`sendToHost`,e,`getNotifications`,{category:t},e=>{i.elapsed||(i.clearTimeout(),n(e))})}})}clearNotifications(e,t){return this.request({executor:(n,r,i)=>{this._socket.emit(`sendToHost`,e,`clearNotifications`,{category:t},e=>{i.elapsed||(i.clearTimeout(),n(e))})}})}getIsEasyModeStrict(){return this.request({executor:(e,t,n)=>{this._socket.emit(`getIsEasyModeStrict`,(r,i)=>{n.elapsed||(n.clearTimeout(),r&&t(r),e(!!i))})}})}getEasyMode(){return this.request({executor:(e,t,n)=>{this._socket.emit(`getEasyMode`,(r,i)=>{n.elapsed||(n.clearTimeout(),r?t(Error(r)):e(i))})}})}getRatings(e){return this.request({executor:(t,n,r)=>{this._socket.emit(`getRatings`,!!e,(e,i)=>{r.elapsed||(r.clearTimeout(),e?n(Error(e)):t(i))})}})}getCurrentSession(e){let t=new AbortController;return this.request({commandTimeout:e||5e3,onTimeout:()=>{t.abort()},executor:async(e,n,r)=>{try{let n=await fetch(`./session`,{signal:t.signal});if(r.elapsed)return;r.clearTimeout(),e(await n.json())}catch(e){n(`getCurrentSession: ${e}`)}}})}getCurrentInstance(){return this.request({cacheKey:`currentInstance`,executor:(e,t,n)=>{this._socket.emit(`getCurrentInstance`,(r,i)=>{n.elapsed||(n.clearTimeout(),r?t(r):e(i))})}})}getAdapterInstances(e,t){let n;return typeof e==`boolean`?(t=e,n=``):n=e||``,this.request({cacheKey:`instances_${n}`,forceUpdate:t,executor:(e,t,r)=>{this._socket.emit(`getAdapterInstances`,n,(n,i)=>{r.elapsed||(r.clearTimeout(),n&&t(n),e(i))})}})}getAdapters(e,t){let n;return typeof e==`boolean`?(t=e,n=``):n=e||``,this.request({cacheKey:`adapter_${n}`,forceUpdate:t,executor:(e,t,r)=>{this._socket.emit(`getAdapters`,n,(n,i)=>{r.elapsed||(r.clearTimeout(),n&&t(n),e(i))})}})}getCompactAdapters(e){return this.request({cacheKey:`compactAdapters`,forceUpdate:e,executor:(e,t,n)=>{this._socket.emit(`getCompactAdapters`,(r,i)=>{n.elapsed||(n.clearTimeout(),r&&t(r),e(i))})}})}getAdaptersResetCache(e){e??=``,this.resetCache(`adapter_${e}`),this.resetCache(`compactAdapters`)}getCompactInstances(e){return this.request({cacheKey:`compactInstances`,forceUpdate:e,executor:(e,t,n)=>{this._socket.emit(`getCompactInstances`,(r,i)=>{n.elapsed||(n.clearTimeout(),r&&t(r),e(i))})}})}getAdapterInstancesResetCache(e){e??=``,this.resetCache(`instances_${e}`),this.resetCache(`compactInstances`)}getCompactInstalled(e,t,n){return e=Fs(e),this.request({cacheKey:`installedCompact_${e}`,forceUpdate:t,commandTimeout:n,executor:(t,n,r)=>{this._socket.emit(`getCompactInstalled`,e,e=>{r.elapsed||(r.clearTimeout(),e===Bs.PERMISSION_ERROR?n(`May not read "getCompactInstalled"`):e?t(e):n(`Cannot read "getCompactInstalled"`))})}})}getInstalledResetCache(e){e?(this.resetCache(`installedCompact_${e}`),this.resetCache(`installed_${e}`)):(this.resetCache(`installedCompact_`,!0),this.resetCache(`installed_`,!0))}getCompactRepository(e,t,n){return e=Fs(e),this.request({cacheKey:`repositoryCompact_${e}`,forceUpdate:t,commandTimeout:n,executor:(t,n,r)=>{this._socket.emit(`getCompactRepository`,e,e=>{r.elapsed||(r.clearTimeout(),e===Bs.PERMISSION_ERROR?n(`May not read "getCompactRepository"`):e?t(e):n(`Cannot read "getCompactRepository"`))})}})}getRepositoryResetCache(e){e?(this.resetCache(`repositoryCompact_${e}`),this.resetCache(`repository_${e}`)):(this.resetCache(`repositoryCompact_`,!0),this.resetCache(`repository_`,!0))}getCompactHosts(e){return this.request({cacheKey:`hostsCompact`,forceUpdate:e,executor:(e,t,n)=>{this._socket.emit(`getCompactHosts`,(r,i)=>{n.elapsed||(n.clearTimeout(),r&&t(r),e(i))})}})}getCompactSystemRepositories(e){return this.request({cacheKey:`repositoriesCompact`,forceUpdate:e,executor:(e,t,n)=>{this._socket.emit(`getCompactSystemRepositories`,(r,i)=>{n.elapsed||(n.clearTimeout(),r&&t(r),e(i))})}})}},Ks=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,qs=globalThis,Js=`10.58.0`;function Ys(){return Xs(qs),qs}function Xs(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||`10.58.0`,t[Js]=t[`10.58.0`]||{}}function Zs(e,t,n=qs){let r=n.__SENTRY__=n.__SENTRY__||{},i=r[Js]=r[`10.58.0`]||{};return i[e]||(i[e]=t())}var Qs=[`debug`,`info`,`warn`,`error`,`log`,`assert`,`trace`],$s=`Sentry Logger `,ec={};function tc(e){if(!(`console`in qs))return e();let t=qs.console,n={},r=Object.keys(ec);r.forEach(e=>{let r=ec[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function nc(){lc().enabled=!0}function rc(){lc().enabled=!1}function ic(){return lc().enabled}function ac(...e){cc(`log`,...e)}function oc(...e){cc(`warn`,...e)}function sc(...e){cc(`error`,...e)}function cc(e,...t){Ks&&ic()&&tc(()=>{qs.console[e](`${$s}[${e}]:`,...t)})}function lc(){return Ks?Zs(`loggerSettings`,()=>({enabled:!1})):{enabled:!1}}var uc={enable:nc,disable:rc,isEnabled:ic,log:ac,warn:oc,error:sc},dc=50,fc=/\(error: (.*)\)/,pc=/captureMessage|captureException/;function mc(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,r=0)=>{let i=[],a=e.split(`
|
|
46
|
+
`);for(let e=n;e<a.length;e++){let n=a[e];n.length>1024&&(n=n.slice(0,1024));let o=fc.test(n)?n.replace(fc,`$1`):n;if(!o.includes(`Error: `)){for(let e of t){let t=e(o);if(t){i.push(t);break}}if(i.length>=dc+r)break}}return gc(i.slice(r))}}function hc(e){return Array.isArray(e)?mc(...e):e}function gc(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(_c(t).function||``)&&t.pop(),t.reverse(),pc.test(_c(t).function||``)&&(t.pop(),pc.test(_c(t).function||``)&&t.pop()),t.slice(0,dc).map(e=>({...e,filename:e.filename||_c(t).filename,function:e.function||`?`}))}function _c(e){return e[e.length-1]||{}}var vc=`<anonymous>`;function yc(e){try{return!e||typeof e!=`function`?vc:e.name||vc}catch{return vc}}function bc(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{return}}}var xc={},Sc={};function Cc(e,t){return xc[e]=xc[e]||[],xc[e].push(t),()=>{let n=xc[e];if(n){let e=n.indexOf(t);e!==-1&&n.splice(e,1)}}}function wc(e,t){if(!Sc[e]){Sc[e]=!0;try{t()}catch(t){Ks&&uc.error(`Error while instrumenting ${e}`,t)}}}function Tc(e,t){let n=e&&xc[e];if(n)for(let r of n)try{r(t)}catch(t){Ks&&uc.error(`Error while triggering instrumentation handler.
|
|
47
|
+
Type: ${e}
|
|
48
|
+
Name: ${yc(r)}
|
|
49
|
+
Error:`,t)}}var Ec=null;function Dc(e){let t=`error`;Cc(t,e),wc(t,Oc)}function Oc(){Ec=qs.onerror,qs.onerror=function(e,t,n,r,i){return Tc(`error`,{column:r,error:i,line:n,msg:e,url:t}),Ec?Ec.apply(this,arguments):!1},qs.onerror.__SENTRY_INSTRUMENTED__=!0}var kc=null;function Ac(e){let t=`unhandledrejection`;Cc(t,e),wc(t,jc)}function jc(){kc=qs.onunhandledrejection,qs.onunhandledrejection=function(e){return Tc(`unhandledrejection`,e),kc?kc.apply(this,arguments):!0},qs.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var Mc=Object.prototype.toString;function Nc(e){switch(Mc.call(e)){case`[object Error]`:case`[object Exception]`:case`[object DOMException]`:case`[object WebAssembly.Exception]`:return!0;default:return Gc(e,Error)}}function Pc(e,t){return Mc.call(e)===`[object ${t}]`}function Fc(e){return Pc(e,`ErrorEvent`)}function Ic(e){return Pc(e,`DOMError`)}function Lc(e){return Pc(e,`DOMException`)}function Rc(e){return Pc(e,`String`)}function zc(e){return typeof e==`object`&&!!e&&`__sentry_template_string__`in e&&`__sentry_template_values__`in e}function Bc(e){return e===null||zc(e)||typeof e!=`object`&&typeof e!=`function`}function Vc(e){return Pc(e,`Object`)}function Hc(e){return typeof Event<`u`&&Gc(e,Event)}function Uc(e){return Pc(e,`RegExp`)}function Wc(e){return!!(e?.then&&typeof e.then==`function`)}function Gc(e,t){try{return e instanceof t}catch{return!1}}function Kc(e){return typeof Request<`u`&&Gc(e,Request)}function qc(e,t,n){if(!(t in e))return;let r=e[t];if(typeof r!=`function`)return;let i=n(r);typeof i==`function`&&Yc(i,r);try{e[t]=i}catch{Ks&&uc.log(`Failed to replace method "${t}" in object`,e)}}function Jc(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Ks&&uc.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function Yc(e,t){try{e.prototype=t.prototype=t.prototype||{},Jc(e,`__sentry_original__`,t)}catch{}}function Xc(e){return e.__sentry_original__}function Zc(e){if(Nc(e))return{message:e.message,name:e.name,stack:e.stack,...Qc(e)};if(Hc(e)){let{type:t,target:n,currentTarget:r,detail:i}=e;return{type:t,target:n,currentTarget:r,...i?{detail:i}:{},...Qc(e)}}return e}function Qc(e){return typeof e==`object`&&e?Object.fromEntries(Object.entries(e)):{}}function $c(e){let t=Object.keys(Zc(e));return t.sort(),t[0]?t.join(`, `):`[object has no keys]`}var el;function tl(e){if(el!==void 0)return el?el(e):e();let t=Symbol.for(`__SENTRY_SAFE_RANDOM_ID_WRAPPER__`),n=qs;return t in n&&typeof n[t]==`function`?(el=n[t],el(e)):(el=null,e())}function nl(){return tl(()=>Math.random())}function rl(){return tl(()=>Date.now())}var il=Symbol.for(`sentry.skipNormalization`),al=Symbol.for(`sentry.overrideNormalizationDepth`);function ol(e){return!!e[il]}function sl(e){let t=e[al];return typeof t==`number`?t:void 0}var cl;function ll(e){cl=e}function ul(e,t=100,n=1/0){try{return fl(``,e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function dl(e,t=3,n=100*1024){let r=ul(e,t);return gl(r)>n?dl(e,t-1,n):r}function fl(e,t,n=1/0,r=1/0,i=_l()){let[a,o]=i;if(t==null||[`boolean`,`string`].includes(typeof t)||typeof t==`number`&&Number.isFinite(t))return t;let s=pl(e,t);if(!s.startsWith(`[object `))return s;if(ol(t))return t;let c=sl(t),l=c===void 0?n:c;if(l===0)return s.replace(`object `,``);if(a(t))return`[Circular ~]`;let u=t;if(u&&typeof u.toJSON==`function`)try{return fl(``,u.toJSON(),l-1,r,i)}catch{}let d=Array.isArray(t)?[]:{},f=0,p=Zc(t);for(let e in p){if(!Object.prototype.hasOwnProperty.call(p,e))continue;if(f>=r){d[e]=`[MaxProperties ~]`;break}let t=p[e];d[e]=fl(e,t,l-1,r,i),f++}return o(t),d}function pl(e,t){try{if(cl){let e=cl(t);if(e)return e}return typeof global<`u`&&t===global?`[Global]`:typeof t==`number`&&!Number.isFinite(t)?`[${t}]`:typeof t==`function`?`[Function: ${yc(t)}]`:typeof t==`symbol`?`[${String(t)}]`:typeof t==`bigint`?`[BigInt: ${String(t)}]`:`[object ${ml(t)}]`}catch(e){return`**non-serializable** (${e})`}}function ml(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function hl(e){return~-encodeURI(e).split(/%..|./).length}function gl(e){return hl(JSON.stringify(e))}function _l(){let e=new WeakSet;function t(t){return e.has(t)?!0:(e.add(t),!1)}function n(t){e.delete(t)}return[t,n]}function vl(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function yl(e,t){if(!Array.isArray(e))return``;let n=[];for(let t=0;t<e.length;t++){let r=e[t];Bc(r)?n.push(String(r)):r instanceof Error?n.push(r.message?`${r.name}: ${r.message}`:r.name):n.push(pl(void 0,r))}return n.join(t)}function bl(e,t,n=!1){return Rc(e)?Uc(t)?t.test(e):Rc(t)?n?e===t:e.includes(t):typeof t==`function`?t(e):!1:!1}function xl(e,t=[],n=!1){for(let r of t)if(bl(e,r,n))return!0;return!1}function Sl(){let e=qs;return e.crypto||e.msCrypto}var Cl;function wl(){return nl()*16}function Tl(e=Sl()){try{if(e?.randomUUID)return tl(()=>e.randomUUID()).replace(/-/g,``)}catch{}return Cl||=`10000000100040008000100000000000`,Cl.replace(/[018]/g,e=>(e^(wl()&15)>>e/4).toString(16))}function El(e){return e.exception?.values?.[0]}function Dl(e){let{message:t,event_id:n}=e;if(t)return t;let r=El(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||`<unknown>`:n||`<unknown>`}function Ol(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||=t||``,a.type||=n||`Error`}function kl(e,t){let n=El(e);if(!n)return;let r={type:`generic`,handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&`data`in t){let e={...i?.data,...t.data};n.mechanism.data=e}}function Al(e){if(jl(e))return!0;try{Jc(e,`__sentry_captured__`,!0)}catch{}return!1}function jl(e){try{return e.__sentry_captured__}catch{}}var Ml=1e3;function Nl(){return rl()/Ml}function Pl(){let{performance:e}=qs;if(!e?.now||!e.timeOrigin)return Nl;let t=e.timeOrigin;return()=>(t+tl(()=>e.now()))/Ml}var Fl;function Il(){return(Fl??=Pl())()}function Ll(e){let t=Il(),n={sid:Tl(),init:!0,timestamp:t,started:t,duration:0,status:`ok`,errors:0,ignoreDuration:!1,toJSON:()=>Bl(n)};return e&&Rl(n,e),n}function Rl(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Il(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Tl()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started==`number`&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration==`number`)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors==`number`&&(e.errors=t.errors),t.status&&(e.status=t.status)}function zl(e,t){let n={};t?n={status:t}:e.status===`ok`&&(n={status:`exited`}),Rl(e,n)}function Bl(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did==`number`||typeof e.did==`string`?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function Vl(e,t,n=2){if(!t||typeof t!=`object`||n<=0)return t;if(e&&Object.keys(t).length===0)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=Vl(r[e],t[e],n-1));return r}function Hl(){return Tl()}function Ul(){return Tl().substring(16)}function Wl(e){try{let t=qs.WeakRef;if(typeof t==`function`)return new t(e)}catch{}return e}function Gl(e){if(e){if(typeof e==`object`&&`deref`in e&&typeof e.deref==`function`)try{return e.deref()}catch{return}return e}}var Kl=`_sentrySpan`;function ql(e,t){t?Jc(e,Kl,Wl(t)):delete e[Kl]}function Jl(e){return Gl(e[Kl])}var Yl=100,Xl=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Hl(),sampleRand:nl()}}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,ql(t,Jl(this)),t}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Rl(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return t===null?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let n=typeof t==`function`?t(this):t,{tags:r,attributes:i,extra:a,user:o,contexts:s,level:c,fingerprint:l=[],propagationContext:u,conversationId:d}=(n instanceof e?n.getScopeData():Vc(n)?t:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...i},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),d&&(this._conversationId=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,ql(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Hl(),sampleRand:nl()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n=typeof t==`number`?t:Yl;if(n<=0)return this;let r={timestamp:Nl(),...e,message:e.message?vl(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent(`buffer_overflow`,`log_item`)),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Jl(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=Vl(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||Tl();if(!this._client)return Ks&&uc.warn(`No client configured on scope - will not capture exception!`),n;let r=Error(`Sentry syntheticException`);return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n?.event_id||Tl();if(!this._client)return Ks&&uc.warn(`No client configured on scope - will not capture message!`),r;let i=n?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=e.event_id||t?.event_id||Tl();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(Ks&&uc.warn(`No client configured on scope - will not capture event!`),n)}_notifyScopeListeners(){this._notifyingListeners||=(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),!1)}};function Zl(){return Zs(`defaultCurrentScope`,()=>new Xl)}function Ql(){return Zs(`defaultIsolationScope`,()=>new Xl)}var $l=e=>e instanceof Promise&&!e[eu],eu=Symbol(`chained PromiseLike`),tu=(e,t,n)=>{let r=e.then(e=>(t(e),e),e=>{throw n(e),e});return $l(r)&&$l(e)?r:nu(e,r)},nu=(e,t)=>{if(!t)return e;let n=!1;for(let r in e){if(r in t)continue;n=!0;let i=e[r];typeof i==`function`?Object.defineProperty(t,r,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[eu]:!0}),t},ru=class{constructor(e,t){let n;n=e||new Xl;let r;r=t||new Xl,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t=this._pushScope(),n;try{n=e(t)}catch(e){throw this._popScope(),e}return Wc(n)?tu(n,()=>this._popScope(),()=>this._popScope()):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function iu(){let e=Xs(Ys());return e.stack=e.stack||new ru(Zl(),Ql())}function au(e){return iu().withScope(e)}function ou(e,t){let n=iu();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function su(e){return iu().withScope(()=>e(iu().getIsolationScope()))}function cu(){return{withIsolationScope:su,withScope:au,withSetScope:ou,withSetIsolationScope:(e,t)=>su(t),getCurrentScope:()=>iu().getScope(),getIsolationScope:()=>iu().getIsolationScope()}}function lu(e){let t=Xs(e);return t.acs?t.acs:cu()}function uu(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.keys(e).includes(`value`)}function du(e,t){let{value:n,unit:r}=uu(e)?e:{value:e,unit:void 0},i=pu(n),a=r&&typeof r==`string`?{unit:r}:{};if(i)return{...i,...a};if(!t||t===`skip-undefined`&&n===void 0)return;let o=``;try{o=JSON.stringify(n)??``}catch{}return{value:o,type:`string`,...a}}function fu(e,t=!1){let n={};for(let[r,i]of Object.entries(e??{})){let e=du(i,t);e&&(n[r]=e)}return n}function pu(e){if(Array.isArray(e))return{value:e,type:`array`};let t=typeof e==`string`?`string`:typeof e==`boolean`?`boolean`:typeof e==`number`&&!Number.isNaN(e)?Number.isInteger(e)?`integer`:`double`:null;if(t)return{value:e,type:t}}var mu;function hu(){return mu?.()}function gu(){return lu(Ys()).getCurrentScope()}function _u(){return lu(Ys()).getIsolationScope()}function vu(){return Zs(`globalScope`,()=>new Xl)}function yu(...e){let t=lu(Ys());if(e.length===2){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function bu(){return gu().getClient()}function xu(e){let t=hu();if(t)return{trace_id:t.traceId,span_id:t.spanId};let{traceId:n,parentSpanId:r,propagationSpanId:i}=e.getPropagationContext(),a={trace_id:n,span_id:i||Ul()};return r&&(a.parent_span_id=r),a}var Su=`sentry.op`,Cu=`sentry.origin`,wu=`sentry.profile_id`,Tu=`sentry.exclusive_time`,Eu=`gen_ai.conversation.id`,Du=`_sentryScope`,Ou=`_sentryIsolationScope`;function ku(e){let t=e;return{scope:t[Du],isolationScope:Gl(t[Ou])}}function Au(e){let t=ju(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>{if(t.startsWith(`sentry-`)){let r=t.slice(7);e[r]=n}return e},{});if(Object.keys(n).length>0)return n}function ju(e){if(!(!e||!Rc(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{let n=Mu(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):Mu(e)}function Mu(e){return e.split(`,`).map(e=>{let t=e.indexOf(`=`);return t===-1?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}var Nu=/^o(\d+)\./,Pu=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function Fu(e){return e===`http`||e===`https`}function Iu(e,t=!1){let{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&i?`:${i}`:``}@${n}${a?`:${a}`:``}/${r&&`${r}/`}${o}`}function Lu(e){let t=Pu.exec(e);if(!t){tc(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,i=``,a=``,o=``,s=``]=t.slice(1),c=``,l=s,u=l.split(`/`);if(u.length>1&&(c=u.slice(0,-1).join(`/`),l=u.pop()),l){let e=l.match(/^\d+/);e&&(l=e[0])}return Ru({host:a,pass:i,path:c,projectId:l,port:o,protocol:n,publicKey:r})}function Ru(e){return{protocol:e.protocol,publicKey:e.publicKey||``,pass:e.pass||``,host:e.host,port:e.port||``,path:e.path||``,projectId:e.projectId}}function zu(e){if(!Ks)return!0;let{port:t,projectId:n,protocol:r}=e;return[`protocol`,`publicKey`,`host`,`projectId`].find(t=>e[t]?!1:(uc.error(`Invalid Sentry Dsn: ${t} missing`),!0))?!1:n.match(/^\d+$/)?Fu(r)?t&&isNaN(parseInt(t,10))?(uc.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(uc.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(uc.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Bu(e){return e.match(Nu)?.[1]}function Vu(e){let t=e.getOptions(),{host:n}=e.getDsn()||{},r;return t.orgId?r=String(t.orgId):n&&(r=Bu(n)),r}function Hu(e){let t=typeof e==`string`?Lu(e):Ru(e);if(!(!t||!zu(t)))return t}function Uu(e){if(typeof e==`boolean`)return Number(e);let t=typeof e==`string`?parseFloat(e):e;if(!(typeof t!=`number`||isNaN(t)||t<0||t>1))return t}var Wu=!1;function Gu(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:Yu(e).parent_span_id,a=ku(e).scope;return{parent_span_id:i,span_id:r?a?.getPropagationContext().propagationSpanId||Ul():t,trace_id:n}}function Ku(e){if(e&&e.length>0)return e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:n===1,attributes:i,...r}))}function qu(e){return typeof e==`number`?Ju(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Ju(e.getTime()):Il()}function Ju(e){return e>9999999999?e/1e3:e}function Yu(e){if($u(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(Qu(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{span_id:t,trace_id:n,data:r,description:a,parent_span_id:Xu(e),start_timestamp:qu(i),timestamp:qu(o)||void 0,status:td(s),op:r[Su],origin:r[Cu],links:Ku(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function Xu(e){return`parentSpanId`in e?e.parentSpanId:`parentSpanContext`in e?e.parentSpanContext?.spanId:void 0}function Zu(e){return{...e,attributes:fu(e.attributes),links:e.links?.map(e=>({...e,attributes:fu(e.attributes)}))}}function Qu(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function $u(e){return typeof e.getSpanJSON==`function`}function ed(e){let{traceFlags:t}=e.spanContext();return t===1}function td(e){if(!(!e||e.code===0))return e.code===1?`ok`:e.message||`internal_error`}var nd=`_sentryRootSpan`,rd=id;function id(e){return e[nd]||e}function ad(){Wu||=(tc(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),!0)}function od(e){if(typeof __SENTRY_TRACING__==`boolean`&&!__SENTRY_TRACING__)return!1;let t=e||bu()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function sd(e){uc.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function cd(e,t){if(!t?.length)return!1;for(let n of t){if(dd(n)){if(e.description&&bl(e.description,n))return Ks&&sd(e),!0;continue}let t=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!t)continue;let r=n.name?e.description&&bl(e.description,n.name):!0,i=n.op?e.op&&bl(e.op,n.op):!0,a=n.attributes?Object.entries(n.attributes).every(([t,n])=>ld(e.attributes?.[t],n)):!0;if(r&&i&&a)return Ks&&sd(e),!0}return!1}function ld(e,t){return typeof e==`string`&&(typeof t==`string`||t instanceof RegExp)?bl(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t}function ud(e,t){let n=t.parent_span_id,r=t.span_id;if(n)for(let t of e)t.parent_span_id===r&&(t.parent_span_id=n)}function dd(e){return typeof e==`string`||e instanceof RegExp}var fd=`production`,pd=`_frozenDsc`;function md(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||`production`,release:n.release,public_key:r,trace_id:e,org_id:Vu(t)};return t.emit(`createDsc`,i),i}function hd(e,t){let n=t.getPropagationContext();return n.dsc||md(n.traceId,e)}function gd(e){let t=bu();if(!t)return{};let n=rd(e),r=Yu(n),i=r.data,a=n.spanContext().traceState,o=a?.get(`sentry.sample_rate`)??i[`sentry.sample_rate`]??i[`sentry.previous_trace_sample_rate`];function s(e){return(typeof o==`number`||typeof o==`string`)&&(e.sample_rate=`${o}`),e}let c=n[pd];if(c)return s(c);let l=a?.get(`sentry.dsc`),u=l&&Au(l);if(u)return s(u);let d=md(e.spanContext().traceId,t),f=i[`sentry.source`]??i[`sentry.span.source`],p=r.description;return f!==`url`&&p&&(d.transaction=p),od()&&(d.sampled=String(ed(n)),d.sample_rand=a?.get(`sentry.sample_rand`)??ku(n).scope?.getPropagationContext().sampleRand.toString()),s(d),t.emit(`createDsc`,d,n),d}function _d(e){return!!e&&typeof e==`function`&&`_streamed`in e&&!!e._streamed}function vd(e,t=[]){return[e,t]}function yd(e,t){let[n,r]=e;return[n,[...r,t]]}function bd(e,t){let n=e[1];for(let e of n){let n=e[0].type;if(t(e,n))return!0}return!1}function xd(e,t){return bd(e,(e,n)=>t.includes(n))}function Sd(e){let t=Xs(qs);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function Cd(e){let[t,n]=e,r=JSON.stringify(t);function i(e){typeof r==`string`?r=typeof e==`string`?r+e:[Sd(r),e]:r.push(typeof e==`string`?Sd(e):e)}for(let e of n){let[t,n]=e;if(i(`
|
|
50
|
+
${JSON.stringify(t)}
|
|
51
|
+
`),typeof n==`string`||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(ul(n))}i(e)}}return typeof r==`string`?r:wd(r)}function wd(e){let t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}function Td(e){let t=typeof e.data==`string`?Sd(e.data):e.data;return[{type:`attachment`,length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var Ed={sessions:`session`,event:`error`,client_report:`internal`,user_report:`default`,profile_chunk:`profile`,replay_event:`replay`,replay_recording:`replay`,check_in:`monitor`,raw_security:`security`,log:`log_item`,trace_metric:`metric`};function Dd(e){return e in Ed}function Od(e){return Dd(e)?Ed[e]:e}function kd(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function Ad(e,t,n,r){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date(rl()).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Iu(r)},...i&&{trace:i}}}function jd(e,t){if(!t)return e;let n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function Md(e,t,n,r){let i=kd(n);return vd({sent_at:new Date(rl()).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:Iu(t)}},[`aggregates`in e?[{type:`sessions`},e]:[{type:`session`},e.toJSON()]])}function Nd(e,t,n,r){let i=kd(n),a=e.type&&e.type!==`replay_event`?e.type:`event`;jd(e,n?.sdk);let o=Ad(e,i,r,t);return delete e.sdkProcessingMetadata,vd(o,[[{type:a},e]])}function Pd(e){return e.getOptions().traceLifecycle===`stream`}function Fd(e,t){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;zd(e,t),r&&Hd(e,r),Ud(e,n),Bd(e,i),Vd(e,a)}function Id(e,t){let{extra:n,tags:r,attributes:i,user:a,contexts:o,level:s,sdkProcessingMetadata:c,breadcrumbs:l,fingerprint:u,eventProcessors:d,attachments:f,propagationContext:p,transactionName:m,span:h}=t;Ld(e,`extra`,n),Ld(e,`tags`,r),Ld(e,`attributes`,i),Ld(e,`user`,a),Ld(e,`contexts`,o),e.sdkProcessingMetadata=Vl(e.sdkProcessingMetadata,c,2),s&&(e.level=s),m&&(e.transactionName=m),h&&(e.span=h),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function Ld(e,t,n){e[t]=Vl(e[t],n,1)}function Rd(e,t){let n=vu().getScopeData();return e&&Id(n,e.getScopeData()),t&&Id(n,t.getScopeData()),n}function zd(e,t){let{extra:n,tags:r,user:i,contexts:a,level:o,transactionName:s}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(a).length&&(e.contexts={...a,...e.contexts}),o&&(e.level=o),s&&e.type!==`transaction`&&(e.transaction=s)}function Bd(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Vd(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Hd(e,t){e.contexts={trace:Gu(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:gd(t),...e.sdkProcessingMetadata};let n=Yu(rd(t)).description;n&&!e.transaction&&e.type===`transaction`&&(e.transaction=n)}function Ud(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}function Wd(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||``,r=t[8]||``;return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function Gd(e,t=!0){if(e.startsWith(`data:`)){let n=e.match(/^data:([^;,]+)/),r=n?n[1]:`text/plain`,i=e.includes(`;base64,`),a=e.indexOf(`,`),o=``;if(t&&a!==-1){let t=e.slice(a+1);o=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${i?`,base64`:``}${o?`,${o}`:``}`}return e}function Kd(e,t){let n=e.attributes??={};Object.entries(t).forEach(([e,t])=>{t!=null&&!(e in n)&&(n[e]=t)})}var qd=0,Jd=1,Yd=2;function Xd(e){return new Qd(t=>{t(e)})}function Zd(e){return new Qd((t,n)=>{n(e)})}var Qd=class e{constructor(e){this._state=qd,this._handlers=[],this._runExecutor(e)}then(t,n){return new e((e,r)=>{this._handlers.push([!1,n=>{if(!t)e(n);else try{e(t(n))}catch(e){r(e)}},t=>{if(!n)r(t);else try{e(n(t))}catch(e){r(e)}}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(t){return new e((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{if(i){n(r);return}e(r)})})}_executeHandlers(){if(this._state===qd)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||=(this._state===Jd&&e[1](this._value),this._state===Yd&&e[2](this._value),!0)})}_runExecutor(e){let t=(e,t)=>{if(this._state===qd){if(Wc(t)){t.then(n,r);return}this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(Jd,e)},r=e=>{t(Yd,e)};try{e(n,r)}catch(e){r(e)}}};function $d(e,t,n,r=0){try{let i=ef(t,n,e,r);return Wc(i)?i:Xd(i)}catch(e){return Zd(e)}}function ef(e,t,n,r){let i=n[r];if(!e||!i)return e;let a=i({...e},t);return Ks&&a===null&&uc.log(`Event processor "${i.id||`?`}" dropped event`),Wc(a)?a.then(e=>ef(e,t,n,r+1)):ef(a,t,n,r+1)}var tf,nf,rf,af;function of(e){let t=qs._sentryDebugIds,n=qs._debugIds;if(!t&&!n)return{};let r=t?Object.keys(t):[],i=n?Object.keys(n):[];if(af&&r.length===nf&&i.length===rf)return af;nf=r.length,rf=i.length,af={},tf||={};let a=(t,n)=>{for(let r of t){let t=n[r],i=tf?.[r];if(i&&af&&t)af[i[0]]=t,tf&&(tf[r]=[i[0],t]);else if(t){let n=e(r);for(let e=n.length-1;e>=0;e--){let i=n[e]?.filename;if(i&&af&&tf){af[i]=t,tf[r]=[i,t];break}}}}};return t&&a(r,t),n&&a(i,n),af}function sf(e,t,n,r,i,a){let{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||Tl(),timestamp:t.timestamp||Nl()},l=n.integrations||e.integrations.map(e=>e.name);cf(c,e),df(c,l),i&&i.emit(`applyFrameMetadata`,t),t.type===void 0&&lf(c,e.stackParser);let u=pf(r,n.captureContext);n.mechanism&&kl(c,n.mechanism);let d=i?i.getEventProcessors():[],f=Rd(a,u),p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),Fd(c,f);let m=[...d,...f.eventProcessors];return(n.data&&n.data.__sentry__===!0?Xd(c):$d(m,c,n)).then(e=>(e&&uf(e),typeof o==`number`&&o>0?ff(e,o,s):e))}function cf(e,t){let{environment:n,release:r,dist:i,maxValueLength:a}=t;e.environment=e.environment||n||`production`,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);let o=e.request;o?.url&&a&&(o.url=vl(o.url,a)),a&&e.exception?.values?.forEach(e=>{e.value&&=vl(e.value,a)})}function lf(e,t){let n=of(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}function uf(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:`sourcemap`,code_file:e,debug_id:t})})}function df(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function ff(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:ul(e.data,t,n)}}))},...e.user&&{user:ul(e.user,t,n)},...e.contexts&&{contexts:ul(e.contexts,t,n)},...e.extra&&{extra:ul(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=ul(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:ul(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=ul(e.contexts.flags,3,n)),r}function pf(e,t){if(!t)return e;let n=e?e.clone():new Xl;return n.update(t),n}function mf(e){if(e)return hf(e)||_f(e)?{captureContext:e}:e}function hf(e){return e instanceof Xl||typeof e==`function`}var gf=[`user`,`level`,`extra`,`contexts`,`tags`,`fingerprint`,`propagationContext`];function _f(e){return Object.keys(e).some(e=>gf.includes(e))}function vf(e,t){return gu().captureException(e,mf(t))}function yf(e,t){return gu().captureEvent(e,t)}function bf(e){let t=_u(),{user:n}=Rd(t,gu()),{userAgent:r}=qs.navigator||{},i=Ll({user:n,...r&&{userAgent:r},...e}),a=t.getSession();return a?.status===`ok`&&Rl(a,{status:`exited`}),xf(),t.setSession(i),i}function xf(){let e=_u(),t=gu().getSession()||e.getSession();t&&zl(t),Sf(),e.setSession()}function Sf(){let e=_u(),t=bu(),n=e.getSession();n&&t&&t.captureSession(n)}function Cf(e=!1){if(e){xf();return}Sf()}function wf(e){let t=e.protocol?`${e.protocol}:`:``,n=e.port?`:${e.port}`:``;return`${t}//${e.host}${n}${e.path?`/${e.path}`:``}/api/`}function Tf(e){return`${wf(e)}${e.projectId}/envelope/`}function Ef(e,t){let n={sentry_version:`7`};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function Df(e,t,n){return t||`${Tf(e)}?${Ef(e,n)}`}var Of=[];function kf(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}function Af(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n==`function`){let e=n(t);r=Array.isArray(e)?e:[e]}else r=t;return kf(r)}function jf(e,t){let n={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&Nf(e,t,n)}),n}function Mf(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function Nf(e,t,n){if(n[t.name]){Ks&&uc.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!Of.includes(t.name)&&typeof t.setupOnce==`function`&&(t.setupOnce(),Of.push(t.name)),t.setup&&typeof t.setup==`function`&&t.setup(e),typeof t.preprocessEvent==`function`){let n=t.preprocessEvent.bind(t);e.on(`preprocessEvent`,(t,r)=>n(t,r,e))}if(typeof t.processEvent==`function`){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}[`processSpan`,`processSegmentSpan`].forEach(n=>{let r=t[n];typeof r==`function`&&e.on(n,n=>r.call(t,n,e))}),Ks&&uc.log(`Integration installed: ${t.name}`)}function Pf(e){return e}function Ff(){return typeof __SENTRY_BROWSER_BUNDLE__<`u`&&!!__SENTRY_BROWSER_BUNDLE__}function If(){return`npm`}function Lf(){return!Ff()&&Object.prototype.toString.call(typeof process<`u`?process:0)===`[object process]`}function Rf(){return typeof window<`u`&&(!Lf()||zf())}function zf(){return qs.process?.type===`renderer`}function Bf(e,t){let n=t?`auto`:`never`;return[{type:`log`,item_count:e.length,content_type:`application/vnd.sentry.items.log+json`},{version:2,...Rf()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function Vf(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=Iu(r)),vd(a,[Bf(e,i)])}function Hf(e,t){let n=t??Uf(e)??[];if(n.length===0)return;let r=e.getOptions(),i=Vf(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);Wf().set(e,[]),e.emit(`flushLogs`),e.sendEnvelope(i)}function Uf(e){return Wf().get(e)}function Wf(){return Zs(`clientToLogBufferMap`,()=>new WeakMap)}function Gf(e,t){let n=t?`auto`:`never`;return[{type:`trace_metric`,item_count:e.length,content_type:`application/vnd.sentry.items.trace-metric+json`},{version:2,...Rf()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function Kf(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=Iu(r)),vd(a,[Gf(e,i)])}function qf(e,t){let n=t??Jf(e)??[];if(n.length===0)return;let r=e.getOptions(),i=Kf(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);Yf().set(e,[]),e.emit(`flushMetrics`),e.sendEnvelope(i)}function Jf(e){return Yf().get(e)}function Yf(){return Zs(`clientToMetricBufferMap`,()=>new WeakMap)}function Xf(e){return Zu({trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||``,start_timestamp:e.start_timestamp,end_timestamp:e.timestamp||e.start_timestamp,status:!e.status||e.status===`ok`||e.status===`cancelled`?`ok`:`error`,is_segment:!1,attributes:{...e.data},links:e.links})}function Zf(e,t){if(e.type!==`transaction`||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||!t.getOptions().streamGenAiSpans||Pd(t))return;let n=[],r=[];for(let t of e.spans)t.op?.startsWith(`gen_ai.`)?n.push(Xf(t)):r.push(t);if(n.length===0)return;e.spans=r;let i=t.getDataCollectionOptions().userInfo?`auto`:`never`;return[{type:`span`,item_count:n.length,content_type:`application/vnd.sentry.items.span.v2+json`},{version:2,...Rf()&&{ingest_settings:{infer_ip:i,infer_user_agent:i}},items:n}]}function Qf(e){return typeof e==`object`&&typeof e.unref==`function`&&e.unref(),e}var $f=Symbol.for(`SentryBufferFullError`);function ep(e=100){let t=new Set;function n(){return t.size<e}function r(e){t.delete(e)}function i(e){if(!n())return Zd($f);let i=e();return t.add(i),i.then(()=>r(i),()=>r(i)),i}function a(e){if(!t.size)return Xd(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return n;let r=[n,new Promise(t=>Qf(setTimeout(()=>t(!1),e)))];return Promise.race(r)}return{get $(){return Array.from(t)},add:i,drain:a}}var tp=60*1e3;function np(e,t=rl()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?tp:r-t}function rp(e,t){return e[t]||e.all||0}function ip(e,t,n=rl()){return rp(e,t)>n}function ap(e,{statusCode:t,headers:n},r=rl()){let i={...e},a=n?.[`x-sentry-rate-limits`],o=n?.[`retry-after`];if(a)for(let e of a.trim().split(`,`)){let[t,n,,,a]=e.split(`:`,5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(!n)i.all=r+s;else for(let e of n.split(`;`))e===`metric_bucket`?(!a||a.split(`;`).includes(`custom`))&&(i[e]=r+s):i[e]=r+s}else o?i.all=r+np(o,r):t===429&&(i.all=r+60*1e3);return i}function op(e,t,n=ep(e.bufferSize||64)){let r={},i=e=>n.drain(e);function a(i){let a=[];if(bd(i,(t,n)=>{let i=Od(n);ip(r,i)?e.recordDroppedEvent(`ratelimit_backoff`,i):a.push(t)}),a.length===0)return Promise.resolve({});let o=vd(i[0],a),s=t=>{if(xd(o,[`client_report`])){Ks&&uc.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}bd(o,(n,r)=>{e.recordDroppedEvent(t,Od(r))})};return n.add(()=>t({body:Cd(o)}).then(e=>e.statusCode===413?(Ks&&uc.error(`Sentry responded with status code 413. Envelope was discarded due to exceeding size limits.`),s(`send_error`),e):(Ks&&e.statusCode!==void 0&&(e.statusCode<200||e.statusCode>=300)&&uc.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=ap(r,e),e),e=>{throw s(`network_error`),Ks&&uc.error(`Encountered error running transport request:`,e),e})).then(e=>e,e=>{if(e===$f)return Ks&&uc.error(`Skipped sending event because buffer is full.`),s(`queue_overflow`),Promise.resolve({});throw e})}return{send:a,flush:i}}function sp(e,t,n){let r=[{type:`client_report`},{timestamp:n||Nl(),discarded_events:e}];return vd(t?{dsn:t}:{},[r])}function cp(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function lp(e){let{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:a,data:o,op:s}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:s,parent_span_id:n,span_id:r??``,start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??``,origin:a,profile_id:o?.[wu],exclusive_time:o?.[Tu],measurements:e.measurements,is_segment:!0}}function up(e){return{type:`transaction`,timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{"sentry.profile_id":e.profile_id},...e.exclusive_time&&{"sentry.exclusive_time":e.exclusive_time}}}},measurements:e.measurements}}var dp=[`forwarded`,`-ip`,`remote-`,`via`,`-user`];function fp(e){return e===!0?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:[`incomingRequest`,`outgoingRequest`,`incomingResponse`,`outgoingResponse`],queryParams:!0,genAI:{inputs:!0,outputs:!0},stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:dp},httpHeaders:{request:{deny:dp},response:{deny:dp}},httpBodies:[],queryParams:{deny:dp},genAI:{inputs:!1,outputs:!1},stackFrameVariables:!0,frameContextLines:7}}var pp={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:[`incomingRequest`,`outgoingRequest`,`incomingResponse`,`outgoingResponse`],queryParams:!0,genAI:{inputs:!0,outputs:!0},stackFrameVariables:!0,frameContextLines:5};function mp(e){let t=e.dataCollection==null?fp(e.sendDefaultPii):pp,n=e.dataCollection??{};return{userInfo:n.userInfo??t.userInfo,cookies:n.cookies??t.cookies,httpHeaders:{request:n.httpHeaders?.request??t.httpHeaders.request,response:n.httpHeaders?.response??t.httpHeaders.response},httpBodies:n.httpBodies??t.httpBodies,queryParams:n.queryParams??t.queryParams,genAI:{inputs:n.genAI?.inputs??t.genAI.inputs,outputs:n.genAI?.outputs??t.genAI.outputs},stackFrameVariables:n.stackFrameVariables??t.stackFrameVariables,frameContextLines:n.frameContextLines??t.frameContextLines}}var hp=`Not capturing exception because it's already been captured.`,gp=`Discarded session because of missing or non-string release`,_p=Symbol.for(`SentryInternalError`),vp=Symbol.for(`SentryDoNotSendEventError`),yp=5e3;function bp(e){return{message:e,[_p]:!0}}function xp(e){return{message:e,[vp]:!0}}function Sp(e){return!!e&&typeof e==`object`&&_p in e}function Cp(e){return!!e&&typeof e==`object`&&vp in e}function wp(e,t,n,r,i){let a=0,o,s=!1;e.on(n,()=>{a=0,clearTimeout(o),s=!1}),e.on(t,t=>{if(a+=r(t),a>=8e5)i(e);else if(!s){let t=e.getOptions()._flushInterval??yp;t>0&&(s=!0,o=Qf(setTimeout(()=>{i(e)},t)))}}),e.on(`flush`,()=>{i(e)})}var Tp=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=ep(e.transportOptions?.bufferSize??64),this._dataCollection=mp(e),e.dsn?this._dsn=Hu(e.dsn):Ks&&uc.warn(`No DSN provided, client will not send events.`),this._dsn){let t=Df(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&wp(this,`afterCaptureLog`,`flushLogs`,Mp,Hf),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&wp(this,`afterCaptureMetric`,`flushMetrics`,jp,qf)}captureException(e,t,n){let r=Tl();if(Al(e))return Ks&&uc.log(hp),r;let i={event_id:r,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,n)).then(e=>e),`error`),i.event_id}captureMessage(e,t,n,r){let i={event_id:Tl(),...n},a=zc(e)?e:String(e),o=Bc(e),s=o?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(()=>s.then(e=>this._captureEvent(e,i,r)),o?`unknown`:`error`),i.event_id}captureEvent(e,t,n){let r=Tl();if(t?.originalException&&Al(t.originalException))return Ks&&uc.log(hp),r;let i={event_id:r,...t},a=e.sdkProcessingMetadata||{},o=a.capturedSpanScope,s=a.capturedSpanIsolationScope,c=Ep(e.type);return this._process(()=>this._captureEvent(e,i,o||n,s),c),i.event_id}captureSession(e){this.sendSession(e),Rl(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(this.emit(`flush`),!t)return!0;let n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){Hf(this);let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit(`close`),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith(`Spotlight`)))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),Nf(this,e,this._integrations),t||Mf(this,[e])}sendEvent(e,t={}){this.emit(`beforeSendEvent`,e,t);let n=Zf(e,this),r=Nd(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])r=yd(r,Td(e));n&&(r=yd(r,n)),this.sendEnvelope(r).then(t=>this.emit(`afterSendEvent`,e,t))}sendSession(e){let{release:t,environment:n=fd}=this._options;if(`aggregates`in e){let r=e.attrs||{};if(!r.release&&!t){Ks&&uc.warn(gp);return}r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t){Ks&&uc.warn(gp);return}e.release=e.release||t,e.environment=e.environment||n}this.emit(`beforeSendSession`,e);let r=Md(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){let r=`${e}:${t}`;Ks&&uc.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:``}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit(`beforeEnvelope`,e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return Ks&&uc.error(`Error while sending envelope:`,e),{}}return Ks&&uc.error(`Transport disabled`),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=jf(this,e),Mf(this,e)}_updateSessionFromEvent(e,t){let n=t.level===`fatal`,r=!1,i=t.exception?.values;if(i){r=!0,n=!1;for(let e of i)if(e.mechanism?.handled===!1){n=!0;break}}let a=e.status===`ok`;(a&&e.errors===0||a&&n)&&(Rl(e,{...n&&{status:`crashed`},errors:e.errors||Number(r||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n,r){let i=this.getOptions(),a=this.getIntegrationNames();return!t.integrations&&a.length&&(t.integrations=a),this.emit(`preprocessEvent`,e,t),e.type||r.setLastEventId(e.event_id||t.event_id),sf(i,e,t,n,this,r).then(e=>e===null?e:(this.emit(`postprocessEvent`,e,t),e.contexts={trace:{...e.contexts?.trace,...xu(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:hd(this,n),...e.sdkProcessingMetadata},e))}_captureEvent(e,t={},n=gu(),r=_u()){return Ks&&kp(e)&&uc.log(`Captured error event \`${cp(e)[0]||`<unknown>`}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{Ks&&(Cp(e)?uc.log(e.message):Sp(e)?uc.warn(e.message):uc.warn(e))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:a}=i,o=Ap(e),s=kp(e),c=`before send for type \`${e.type||`error`}\``,l=a===void 0?void 0:Uu(a);if(s&&typeof l==`number`&&nl()>l)return this.recordDroppedEvent(`sample_rate`,`error`),Zd(xp(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));let u=Ep(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(e===null)throw this.recordDroppedEvent(`event_processor`,u),xp("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:Dp(Op(this,i,e,t),c)}).then(i=>{if(i===null){if(this.recordDroppedEvent(`before_send`,u),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent(`before_send`,`span`,t)}throw xp(`${c} returned \`null\`, will not send event.`)}let a=n.getSession()||r.getSession();if(s&&a&&this._updateSessionFromEvent(a,i),o){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent(`before_send`,`span`,e)}let l=i.transaction_info;return o&&l&&i.transaction!==e.transaction&&(i.transaction_info={...l,source:`custom`}),this.sendEvent(i,t),i}).then(null,e=>{throw Cp(e)||Sp(e)?e:(this.captureException(e,{mechanism:{handled:!1,type:`internal`},data:{__sentry__:!0},originalException:e}),bp(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
52
|
+
Reason: ${e}`))})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===$f&&this.recordDroppedEvent(`queue_overflow`,t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(`:`);return{reason:n,category:r,quantity:t}})}_flushOutcomes(){Ks&&uc.log(`Flushing outcomes...`);let e=this._clearOutcomes();if(e.length===0){Ks&&uc.log(`No outcomes to send`);return}if(!this._dsn){Ks&&uc.log(`No dsn provided, will not send outcomes`);return}Ks&&uc.log(`Sending outcomes:`,e);let t=sp(e,this._options.tunnel&&Iu(this._dsn));this.sendEnvelope(t)}};function Ep(e){return e===`replay_event`?`replay`:e||`error`}function Dp(e,t){let n=`${t} must return \`null\` or a valid event.`;if(Wc(e))return e.then(e=>{if(!Vc(e)&&e!==null)throw bp(n);return e},e=>{throw bp(`${t} rejected with ${e}`)});if(!Vc(e)&&e!==null)throw bp(n);return e}function Op(e,t,n,r){let{beforeSend:i,beforeSendTransaction:a,ignoreSpans:o}=t,s=!_d(t.beforeSendSpan)&&t.beforeSendSpan,c=n;if(kp(c)&&i)return i(c,r);if(Ap(c)){if(s||o){let t=lp(c);if(o?.length&&cd({description:t.description,op:t.op,attributes:t.data},o))return null;if(s){let e=s(t);e?c=Vl(n,up(e)):ad()}if(c.spans){let t=[],n=c.spans;for(let e of n){if(o?.length&&cd({description:e.description,op:e.op,attributes:e.data},o)){ud(n,e);continue}if(s){let n=s(e);n?t.push(n):(ad(),t.push(e))}else t.push(e)}let r=c.spans.length-t.length;r&&e.recordDroppedEvent(`before_send`,`span`,r),c.spans=t}}if(a){if(c.spans){let e=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(c,r)}}return c}function kp(e){return e.type===void 0}function Ap(e){return e.type===`transaction`}function jp(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+Np(e.attributes)}function Mp(e){let t=0;return e.message&&(t+=e.message.length*2),t+Np(e.attributes)}function Np(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*Pp(e[0]):Bc(e)?t+=Pp(e):t+=100}),t}function Pp(e){return typeof e==`string`?e.length*2:typeof e==`number`?8:typeof e==`boolean`?4:0}function Fp(e,t){t.debug===!0&&(Ks?uc.enable():tc(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),gu().update(t.initialScope);let n=new e(t);return Ip(n),n.init(),n}function Ip(e){gu().setClient(e)}function Lp(e){`aggregates`in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:`{{auto}}`}):e.ipAddress===void 0&&(e.ipAddress=`{{auto}}`)}function Rp(e,t,n=[t],r=`npm`){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:Js})),i.version=Js)}var zp=100;function Bp(e,t){let n=bu(),r=_u();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=zp}=n.getOptions();if(a<=0)return;let o={timestamp:Nl(),...e},s=i?tc(()=>i(o,t)):o;s!==null&&(n.emit&&n.emit(`beforeAddBreadcrumb`,s,t),r.addBreadcrumb(s,a))}var Vp,Hp=`FunctionToString`,Up=new WeakMap,Wp=Pf((()=>({name:Hp,setupOnce(){Vp=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=Xc(this),n=Up.has(bu())&&t!==void 0?t:this;return Vp.apply(n,e)}}catch{}},setup(e){Up.set(e,!0)}}))),Gp=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],Kp=`EventFilters`,qp=Pf((e={})=>{let t;return{name:Kp,setup(n){t=Yp(e,n.getOptions())},processEvent(n,r,i){return t||=Yp(e,i.getOptions()),Xp(n,t)?null:n}}}),Jp=Pf(((e={})=>({...qp(e),name:`InboundFilters`})));function Yp(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Gp],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Xp(e,t){if(!e.type){if(Zp(e,t.ignoreErrors))return Ks&&uc.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
|
|
53
|
+
Event: ${Dl(e)}`),!0;if(rm(e))return Ks&&uc.warn(`Event dropped due to not having an error message, error type or stacktrace.
|
|
54
|
+
Event: ${Dl(e)}`),!0;if($p(e,t.denyUrls))return Ks&&uc.warn(`Event dropped due to being matched by \`denyUrls\` option.
|
|
55
|
+
Event: ${Dl(e)}.
|
|
56
|
+
Url: ${nm(e)}`),!0;if(!em(e,t.allowUrls))return Ks&&uc.warn(`Event dropped due to not being matched by \`allowUrls\` option.
|
|
57
|
+
Event: ${Dl(e)}.
|
|
58
|
+
Url: ${nm(e)}`),!0}else if(e.type===`transaction`&&Qp(e,t.ignoreTransactions))return Ks&&uc.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
|
|
59
|
+
Event: ${Dl(e)}`),!0;return!1}function Zp(e,t){return t?.length?cp(e).some(e=>xl(e,t)):!1}function Qp(e,t){if(!t?.length)return!1;let n=e.transaction;return n?xl(n,t):!1}function $p(e,t){if(!t?.length)return!1;let n=nm(e);return n?xl(n,t):!1}function em(e,t){if(!t?.length)return!0;let n=nm(e);return n?xl(n,t):!0}function tm(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!==`<anonymous>`&&n.filename!==`[native code]`)return n.filename||null}return null}function nm(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length)?.stacktrace?.frames;return t?tm(t):null}catch{return Ks&&uc.error(`Cannot extract url for event ${Dl(e)}`),null}}function rm(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&e.type!==`Error`||e.value):!1}function im(e,t,n,r,i,a){if(!i.exception?.values||!a||!Gc(a.originalException,Error))return;let o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=am(e,t,r,a.originalException,n,i.exception.values,o,0))}function am(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(Gc(r[i],Error)){sm(o,s,r);let a=e(t,r[i]),l=c.length;cm(a,i,l,s),c=am(e,t,n,r[i],i,[a,...c],a,l)}return om(r)&&r.errors.forEach((a,l)=>{if(Gc(a,Error)){sm(o,s,r);let u=e(t,a),d=c.length;cm(u,`errors[${l}]`,d,s),c=am(e,t,n,a,i,[u,...c],u,d)}}),c}function om(e){return Array.isArray(e.errors)}function sm(e,t,n){e.mechanism={handled:!0,type:`auto.core.linked_errors`,...om(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function cm(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:`chained`,source:t,exception_id:n,parent_id:r}}function lm(e){return Nc(e)&&`__sentry_fetch_url_host__`in e&&typeof e.__sentry_fetch_url_host__==`string`}function um(e){return lm(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}var dm=new Set([]);function fm(e){let t=`console`,n=Cc(t,e);return wc(t,pm),n}function pm(){`console`in qs&&Qs.forEach(function(e){e in qs.console&&qc(qs.console,e,function(t){return ec[e]=t,function(...t){let n=t[0],r=ec[e],i=dm.size&&typeof n==`string`&&xl(n,dm);i||Tc(`console`,{args:t,level:e}),(!i||Ks&&uc.isEnabled())&&r?.apply(qs.console,t)}})})}function mm(e){return e===`warn`?`warning`:[`fatal`,`error`,`warning`,`log`,`info`,`debug`].includes(e)?e:`log`}var hm=`Dedupe`,gm=Pf((()=>{let e;return{name:hm,processEvent(t){if(t.type)return t;try{if(_m(t,e))return Ks&&uc.warn(`Event dropped due to being a duplicate of previously captured event.`),null}catch{}return e=t}}}));function _m(e,t){return t?!!(vm(e,t)||ym(e,t)):!1}function vm(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!xm(e,t)||!bm(e,t))}function ym(e,t){let n=Sm(t),r=Sm(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!xm(e,t)||!bm(e,t))}function bm(e,t){let n=bc(e),r=bc(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function xm(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join(``)===r.join(``)}catch{return!1}}function Sm(e){return e.exception?.values?.[0]}var Cm=`ConversationId`,wm=Pf((()=>({name:Cm,setup(e){e.on(`spanStart`,e=>{let t=gu().getScopeData(),n=_u().getScopeData(),r=t.conversationId||n.conversationId;if(r){let{op:t,data:n,description:i}=Yu(e);if(!t?.startsWith(`gen_ai.`)&&!n[`ai.operationId`]&&!i?.startsWith(`ai.`))return;e.setAttribute(Eu,r)}})}})));function Tm(e){if(e!==void 0){if(e>=400&&e<500)return`warning`;if(e>=500)return`error`}}var Em=qs;function Dm(){return`history`in Em&&!!Em.history}function Om(){if(!(`fetch`in Em))return!1;try{return new Headers,new Request(`data:,`),new Response,!0}catch{return!1}}function km(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Am(){if(typeof EdgeRuntime==`string`)return!0;if(!Om())return!1;if(km(Em.fetch))return!0;let e=!1,t=Em.document;if(t&&typeof t.createElement==`function`)try{let n=t.createElement(`iframe`);n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=km(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){Ks&&uc.warn(`Could not create sandbox iframe for pure fetch check, bailing to window.fetch: `,e)}return e}function jm(e,t){let n=`fetch`,r=Cc(n,e);return wc(n,()=>Mm(void 0,t)),r}function Mm(e,t=!1){t&&!Am()||qc(qs,`fetch`,function(t){return function(...n){let r=Error(),{method:i,url:a}=Fm(n),o={args:n,fetchData:{method:i,url:a},startTimestamp:Il()*1e3,virtualError:r,headers:Im(n)};return e||Tc(`fetch`,{...o}),t.apply(qs,n).then(async t=>(e?e(t):Tc(`fetch`,{...o,endTimestamp:Il()*1e3,response:t}),t),e=>{Tc(`fetch`,{...o,endTimestamp:Il()*1e3,error:e}),Nc(e)&&e.stack===void 0&&(e.stack=r.stack,Jc(e,`framesToPop`,1));let t=bu()?.getOptions().enhanceFetchErrorMessages??`always`;if(t!==!1&&e instanceof TypeError&&(e.message===`Failed to fetch`||e.message===`Load failed`||e.message===`NetworkError when attempting to fetch resource.`))try{let n=new URL(o.fetchData.url).host;t===`always`?e.message=`${e.message} (${n})`:Jc(e,`__sentry_fetch_url_host__`,n)}catch{}throw e})}})}function Nm(e,t){return!!e&&typeof e==`object`&&!!e[t]}function Pm(e){return typeof e==`string`?e:e?Nm(e,`url`)?e.url:e.toString?e.toString():``:``}function Fm(e){if(e.length===0)return{method:`GET`,url:``};if(e.length===2){let[t,n]=e;return{url:Pm(t),method:Nm(n,`method`)?String(n.method).toUpperCase():Kc(t)&&Nm(t,`method`)?String(t.method).toUpperCase():`GET`}}let t=e[0];return{url:Pm(t),method:Nm(t,`method`)?String(t.method).toUpperCase():`GET`}}function Im(e){let[t,n]=e;try{if(typeof n==`object`&&n&&`headers`in n&&n.headers)return new Headers(n.headers);if(Kc(t))return new Headers(t.headers)}catch{}}var Lm=qs;function Rm(){try{return Lm.document.location.href}catch{return``}}function zm(e,t=5){if(!Lm.HTMLElement)return null;let n=e;for(let e=0;e<t;e++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}var Bm=qs,Vm=0;function Hm(){return Vm>0}function Um(){Vm++,setTimeout(()=>{Vm--})}function Wm(e,t={}){function n(e){return typeof e==`function`}if(!n(e))return e;try{if(Object.prototype.hasOwnProperty.call(e,`__sentry_wrapped__`)){let t=e.__sentry_wrapped__;return typeof t==`function`?t:e}if(Xc(e))return e}catch{return e}let r=function(...n){qs._sentryWrappedDepth=(qs._sentryWrappedDepth||0)+1;try{let r=n.map(e=>Wm(e,t));return e.apply(this,r)}catch(e){throw Um(),yu(r=>{r.addEventProcessor(e=>(t.mechanism&&(Ol(e,void 0,void 0),kl(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),vf(e)}),e}finally{qs._sentryWrappedDepth=(qs._sentryWrappedDepth||0)-1}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}Yc(r,e),Jc(e,`__sentry_wrapped__`,r);try{Object.getOwnPropertyDescriptor(r,`name`).configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function Gm(){let e=Rm(),{referrer:t}=Bm.document||{},{userAgent:n}=Bm.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}function Km(e,t){let n=Ym(e,t),r={type:eh(t),value:th(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===``&&(r.value=`Unrecoverable error caught`),r}function qm(e,t,n,r){let i=bu()?.getOptions().normalizeDepth,a=ch(t),o={__serialized__:dl(t,i)};if(a)return{exception:{values:[Km(e,a)]},extra:o};let s={exception:{values:[{type:Hc(t)?t.constructor.name:r?`UnhandledRejection`:`Error`,value:oh(t,{isUnhandledRejection:r})}]},extra:o};if(n){let t=Ym(e,n);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}function Jm(e,t){return{exception:{values:[Km(e,t)]}}}function Ym(e,t){let n=t.stacktrace||t.stack||``,r=Zm(t),i=Qm(t);try{return e(n,r,i)}catch{}return[]}var Xm=/Minified React error #\d+;/i;function Zm(e){return e&&Xm.test(e.message)?1:0}function Qm(e){return typeof e.framesToPop==`number`?e.framesToPop:0}function $m(e){return typeof WebAssembly<`u`&&WebAssembly.Exception!==void 0?e instanceof WebAssembly.Exception:!1}function eh(e){let t=e?.name;return!t&&$m(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:`WebAssembly.Exception`:t}function th(e){let t=e?.message;return $m(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:`wasm exception`:t?t.error&&typeof t.error.message==`string`?um(t.error):um(e):`No error message`}function nh(e,t,n,r){let i=ih(e,t,n?.syntheticException||void 0,r);return kl(i),i.level=`error`,n?.event_id&&(i.event_id=n.event_id),Xd(i)}function rh(e,t,n=`info`,r,i){let a=ah(e,t,r?.syntheticException||void 0,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),Xd(a)}function ih(e,t,n,r,i){let a;if(Fc(t)&&t.error)return Jm(e,t.error);if(Ic(t)||Lc(t)){let i=t;if(`stack`in t){a=Jm(e,t);let i=a.exception?.values?.[0];if(r&&n&&i&&!i.stacktrace){let t=Ym(e,n);t.length&&(i.stacktrace={frames:t},kl(a,{synthetic:!0}))}}else{let t=i.name||(Ic(i)?`DOMError`:`DOMException`),o=i.message?`${t}: ${i.message}`:t;a=ah(e,o,n,r),Ol(a,o)}return`code`in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return Nc(t)?Jm(e,t):Vc(t)||Hc(t)?(a=qm(e,t,n,i),kl(a,{synthetic:!0}),a):(a=ah(e,t,n,r),Ol(a,`${t}`,void 0),kl(a,{synthetic:!0}),a)}function ah(e,t,n,r){let i={};if(r&&n){let r=Ym(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),kl(i,{synthetic:!0})}if(zc(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function oh(e,{isUnhandledRejection:t}){let n=$c(e),r=t?`promise rejection`:`exception`;return Fc(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Hc(e)?`Event \`${sh(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function sh(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function ch(e){return Object.values(e).find(e=>e instanceof Error)}var lh=class extends Tp{constructor(e){let t=uh(e);Rp(t,`browser`,[`browser`],Bm.SENTRY_SDK_SOURCE||If()),super(t);let{userInfo:n}=this.getDataCollectionOptions();t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:n?`auto`:`never`,...t._metadata.sdk.settings});let{sendClientReports:r,enableLogs:i,_experiments:a,enableMetrics:o}=this._options,s=o??a?.enableMetrics??!0;Bm.document&&(r||i||s)&&Bm.document.addEventListener(`visibilitychange`,()=>{Bm.document.visibilityState===`hidden`&&(r&&this._flushOutcomes(),i&&Hf(this),s&&qf(this))}),n&&this.on(`beforeSendSession`,Lp)}eventFromException(e,t){return nh(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t=`info`,n){return rh(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||`javascript`,super._prepareEvent(e,t,n,r)}};function uh(e){return{release:typeof __SENTRY_RELEASE__==`string`?__SENTRY_RELEASE__:Bm.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}var dh=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,fh=qs,ph=80,mh={};try{typeof Node<`u`&&(mh.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,`parentNode`).get),typeof Element<`u`&&(mh.tagName=Object.getOwnPropertyDescriptor(Element.prototype,`tagName`).get,mh.id=Object.getOwnPropertyDescriptor(Element.prototype,`id`).get,mh.className=Object.getOwnPropertyDescriptor(Element.prototype,`className`).get,mh.getAttribute=Element.prototype.getAttribute),typeof HTMLElement<`u`&&(mh.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,`dataset`).get)}catch{}function hh(e,t,n){let r=mh[t];if(r)try{return r.call(e,n)}catch{}let i=e[t];return typeof i==`function`?i.call(e,n):i}function gh(e,t={}){if(!e)return`<unknown>`;try{let n=e,r=[],i=0,a=0,o,s=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||ph;for(;n&&i++<5&&(o=_h(n,s),!(o===`html`||i>1&&a+r.length*3+o.length>=c));)r.push(o),a+=o.length,n=hh(n,`parentNode`);return r.reverse().join(` > `)}catch{return`<unknown>`}}function _h(e,t){let n=[],r=hh(e,`tagName`);if(!r)return``;if(typeof HTMLElement<`u`&&e instanceof HTMLElement){let t=hh(e,`dataset`);if(t){if(t.sentryComponent)return t.sentryComponent;if(t.sentryElement)return t.sentryElement}}n.push(r.toLowerCase());let i=t?.length?t.filter(t=>hh(e,`getAttribute`,t)).map(t=>[t,hh(e,`getAttribute`,t)]):null;if(i?.length)i.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{let t=hh(e,`id`);t&&n.push(`#${t}`);let r=hh(e,`className`);if(r&&Rc(r)){let e=r.split(/\s+/);for(let t of e)n.push(`.${t}`)}}for(let t of[`aria-label`,`type`,`name`,`title`,`alt`]){let r=hh(e,`getAttribute`,t);r&&n.push(`[${t}="${r}"]`)}return n.join(``)}var vh=1e3,yh,bh,xh;function Sh(e){Cc(`dom`,e),wc(`dom`,Ch)}function Ch(){if(!fh.document)return;let e=Tc.bind(null,`dom`),t=Eh(e,!0);fh.document.addEventListener(`click`,t,!1),fh.document.addEventListener(`keypress`,t,!1),[`EventTarget`,`Node`].forEach(t=>{let n=fh[t]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(qc(n,`addEventListener`,function(t){return function(n,r,i){if(n===`click`||n==`keypress`)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=r[n]=r[n]||{refCount:0};if(!a.handler){let r=Eh(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch{}return t.call(this,n,r,i)}}),qc(n,`removeEventListener`,function(e){return function(t,n,r){if(t===`click`||t==`keypress`)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),Object.keys(n).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function wh(e){if(e.type!==bh)return!1;try{if(!e.target||e.target._sentryId!==xh)return!1}catch{}return!0}function Th(e,t){return e===`keypress`?t?.tagName?!(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable):!0:!1}function Eh(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=Dh(n);if(Th(n.type,r))return;Jc(n,`_sentryCaptured`,!0),r&&!r._sentryId&&Jc(r,`_sentryId`,Tl());let i=n.type===`keypress`?`input`:n.type;wh(n)||(e({event:n,name:i,global:t}),bh=n.type,xh=r?r._sentryId:void 0),clearTimeout(yh),yh=fh.setTimeout(()=>{xh=void 0,bh=void 0},vh)}}function Dh(e){try{return e.target}catch{return null}}var Oh;function kh(e){let t=`history`;Cc(t,e),wc(t,Ah)}function Ah(){if(fh.addEventListener(`popstate`,()=>{let e=fh.location.href,t=Oh;Oh=e,t!==e&&Tc(`history`,{from:t,to:e})}),!Dm())return;function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let r=Oh,i=jh(String(n));if(Oh=i,r===i)return e.apply(this,t);Tc(`history`,{from:r,to:i})}return e.apply(this,t)}}qc(fh.history,`pushState`,e),qc(fh.history,`replaceState`,e)}function jh(e){try{return new URL(e,fh.location.origin).toString()}catch{return e}}var Mh={};function Nh(e){let t=Mh[e];if(t)return t;let n=fh[e];if(km(n))return Mh[e]=n.bind(fh);let r=fh.document;if(r&&typeof r.createElement==`function`)try{let t=r.createElement(`iframe`);t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(t)}catch(t){dh&&uc.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(Mh[e]=n.bind(fh))}function Ph(e){Mh[e]=void 0}var Fh=`__sentry_xhr_v3__`;function Ih(e){Cc(`xhr`,e),wc(`xhr`,Lh)}function Lh(){if(!fh.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=Il()*1e3,a=Rc(n[0])?n[0].toUpperCase():void 0,o=Rh(n[1]);if(!a||!o)return e.apply(t,n);t[Fh]={method:a,url:o,request_headers:{}},a===`POST`&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[Fh];if(e&&t.readyState===4){try{e.status_code=t.status}catch{}Tc(`xhr`,{endTimestamp:Il()*1e3,startTimestamp:i,xhr:t,virtualError:r})}};return`onreadystatechange`in t&&typeof t.onreadystatechange==`function`?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply(e,t,n){return s(),e.apply(t,n)}}):t.addEventListener(`readystatechange`,s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,a=t[Fh];return a&&Rc(r)&&Rc(i)&&(a.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[Fh];return r?(n[0]!==void 0&&(r.body=n[0]),Tc(`xhr`,{startTimestamp:Il()*1e3,xhr:t}),e.apply(t,n)):e.apply(t,n)}})}function Rh(e){if(Rc(e))return e;try{return e.toString()}catch{}}function zh(e){if(typeof Element>`u`)return!1;try{return e instanceof Element}catch{return!1}}var Bh=40;function Vh(e,t=Nh(`fetch`)){let n=0,r=0;async function i(i){let a=i.body.length;n+=a,r++;let o={body:i.body,method:`POST`,referrerPolicy:`strict-origin`,headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{let n=await t(e.url,o);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get(`X-Sentry-Rate-Limits`),"retry-after":n.headers.get(`Retry-After`)}}}catch(e){throw Ph(`fetch`),e}finally{n-=a,r--}}return op(e,i,ep(e.bufferSize||Bh))}var Hh=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,Uh=30,Wh=50;function Gh(e,t,n,r){let i={filename:e,function:t===`<anonymous>`?`?`:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var Kh=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,qh=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Jh=/\((\S*)(?::(\d+))(?::(\d+))\)/,Yh=/at (.+?) ?\(data:(.+?),/,Xh=[Uh,e=>{let t=e.match(Yh);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=Kh.exec(e);if(n){let[,e,t,r]=n;return Gh(e,`?`,+t,+r)}let r=qh.exec(e);if(r){if(r[2]?.indexOf(`eval`)===0){let e=Jh.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=eg(r[1]||`?`,r[2]);return Gh(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],Zh=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Qh=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,$h=mc(Xh,[Wh,e=>{let t=Zh.exec(e);if(t){if(t[3]&&t[3].indexOf(` > eval`)>-1){let e=Qh.exec(t[3]);e&&(t[1]=t[1]||`eval`,t[3]=e[1],t[4]=e[2],t[5]=``)}let e=t[3],n=t[1]||`?`;return[n,e]=eg(n,e),Gh(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),eg=(e,t)=>{let n=e.indexOf(`safari-extension`)!==-1,r=e.indexOf(`safari-web-extension`)!==-1;return n||r?[e.indexOf(`@`)===-1?`?`:e.split(`@`)[0],n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},tg=1024,ng=`Breadcrumbs`,rg=Pf(((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:ng,setup(e){t.console&&fm(og(e)),t.dom&&Sh(ag(e,t.dom)),t.xhr&&Ih(sg(e)),t.fetch&&jm(cg(e)),t.history&&kh(lg(e)),t.sentry&&e.on(`beforeSendEvent`,ig(e))}}}));function ig(e){return function(t){bu()===e&&Bp({category:`sentry.${t.type===`transaction`?`transaction`:`event`}`,event_id:t.event_id,level:t.level,message:Dl(t)},{event:t})}}function ag(e,t){return function(n){if(bu()!==e)return;let r,i,a=typeof t==`object`?t.serializeAttribute:void 0,o=typeof t==`object`&&typeof t.maxStringLength==`number`?t.maxStringLength:void 0;o&&o>tg&&(Hh&&uc.warn(`\`dom.maxStringLength\` cannot exceed ${tg}, but a value of ${o} was configured. Sentry will use ${tg} instead.`),o=tg),typeof a==`string`&&(a=[a]);try{let e=n.event,t=ug(e)?e.target:e;r=gh(t,{keyAttrs:a,maxStringLength:o}),i=zm(t)}catch{r=`<unknown>`}if(r.length===0)return;let s={category:`ui.${n.name}`,message:r};i&&(s.data={"ui.component_name":i}),Bp(s,{event:n.event,name:n.name,global:n.global})}}function og(e){return function(t){if(bu()!==e)return;let n={category:`console`,data:{arguments:t.args,logger:`console`},level:mm(t.level),message:yl(t.args,` `)};if(t.level===`assert`)if(t.args[0]===!1)n.message=`Assertion failed: ${yl(t.args.slice(1),` `)||`console.assert`}`,n.data.arguments=t.args.slice(1);else return;Bp(n,{input:t.args,level:t.level})}}function sg(e){return function(t){if(bu()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[Fh];if(!n||!r||!i)return;let{method:a,url:o,status_code:s,body:c}=i,l={method:a,url:o,status_code:s},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r},d={category:`xhr`,data:l,type:`http`,level:Tm(s)};e.emit(`beforeOutgoingRequestBreadcrumb`,d,u),Bp(d,u)}}function cg(e){return function(t){if(bu()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method===`POST`))if(t.error){let i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},a={category:`fetch`,data:t.fetchData,level:`error`,type:`http`};e.emit(`beforeOutgoingRequestBreadcrumb`,a,i),Bp(a,i)}else{let i=t.response,a={...t.fetchData,status_code:i?.status},o={input:t.args,response:i,startTimestamp:n,endTimestamp:r},s={category:`fetch`,data:a,type:`http`,level:Tm(a.status_code)};e.emit(`beforeOutgoingRequestBreadcrumb`,s,o),Bp(s,o)}}}function lg(e){return function(t){if(bu()!==e)return;let n=t.from,r=t.to,i=Wd(Bm.location.href),a=n?Wd(n):void 0,o=Wd(r);a?.path||(a=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),Bp({category:`navigation`,data:{from:n,to:r}})}}function ug(e){return!!e&&!!e.target}var dg=`EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload`.split(`,`),fg=`BrowserApiErrors`,pg=Pf(((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:fg,setupOnce(){t.setTimeout&&qc(Bm,`setTimeout`,mg),t.setInterval&&qc(Bm,`setInterval`,mg),t.requestAnimationFrame&&qc(Bm,`requestAnimationFrame`,hg),t.XMLHttpRequest&&`XMLHttpRequest`in Bm&&qc(XMLHttpRequest.prototype,`send`,gg);let e=t.eventTarget;e&&(Array.isArray(e)?e:dg).forEach(e=>_g(e,t))}}}));function mg(e){return function(...t){let n=t[0];return t[0]=Wm(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${yc(e)}`}}),e.apply(this,t)}}function hg(e){return function(t){return e.apply(this,[Wm(t,{mechanism:{data:{handler:yc(e)},handled:!1,type:`auto.browser.browserapierrors.requestAnimationFrame`}})])}}function gg(e){return function(...t){let n=this;return[`onload`,`onerror`,`onprogress`,`onreadystatechange`].forEach(e=>{e in n&&typeof n[e]==`function`&&qc(n,e,function(t){let n={mechanism:{data:{handler:yc(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=Xc(t);return r&&(n.mechanism.data.handler=yc(r)),Wm(t,n)})}),e.apply(this,t)}}function _g(e,t){let n=Bm[e]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(qc(n,`addEventListener`,function(n){return function(r,i,a){try{vg(i)&&(i.handleEvent=Wm(i.handleEvent,{mechanism:{data:{handler:yc(i),target:e},handled:!1,type:`auto.browser.browserapierrors.handleEvent`}}))}catch{}return t.unregisterOriginalCallbacks&&yg(this,r,i),n.apply(this,[r,Wm(i,{mechanism:{data:{handler:yc(i),target:e},handled:!1,type:`auto.browser.browserapierrors.addEventListener`}}),a])}}),qc(n,`removeEventListener`,function(e){return function(t,n,r){try{if(Object.prototype.hasOwnProperty.call(n,`__sentry_wrapped__`)){let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}}catch{}return e.call(this,t,n,r)}}))}function vg(e){return typeof e.handleEvent==`function`}function yg(e,t,n){e&&typeof e==`object`&&`removeEventListener`in e&&typeof e.removeEventListener==`function`&&e.removeEventListener(t,n)}var bg=Pf((e={})=>{let t=e.lifecycle??`route`;return{name:`BrowserSession`,setupOnce(){if(Bm.document===void 0){Hh&&uc.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}bf({ignoreDuration:!0}),Cf();let e=_u(),n=e.getUser();e.addScopeListener(e=>{let t=e.getUser();(n?.id!==t?.id||n?.ip_address!==t?.ip_address)&&(Cf(),n=t)}),t===`route`&&kh(({from:e,to:t})=>{e!==t&&(bf({ignoreDuration:!0}),Cf())})}}}),xg=`CultureContext`,Sg=Pf((()=>({name:xg,preprocessEvent(e){let t=Cg();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=Cg();t&&Kd(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}})));function Cg(){try{let e=Bm.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}var wg=`GlobalHandlers`,Tg=Pf(((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:wg,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(Eg(e),jg(`onerror`)),t.onunhandledrejection&&(Dg(e),jg(`onunhandledrejection`))}}}));function Eg(e){Dc(t=>{let{stackParser:n,attachStacktrace:r}=Mg();if(bu()!==e||Hm())return;let{msg:i,url:a,line:o,column:s,error:c}=t,l=Ag(ih(n,c||i,void 0,r,!1),a,o,s);l.level=`error`,yf(l,{originalException:c,mechanism:{handled:!1,type:`auto.browser.global_handlers.onerror`}})})}function Dg(e){Ac(t=>{let{stackParser:n,attachStacktrace:r}=Mg();if(bu()!==e||Hm())return;let i=Og(t),a=Bc(i)?kg(i):ih(n,i,void 0,r,!0);a.level=`error`,yf(a,{originalException:i,mechanism:{handled:!1,type:`auto.browser.global_handlers.onunhandledrejection`}})})}function Og(e){if(Bc(e))return e;try{if(`reason`in e)return e.reason;if(`detail`in e&&`reason`in e.detail)return e.detail.reason}catch{}return e}function kg(e){return{exception:{values:[{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Ag(e,t,n,r){let i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},c=s.frames=s.frames||[];return c.length===0&&c.push({colno:r,lineno:n,filename:Ng(t)??Rm(),function:`?`,in_app:!0}),e}function jg(e){Hh&&uc.log(`Global Handler attached: ${e}`)}function Mg(){return bu()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function Ng(e){if(!(!Rc(e)||e.length===0))return e.startsWith(`data:`)?`<${Gd(e,!1)}>`:e}var Pg=Pf(()=>({name:`HttpContext`,preprocessEvent(e){if(!Bm.navigator&&!Bm.location&&!Bm.document)return;let t=Gm(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}},processSegmentSpan(e){if(!Bm.navigator&&!Bm.location&&!Bm.document)return;let t=Gm();Kd(e,{"url.full":t.url||void 0,"http.request.header.user_agent":t.headers[`User-Agent`],"http.request.header.referer":t.headers.Referer})}})),Fg=`cause`,Ig=5,Lg=`LinkedErrors`,Rg=Pf(((e={})=>{let t=e.limit||Ig,n=e.key||Fg;return{name:Lg,preprocessEvent(e,r,i){im(Km,i.getOptions().stackParser,n,t,e,r)}}})),zg=/^HTML(\w*)Element$/;function Bg(e){if(typeof window<`u`&&e===window)return`[Window]`;if(typeof document<`u`&&e===document)return`[Document]`;if(zh(e)){let t=Vg(e);if(zg.test(t))return`[HTMLElement: ${gh(e)}]`}}function Vg(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function Hg(){return Ug()?(Hh&&tc(()=>{console.error(`[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/`)}),!0):!1}function Ug(){if(Bm.window===void 0)return!1;let e=Bm;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;let t=Rm();return!(Bm===Bm.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}function Wg(e){return[Jp(),Wp(),wm(),pg(),rg(),Tg(),Rg(),gm(),Pg(),Sg(),bg()]}function Gg(e={}){let t=!e.skipBrowserExtensionCheck&&Hg(),n=e.defaultIntegrations==null?Wg():e.defaultIntegrations,r={...e,enabled:t?!1:e.enabled,stackParser:hc(e.stackParser||$h),integrations:Af({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||Vh};return ll(Bg),Fp(lh,r)}var J=kn;function Kg(e){return(0,V.jsx)(Ir,{...e,defaultTheme:hs,themeId:v})}function qg(e){return function(t){return(0,V.jsx)(Kg,{styles:typeof e==`function`?n=>e({theme:n,...t}):e})}}function Jg(){return Rr}var Yg=Sa;function Xg(e){return ga(e)}function Zg(e){return U(`MuiSvgIcon`,e)}W(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var Qg=e=>{let{color:t,fontSize:n,classes:r}=e;return G({root:[`root`,t!==`inherit`&&`color${J(t)}`,`fontSize${J(n)}`]},Zg,r)},$g=q(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${J(n.color)}`],t[`fontSize${J(n.fontSize)}`]]}})(Yg(({theme:e})=>({userSelect:`none`,width:`1em`,height:`1em`,display:`inline-block`,flexShrink:0,transition:e.transitions?.create?.(`fill`,{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:`currentColor`}},{props:{fontSize:`inherit`},style:{fontSize:`inherit`}},{props:{fontSize:`small`},style:{fontSize:e.typography?.pxToRem?.(20)||`1.25rem`}},{props:{fontSize:`medium`},style:{fontSize:e.typography?.pxToRem?.(24)||`1.5rem`}},{props:{fontSize:`large`},style:{fontSize:e.typography?.pxToRem?.(35)||`2.1875rem`}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:`action`},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:`disabled`},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:`inherit`},style:{color:void 0}}]}))),e_=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiSvgIcon`}),{children:r,className:i,color:a=`inherit`,component:o=`svg`,fontSize:s=`medium`,htmlColor:c,inheritViewBox:l=!1,titleAccess:u,viewBox:d=`0 0 24 24`,...f}=n,p=B.isValidElement(r)&&r.type===`svg`,m={...n,color:a,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:l,viewBox:d,hasSvgAsChild:p},h={};return l||(h.viewBox=d),(0,V.jsxs)($g,{as:o,className:H(Qg(m).root,i),focusable:`false`,color:c,"aria-hidden":u?void 0:!0,role:u?`img`:void 0,ref:t,...h,...f,...p&&r.props,ownerState:m,children:[p?r.props.children:r,u?(0,V.jsx)(`title`,{children:u}):null]})});e_.muiName=`SvgIcon`;function Y(e,t){function n(n,r){return(0,V.jsx)(e_,{"data-testid":`${t}Icon`,ref:r,...n,children:e})}return n.muiName=e_.muiName,B.memo(B.forwardRef(n))}var t_=Ai,n_=ji,r_=Mi,i_=Ni,a_=oi,o_=Ri,s_=zi,c_=Bi,l_=Vi;function u_(e,t){if(!e)return t;if(typeof e==`function`||typeof t==`function`)return n=>{let r=typeof t==`function`?t(n):t,i=typeof e==`function`?e({...n,...r}):e,a=H(n?.className,r?.className,i?.className);return{...r,...i,...!!a&&{className:a},...r?.style&&i?.style&&{style:{...r.style,...i.style}},...r?.sx&&i?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(i.sx)?i.sx:[i.sx]]}}};let n=t,r=H(n?.className,e?.className);return{...t,...e,...!!r&&{className:r},...n?.style&&e?.style&&{style:{...n.style,...e.style}},...n?.sx&&e?.sx&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function d_(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function f_(e,t){return f_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f_(e,t)}function p_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,f_(e,t)}var m_={disabled:!1},h_=B.createContext(null),g_=function(e){return e.scrollTop},__=c(m()),v_=`unmounted`,y_=`exited`,b_=`entering`,x_=`entered`,S_=`exiting`,C_=function(e){p_(t,e);function t(t,n){var r=e.call(this,t,n)||this,i=n,a=i&&!i.isMounting?t.enter:t.appear,o;return r.appearStatus=null,t.in?a?(o=y_,r.appearStatus=b_):o=x_:o=t.unmountOnExit||t.mountOnEnter?v_:y_,r.state={status:o},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===`unmounted`?{status:y_}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==`entering`&&n!==`entered`&&(t=b_):(n===`entering`||n===`entered`)&&(t=S_)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=n=r=e,n,r;return e!=null&&typeof e!=`number`&&(t=e.exit,n=e.enter,r=e.appear===void 0?n:e.appear),{exit:t,enter:n,appear:r}},n.updateStatus=function(e,t){if(e===void 0&&(e=!1),t!==null)if(this.cancelNextCallback(),t===`entering`){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:__.default.findDOMNode(this);n&&g_(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===`exited`&&this.setState({status:v_})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[__.default.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;if(!e&&!n||m_.disabled){this.safeSetState({status:x_},function(){t.props.onEntered(a)});return}this.props.onEnter(a,o),this.safeSetState({status:b_},function(){t.props.onEntering(a,o),t.onTransitionEnd(c,function(){t.safeSetState({status:x_},function(){t.props.onEntered(a,o)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:__.default.findDOMNode(this);if(!t||m_.disabled){this.safeSetState({status:y_},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:S_},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:y_},function(){e.props.onExited(r)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:__.default.findDOMNode(this),r=e==null&&!this.props.addEndListener;if(!n||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}e!=null&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===`unmounted`)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=d_(t,[`children`,`in`,`mountOnEnter`,`unmountOnExit`,`appear`,`enter`,`exit`,`timeout`,`addEndListener`,`onEnter`,`onEntering`,`onEntered`,`onExit`,`onExiting`,`onExited`,`nodeRef`]);return B.createElement(h_.Provider,{value:null},typeof n==`function`?n(e,r):B.cloneElement(B.Children.only(n),r))},t}(B.Component);C_.contextType=h_,C_.propTypes={};function w_(){}C_.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:w_,onEntering:w_,onEntered:w_,onExit:w_,onExiting:w_,onExited:w_},C_.UNMOUNTED=v_,C_.EXITED=y_,C_.ENTERING=b_,C_.ENTERED=x_,C_.EXITING=S_;function T_(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function E_(e,t){var n=function(e){return t&&(0,B.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&B.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function D_(e,t){e||={},t||={};function n(n){return n in t?t[n]:e[n]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var o,s={};for(var c in t){if(r[c])for(o=0;o<r[c].length;o++){var l=r[c][o];s[r[c][o]]=n(l)}s[c]=n(c)}for(o=0;o<i.length;o++)s[i[o]]=n(i[o]);return s}function O_(e,t,n){return n[t]==null?e.props[t]:n[t]}function k_(e,t){return E_(e.children,function(n){return(0,B.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:O_(n,`appear`,e),enter:O_(n,`enter`,e),exit:O_(n,`exit`,e)})})}function A_(e,t,n){var r=E_(e.children),i=D_(t,r);return Object.keys(i).forEach(function(a){var o=i[a];if((0,B.isValidElement)(o)){var s=a in t,c=a in r,l=t[a],u=(0,B.isValidElement)(l)&&!l.props.in;c&&(!s||u)?i[a]=(0,B.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:O_(o,`exit`,e),enter:O_(o,`enter`,e)}):!c&&s&&!u?i[a]=(0,B.cloneElement)(o,{in:!1}):c&&s&&(0,B.isValidElement)(l)&&(i[a]=(0,B.cloneElement)(o,{onExited:n.bind(null,o),in:l.props.in,exit:O_(o,`exit`,e),enter:O_(o,`enter`,e)}))}}),i}var j_=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},M_={component:`div`,childFactory:function(e){return e}},N_=function(e){p_(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.state={contextValue:{isMounting:!0},handleExited:r.handleExited.bind(T_(r)),firstRender:!0},r}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?k_(e,r):A_(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=E_(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=y({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=d_(e,[`component`,`childFactory`]),i=this.state.contextValue,a=j_(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,t===null?B.createElement(h_.Provider,{value:i},a):B.createElement(h_.Provider,{value:i},B.createElement(t,r,a))},t}(B.Component);N_.propTypes={},N_.defaultProps=M_;var P_=e=>e.scrollTop;function F_(e,t){let{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n==`number`?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r==`object`?r[t.mode]:r),delay:i.transitionDelay}}function I_(e){return U(`MuiPaper`,e)}W(`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`.split(`.`));var L_=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return G({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},I_,i)},R_=q(`div`,{name:`MuiPaper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant===`elevation`&&t[`elevation${n.elevation}`]]}})(Yg(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create(`box-shadow`),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:`outlined`},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:`elevation`},style:{boxShadow:`var(--Paper-shadow)`,backgroundImage:`var(--Paper-overlay)`}}]}))),z_=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiPaper`}),r=gs(),{className:i,component:a=`div`,elevation:o=1,square:s=!1,variant:c=`elevation`,...l}=n,u={...n,component:a,elevation:o,square:s,variant:c};return(0,V.jsx)(R_,{as:a,ownerState:u,className:H(L_(u).root,i),ref:t,...l,style:{...c===`elevation`&&{"--Paper-shadow":(r.vars||r).shadows[o],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[o]},...!r.vars&&r.palette.mode===`dark`&&{"--Paper-overlay":`linear-gradient(${xi(`#fff`,Zo(o))}, ${xi(`#fff`,Zo(o))})`}},...l.style}})});function B_(e,t){let{className:n,elementType:r,ownerState:i,externalForwardedProps:a,internalForwardedProps:o,shouldForwardComponentProp:s=!1,...c}=t,{component:l,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=u[e]||r,m=na(d[e],i),{props:{component:h,...g},internalRef:_}=ta({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=Vi(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,Qi(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}var V_=class e{static create(){return new e}static use(){let t=Ui(e.create).current,[n,r]=B.useState(!1);return t.shouldMount=n,t.setShouldMount=r,B.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=U_(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}};function H_(){return V_.use()}function U_(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function W_(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=B.useState(!1),f=H(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},m=H(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),B.useEffect(()=>{if(!s&&c!=null){let e=setTimeout(c,l);return()=>{clearTimeout(e)}}},[c,s,l]),(0,V.jsx)(`span`,{className:f,style:p,children:(0,V.jsx)(`span`,{className:m})})}var G_=W(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),K_=550,q_=Nt`
|
|
60
|
+
0% {
|
|
61
|
+
transform: scale(0);
|
|
62
|
+
opacity: 0.1;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
100% {
|
|
66
|
+
transform: scale(1);
|
|
67
|
+
opacity: 0.3;
|
|
68
|
+
}
|
|
69
|
+
`,J_=Nt`
|
|
70
|
+
0% {
|
|
71
|
+
opacity: 1;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
100% {
|
|
75
|
+
opacity: 0;
|
|
76
|
+
}
|
|
77
|
+
`,Y_=Nt`
|
|
78
|
+
0% {
|
|
79
|
+
transform: scale(1);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
50% {
|
|
83
|
+
transform: scale(0.92);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
100% {
|
|
87
|
+
transform: scale(1);
|
|
88
|
+
}
|
|
89
|
+
`,X_=q(`span`,{name:`MuiTouchRipple`,slot:`Root`})({overflow:`hidden`,pointerEvents:`none`,position:`absolute`,zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:`inherit`}),Z_=q(W_,{name:`MuiTouchRipple`,slot:`Ripple`})`
|
|
90
|
+
opacity: 0;
|
|
91
|
+
position: absolute;
|
|
92
|
+
|
|
93
|
+
&.${G_.rippleVisible} {
|
|
94
|
+
opacity: 0.3;
|
|
95
|
+
transform: scale(1);
|
|
96
|
+
animation-name: ${q_};
|
|
97
|
+
animation-duration: ${K_}ms;
|
|
98
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&.${G_.ripplePulsate} {
|
|
102
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
& .${G_.child} {
|
|
106
|
+
opacity: 1;
|
|
107
|
+
display: block;
|
|
108
|
+
width: 100%;
|
|
109
|
+
height: 100%;
|
|
110
|
+
border-radius: 50%;
|
|
111
|
+
background-color: currentColor;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
& .${G_.childLeaving} {
|
|
115
|
+
opacity: 0;
|
|
116
|
+
animation-name: ${J_};
|
|
117
|
+
animation-duration: ${K_}ms;
|
|
118
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
& .${G_.childPulsate} {
|
|
122
|
+
position: absolute;
|
|
123
|
+
/* @noflip */
|
|
124
|
+
left: 0px;
|
|
125
|
+
top: 0;
|
|
126
|
+
animation-name: ${Y_};
|
|
127
|
+
animation-duration: 2500ms;
|
|
128
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
129
|
+
animation-iteration-count: infinite;
|
|
130
|
+
animation-delay: 200ms;
|
|
131
|
+
}
|
|
132
|
+
`,Q_=B.forwardRef(function(e,t){let{center:n=!1,classes:r={},className:i,...a}=Xg({props:e,name:`MuiTouchRipple`}),[o,s]=B.useState([]),c=B.useRef(0),l=B.useRef(null);B.useEffect(()=>{l.current&&=(l.current(),null)},[o]);let u=B.useRef(!1),d=qi(),f=B.useRef(null),p=B.useRef(null),m=B.useCallback(e=>{let{pulsate:t,rippleX:n,rippleY:i,rippleSize:a,cb:o}=e;s(e=>[...e,(0,V.jsx)(Z_,{classes:{ripple:H(r.ripple,G_.ripple),rippleVisible:H(r.rippleVisible,G_.rippleVisible),ripplePulsate:H(r.ripplePulsate,G_.ripplePulsate),child:H(r.child,G_.child),childLeaving:H(r.childLeaving,G_.childLeaving),childPulsate:H(r.childPulsate,G_.childPulsate)},timeout:K_,pulsate:t,rippleX:n,rippleY:i,rippleSize:a},c.current)]),c.current+=1,l.current=o},[r]),h=B.useCallback((e={},t={},r=()=>{})=>{let{pulsate:i=!1,center:a=n||t.pulsate,fakeElement:o=!1}=t;if(e?.type===`mousedown`&&u.current){u.current=!1;return}e?.type===`touchstart`&&(u.current=!0);let s=o?null:p.current,c=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0},l,h,g;if(a||e===void 0||e.clientX===0&&e.clientY===0||!e.clientX&&!e.touches)l=Math.round(c.width/2),h=Math.round(c.height/2);else{let{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;l=Math.round(t-c.left),h=Math.round(n-c.top)}if(a)g=Math.sqrt((2*c.width**2+c.height**2)/3),g%2==0&&(g+=1);else{let e=Math.max(Math.abs((s?s.clientWidth:0)-l),l)*2+2,t=Math.max(Math.abs((s?s.clientHeight:0)-h),h)*2+2;g=Math.sqrt(e**2+t**2)}e?.touches?f.current===null&&(f.current=()=>{m({pulsate:i,rippleX:l,rippleY:h,rippleSize:g,cb:r})},d.start(80,()=>{f.current&&=(f.current(),null)})):m({pulsate:i,rippleX:l,rippleY:h,rippleSize:g,cb:r})},[n,m,d]),g=B.useCallback(()=>{h({},{pulsate:!0})},[h]),_=B.useCallback((e,t)=>{if(d.clear(),e?.type===`touchend`&&f.current){f.current(),f.current=null,d.start(0,()=>{_(e,t)});return}f.current=null,s(e=>e.length>0?e.slice(1):e),l.current=t},[d]);return B.useImperativeHandle(t,()=>({pulsate:g,start:h,stop:_}),[g,h,_]),(0,V.jsx)(X_,{className:H(G_.root,r.root,i),ref:p,...a,children:(0,V.jsx)(N_,{component:null,exit:!0,children:o})})});function $_(e){return U(`MuiButtonBase`,e)}var ev=W(`MuiButtonBase`,[`root`,`disabled`,`focusVisible`]),tv=e=>{let{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=G({root:[`root`,t&&`disabled`,n&&`focusVisible`]},$_,i);return n&&r&&(a.root+=` ${r}`),a},nv=q(`button`,{name:`MuiButtonBase`,slot:`Root`,overridesResolver:(e,t)=>t.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`},[`&.${ev.disabled}`]:{pointerEvents:`none`,cursor:`default`},"@media print":{colorAdjust:`exact`}}),rv=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiButtonBase`}),{action:r,centerRipple:i=!1,children:a,className:o,component:s=`button`,disabled:c=!1,disableRipple:l=!1,disableTouchRipple:u=!1,focusRipple:d=!1,focusVisibleClassName:f,LinkComponent:p=`a`,onBlur:m,onClick:h,onContextMenu:g,onDragLeave:_,onFocus:v,onFocusVisible:y,onKeyDown:b,onKeyUp:x,onMouseDown:S,onMouseLeave:C,onMouseUp:w,onTouchEnd:T,onTouchMove:E,onTouchStart:D,tabIndex:O=0,TouchRippleProps:k,touchRippleRef:A,type:j,...M}=n,N=B.useRef(null),P=H_(),F=l_(P.ref,A),[I,L]=B.useState(!1);c&&I&&L(!1),B.useImperativeHandle(r,()=>({focusVisible:()=>{L(!0),N.current.focus()}}),[]);let ee=P.shouldMount&&!l&&!c;B.useEffect(()=>{I&&d&&!l&&P.pulsate()},[l,d,I,P]);let R=iv(P,`start`,S,u),te=iv(P,`stop`,g,u),ne=iv(P,`stop`,_,u),re=iv(P,`stop`,w,u),z=iv(P,`stop`,e=>{I&&e.preventDefault(),C&&C(e)},u),ie=iv(P,`start`,D,u),ae=iv(P,`stop`,T,u),oe=iv(P,`stop`,E,u),se=iv(P,`stop`,e=>{Ji(e.target)||L(!1),m&&m(e)},!1),ce=c_(e=>{N.current||=e.currentTarget,Ji(e.target)&&(L(!0),y&&y(e)),v&&v(e)}),le=()=>{let e=N.current;return s&&s!==`button`&&!(e.tagName===`A`&&e.href)},ue=c_(e=>{d&&!e.repeat&&I&&e.key===` `&&P.stop(e,()=>{P.start(e)}),e.target===e.currentTarget&&le()&&e.key===` `&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&le()&&e.key===`Enter`&&!c&&(e.preventDefault(),h&&h(e))}),de=c_(e=>{d&&e.key===` `&&I&&!e.defaultPrevented&&P.stop(e,()=>{P.pulsate(e)}),x&&x(e),h&&e.target===e.currentTarget&&le()&&e.key===` `&&!e.defaultPrevented&&h(e)}),fe=s;fe===`button`&&(M.href||M.to)&&(fe=p);let pe={};fe===`button`?(pe.type=j===void 0?`button`:j,pe.disabled=c):(!M.href&&!M.to&&(pe.role=`button`),c&&(pe[`aria-disabled`]=c));let me=l_(t,N),he={...n,centerRipple:i,component:s,disabled:c,disableRipple:l,disableTouchRipple:u,focusRipple:d,tabIndex:O,focusVisible:I},ge=tv(he);return(0,V.jsxs)(nv,{as:fe,className:H(ge.root,o),ownerState:he,onBlur:se,onClick:h,onContextMenu:te,onFocus:ce,onKeyDown:ue,onKeyUp:de,onMouseDown:R,onMouseLeave:z,onMouseUp:re,onDragLeave:ne,onTouchEnd:ae,onTouchMove:oe,onTouchStart:ie,ref:me,tabIndex:c?-1:O,type:j,...pe,...M,children:[a,ee?(0,V.jsx)(Q_,{ref:F,center:i,...k}):null]})});function iv(e,t,n,r=!1){return c_(i=>(n&&n(i),r||e[t](i),!0))}function av(e){return typeof e.main==`string`}function ov(e,t=[]){if(!av(e))return!1;for(let n of t)if(!e.hasOwnProperty(n)||typeof e[n]!=`string`)return!1;return!0}function sv(e=[]){return([,t])=>t&&ov(t,e)}function cv(e){return U(`MuiAlert`,e)}var lv=W(`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 uv(e){return U(`MuiCircularProgress`,e)}W(`MuiCircularProgress`,[`root`,`determinate`,`indeterminate`,`colorPrimary`,`colorSecondary`,`svg`,`circle`,`circleDeterminate`,`circleIndeterminate`,`circleDisableShrink`]);var dv=44,fv=Nt`
|
|
133
|
+
0% {
|
|
134
|
+
transform: rotate(0deg);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
100% {
|
|
138
|
+
transform: rotate(360deg);
|
|
139
|
+
}
|
|
140
|
+
`,pv=Nt`
|
|
141
|
+
0% {
|
|
142
|
+
stroke-dasharray: 1px, 200px;
|
|
143
|
+
stroke-dashoffset: 0;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
50% {
|
|
147
|
+
stroke-dasharray: 100px, 200px;
|
|
148
|
+
stroke-dashoffset: -15px;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
100% {
|
|
152
|
+
stroke-dasharray: 1px, 200px;
|
|
153
|
+
stroke-dashoffset: -126px;
|
|
154
|
+
}
|
|
155
|
+
`,mv=typeof fv==`string`?null:Mt`
|
|
156
|
+
animation: ${fv} 1.4s linear infinite;
|
|
157
|
+
`,hv=typeof pv==`string`?null:Mt`
|
|
158
|
+
animation: ${pv} 1.4s ease-in-out infinite;
|
|
159
|
+
`,gv=e=>{let{classes:t,variant:n,color:r,disableShrink:i}=e;return G({root:[`root`,n,`color${J(r)}`],svg:[`svg`],circle:[`circle`,`circle${J(n)}`,i&&`circleDisableShrink`]},uv,t)},_v=q(`span`,{name:`MuiCircularProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`color${J(n.color)}`]]}})(Yg(({theme:e})=>({display:`inline-block`,variants:[{props:{variant:`determinate`},style:{transition:e.transitions.create(`transform`)}},{props:{variant:`indeterminate`},style:mv||{animation:`${fv} 1.4s linear infinite`}},...Object.entries(e.palette).filter(sv()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),vv=q(`svg`,{name:`MuiCircularProgress`,slot:`Svg`,overridesResolver:(e,t)=>t.svg})({display:`block`}),yv=q(`circle`,{name:`MuiCircularProgress`,slot:`Circle`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.circle,t[`circle${J(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Yg(({theme:e})=>({stroke:`currentColor`,variants:[{props:{variant:`determinate`},style:{transition:e.transitions.create(`stroke-dashoffset`)}},{props:{variant:`indeterminate`},style:{strokeDasharray:`80px, 200px`,strokeDashoffset:0}},{props:({ownerState:e})=>e.variant===`indeterminate`&&!e.disableShrink,style:hv||{animation:`${pv} 1.4s ease-in-out infinite`}}]}))),bv=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiCircularProgress`}),{className:r,color:i=`primary`,disableShrink:a=!1,size:o=40,style:s,thickness:c=3.6,value:l=0,variant:u=`indeterminate`,...d}=n,f={...n,color:i,disableShrink:a,size:o,thickness:c,value:l,variant:u},p=gv(f),m={},h={},g={};if(u===`determinate`){let e=2*Math.PI*((dv-c)/2);m.strokeDasharray=e.toFixed(3),g[`aria-valuenow`]=Math.round(l),m.strokeDashoffset=`${((100-l)/100*e).toFixed(3)}px`,h.transform=`rotate(-90deg)`}return(0,V.jsx)(_v,{className:H(p.root,r),style:{width:o,height:o,...h,...s},ownerState:f,ref:t,role:`progressbar`,...g,...d,children:(0,V.jsx)(vv,{className:p.svg,ownerState:f,viewBox:`${dv/2} ${dv/2} ${dv} ${dv}`,children:(0,V.jsx)(yv,{className:p.circle,style:m,ownerState:f,cx:dv,cy:dv,r:(dv-c)/2,fill:`none`,strokeWidth:c})})})});function xv(e){return U(`MuiIconButton`,e)}var Sv=W(`MuiIconButton`,[`root`,`disabled`,`colorInherit`,`colorPrimary`,`colorSecondary`,`colorError`,`colorInfo`,`colorSuccess`,`colorWarning`,`edgeStart`,`edgeEnd`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`loading`,`loadingIndicator`,`loadingWrapper`]),Cv=e=>{let{classes:t,disabled:n,color:r,edge:i,size:a,loading:o}=e;return G({root:[`root`,o&&`loading`,n&&`disabled`,r!=="default"&&`color${J(r)}`,i&&`edge${J(i)}`,`size${J(a)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},xv,t)},wv=q(rv,{name:`MuiIconButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${J(n.color)}`],n.edge&&t[`edge${J(n.edge)}`],t[`size${J(n.size)}`]]}})(Yg(({theme:e})=>({textAlign:`center`,flex:`0 0 auto`,fontSize:e.typography.pxToRem(24),padding:8,borderRadius:`50%`,color:(e.vars||e).palette.action.active,transition:e.transitions.create(`background-color`,{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:xi(e.palette.action.active,e.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}}]})),Yg(({theme:e})=>({variants:[{props:{color:`inherit`},style:{color:`inherit`}},...Object.entries(e.palette).filter(sv()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(sv()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xi((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:`small`},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:`large`},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${Sv.disabled}`]:{backgroundColor:`transparent`,color:(e.vars||e).palette.action.disabled},[`&.${Sv.loading}`]:{color:`transparent`}}))),Tv=q(`span`,{name:`MuiIconButton`,slot:`LoadingIndicator`,overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:`flex`}}]})),Ev=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiIconButton`}),{edge:r=!1,children:i,className:a,color:o=`default`,disabled:s=!1,disableFocusRipple:c=!1,size:l=`medium`,id:u,loading:d=null,loadingIndicator:f,...p}=n,m=o_(u),h=f??(0,V.jsx)(bv,{"aria-labelledby":m,color:`inherit`,size:16}),g={...n,edge:r,color:o,disabled:s,disableFocusRipple:c,loading:d,loadingIndicator:h,size:l},_=Cv(g);return(0,V.jsxs)(wv,{id:d?m:u,className:H(_.root,a),centerRipple:!0,focusRipple:!c,disabled:s||d,ref:t,...p,ownerState:g,children:[typeof d==`boolean`&&(0,V.jsx)(`span`,{className:_.loadingWrapper,style:{display:`contents`},children:(0,V.jsx)(Tv,{className:_.loadingIndicator,ownerState:g,children:d&&h})}),i]})}),Dv=Y((0,V.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`}),`SuccessOutlined`),Ov=Y((0,V.jsx)(`path`,{d:`M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z`}),`ReportProblemOutlined`),kv=Y((0,V.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`}),`ErrorOutline`),Av=Y((0,V.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`}),`InfoOutlined`),jv=Y((0,V.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`}),`Close`),Mv=e=>{let{variant:t,color:n,severity:r,classes:i}=e;return G({root:[`root`,`color${J(n||r)}`,`${t}${J(n||r)}`,`${t}`],icon:[`icon`],message:[`message`],action:[`action`]},cv,i)},Nv=q(z_,{name:`MuiAlert`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${J(n.color||n.severity)}`]]}})(Yg(({theme:e})=>{let t=e.palette.mode===`light`?Ci:Ti,n=e.palette.mode===`light`?Ti:Ci;return{...e.typography.body2,backgroundColor:`transparent`,display:`flex`,padding:`6px 16px`,variants:[...Object.entries(e.palette).filter(sv([`light`])).map(([r])=>({props:{colorSeverity:r,variant:`standard`},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${lv.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(sv([`light`])).map(([n])=>({props:{colorSeverity:n,variant:`outlined`},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${lv.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(sv([`dark`])).map(([t])=>({props:{colorSeverity:t,variant:`filled`},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:e.palette.mode===`dark`?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)}}}))]}})),Pv=q(`div`,{name:`MuiAlert`,slot:`Icon`,overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:`7px 0`,display:`flex`,fontSize:22,opacity:.9}),Fv=q(`div`,{name:`MuiAlert`,slot:`Message`,overridesResolver:(e,t)=>t.message})({padding:`8px 0`,minWidth:0,overflow:`auto`}),Iv=q(`div`,{name:`MuiAlert`,slot:`Action`,overridesResolver:(e,t)=>t.action})({display:`flex`,alignItems:`flex-start`,padding:`4px 0 0 16px`,marginLeft:`auto`,marginRight:-8}),Lv={success:(0,V.jsx)(Dv,{fontSize:`inherit`}),warning:(0,V.jsx)(Ov,{fontSize:`inherit`}),error:(0,V.jsx)(kv,{fontSize:`inherit`}),info:(0,V.jsx)(Av,{fontSize:`inherit`})},Rv=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiAlert`}),{action:r,children:i,className:a,closeText:o=`Close`,color:s,components:c={},componentsProps:l={},icon:u,iconMapping:d=Lv,onClose:f,role:p=`alert`,severity:m=`success`,slotProps:h={},slots:g={},variant:_=`standard`,...v}=n,y={...n,color:s,severity:m,variant:_,colorSeverity:s||m},b=Mv(y),x={slots:{closeButton:c.CloseButton,closeIcon:c.CloseIcon,...g},slotProps:{...l,...h}},[S,C]=B_(`root`,{ref:t,shouldForwardComponentProp:!0,className:H(b.root,a),elementType:Nv,externalForwardedProps:{...x,...v},ownerState:y,additionalProps:{role:p,elevation:0}}),[w,T]=B_(`icon`,{className:b.icon,elementType:Pv,externalForwardedProps:x,ownerState:y}),[E,D]=B_(`message`,{className:b.message,elementType:Fv,externalForwardedProps:x,ownerState:y}),[O,k]=B_(`action`,{className:b.action,elementType:Iv,externalForwardedProps:x,ownerState:y}),[A,j]=B_(`closeButton`,{elementType:Ev,externalForwardedProps:x,ownerState:y}),[M,N]=B_(`closeIcon`,{elementType:jv,externalForwardedProps:x,ownerState:y});return(0,V.jsxs)(S,{...C,children:[u===!1?null:(0,V.jsx)(w,{...T,children:u||d[m]||Lv[m]}),(0,V.jsx)(E,{...D,children:i}),r==null?null:(0,V.jsx)(O,{...k,children:r}),r==null&&f?(0,V.jsx)(O,{...k,children:(0,V.jsx)(A,{size:`small`,"aria-label":o,title:o,color:`inherit`,onClick:f,...j,children:(0,V.jsx)(M,{fontSize:`small`,...N})})}):null]})});function zv(e){return U(`MuiTypography`,e)}var Bv=W(`MuiTypography`,[`root`,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`subtitle1`,`subtitle2`,`body1`,`body2`,`inherit`,`button`,`caption`,`overline`,`alignLeft`,`alignRight`,`alignCenter`,`alignJustify`,`noWrap`,`gutterBottom`,`paragraph`]),Vv={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Hv=Jg(),Uv=e=>{let{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:a,classes:o}=e;return G({root:[`root`,a,e.align!==`inherit`&&`align${J(t)}`,n&&`gutterBottom`,r&&`noWrap`,i&&`paragraph`]},zv,o)},Wv=q(`span`,{name:`MuiTypography`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!==`inherit`&&t[`align${J(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Yg(({theme:e})=>({margin:0,variants:[{props:{variant:`inherit`},style:{font:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},...Object.entries(e.typography).filter(([e,t])=>e!==`inherit`&&t&&typeof t==`object`).map(([e,t])=>({props:{variant:e},style:t})),...Object.entries(e.palette).filter(sv()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,e])=>typeof e==`string`).map(([t])=>({props:{color:`text${J(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:e})=>e.align!==`inherit`,style:{textAlign:`var(--Typography-textAlign)`}},{props:({ownerState:e})=>e.noWrap,style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:`0.35em`}},{props:({ownerState:e})=>e.paragraph,style:{marginBottom:16}}]}))),Gv={h1:`h1`,h2:`h2`,h3:`h3`,h4:`h4`,h5:`h5`,h6:`h6`,subtitle1:`h6`,subtitle2:`h6`,body1:`p`,body2:`p`,inherit:`p`},Kv=B.forwardRef(function(e,t){let{color:n,...r}=Xg({props:e,name:`MuiTypography`}),i=!Vv[n],a=Hv({...r,...i&&{color:n}}),{align:o=`inherit`,className:s,component:c,gutterBottom:l=!1,noWrap:u=!1,paragraph:d=!1,variant:f=`body1`,variantMapping:p=Gv,...m}=a,h={...a,align:o,color:n,className:s,component:c,gutterBottom:l,noWrap:u,paragraph:d,variant:f,variantMapping:p};return(0,V.jsx)(Wv,{as:c||(d?`p`:p[f]||Gv[f])||`span`,ref:t,className:H(Uv(h).root,s),...m,ownerState:h,style:{...o!==`inherit`&&{"--Typography-textAlign":o},...m.style}})});W(`MuiAppBar`,[`root`,`positionFixed`,`positionAbsolute`,`positionSticky`,`positionStatic`,`positionRelative`,`colorDefault`,`colorPrimary`,`colorSecondary`,`colorInherit`,`colorTransparent`,`colorError`,`colorInfo`,`colorSuccess`,`colorWarning`]);var qv=(e,t)=>e?`${e?.replace(`)`,``)}, ${t})`:t;q(z_,{name:`MuiAppBar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`position${J(n.position)}`],t[`color${J(n.color)}`]]}})(Yg(({theme:e})=>({display:`flex`,flexDirection:`column`,width:`100%`,boxSizing:`border-box`,flexShrink:0,variants:[{props:{position:`fixed`},style:{position:`fixed`,zIndex:(e.vars||e).zIndex.appBar,top:0,left:`auto`,right:0,"@media print":{position:`absolute`}}},{props:{position:`absolute`},style:{position:`absolute`,zIndex:(e.vars||e).zIndex.appBar,top:0,left:`auto`,right:0}},{props:{position:`sticky`},style:{position:`sticky`,zIndex:(e.vars||e).zIndex.appBar,top:0,left:`auto`,right:0}},{props:{position:`static`},style:{position:`static`}},{props:{position:`relative`},style:{position:`relative`}},{props:{color:`inherit`},style:{"--AppBar-color":`inherit`}},{props:{color:`default`},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles(`dark`,{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(sv([`contrastText`])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:e=>e.enableColorOnDark===!0&&![`inherit`,`transparent`].includes(e.color),style:{backgroundColor:`var(--AppBar-background)`,color:`var(--AppBar-color)`}},{props:e=>e.enableColorOnDark===!1&&![`inherit`,`transparent`].includes(e.color),style:{backgroundColor:`var(--AppBar-background)`,color:`var(--AppBar-color)`,...e.applyStyles(`dark`,{backgroundColor:e.vars?qv(e.vars.palette.AppBar.darkBg,`var(--AppBar-background)`):null,color:e.vars?qv(e.vars.palette.AppBar.darkColor,`var(--AppBar-color)`):null})}},{props:{color:`transparent`},style:{"--AppBar-background":`transparent`,"--AppBar-color":`inherit`,backgroundColor:`var(--AppBar-background)`,color:`var(--AppBar-color)`,...e.applyStyles(`dark`,{backgroundImage:`none`})}}]})));var Jv=`bottom`,Yv=`right`,Xv=`left`,Zv=`auto`,Qv=[`top`,Jv,Yv,Xv],$v=`start`,ey=`clippingParents`,ty=`viewport`,ny=`popper`,ry=`reference`,iy=Qv.reduce(function(e,t){return e.concat([t+`-`+$v,t+`-end`])},[]),ay=[].concat(Qv,[Zv]).reduce(function(e,t){return e.concat([t,t+`-`+$v,t+`-end`])},[]),oy=[`beforeRead`,`read`,`afterRead`,`beforeMain`,`main`,`afterMain`,`beforeWrite`,`write`,`afterWrite`];function sy(e){return e?(e.nodeName||``).toLowerCase():null}function cy(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ly(e){return e instanceof cy(e).Element||e instanceof Element}function uy(e){return e instanceof cy(e).HTMLElement||e instanceof HTMLElement}function dy(e){return typeof ShadowRoot>`u`?!1:e instanceof cy(e).ShadowRoot||e instanceof ShadowRoot}function fy(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!uy(i)||!sy(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function py(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});!uy(r)||!sy(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var my={name:`applyStyles`,enabled:!0,phase:`write`,fn:fy,effect:py,requires:[`computeStyles`]};function hy(e){return e.split(`-`)[0]}var gy=Math.max,_y=Math.min,vy=Math.round;function yy(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function by(){return!/^((?!chrome|android).)*safari/i.test(yy())}function xy(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&uy(e)&&(i=e.offsetWidth>0&&vy(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&vy(r.height)/e.offsetHeight||1);var o=(ly(e)?cy(e):window).visualViewport,s=!by()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function Sy(e){var t=xy(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Cy(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&dy(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function wy(e){return cy(e).getComputedStyle(e)}function Ty(e){return[`table`,`td`,`th`].indexOf(sy(e))>=0}function Ey(e){return((ly(e)?e.ownerDocument:e.document)||window.document).documentElement}function Dy(e){return sy(e)===`html`?e:e.assignedSlot||e.parentNode||(dy(e)?e.host:null)||Ey(e)}function Oy(e){return!uy(e)||wy(e).position===`fixed`?null:e.offsetParent}function ky(e){var t=/firefox/i.test(yy());if(/Trident/i.test(yy())&&uy(e)&&wy(e).position===`fixed`)return null;var n=Dy(e);for(dy(n)&&(n=n.host);uy(n)&&[`html`,`body`].indexOf(sy(n))<0;){var r=wy(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function Ay(e){for(var t=cy(e),n=Oy(e);n&&Ty(n)&&wy(n).position===`static`;)n=Oy(n);return n&&(sy(n)===`html`||sy(n)===`body`&&wy(n).position===`static`)?t:n||ky(e)||t}function jy(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function My(e,t,n){return gy(e,_y(t,n))}function Ny(e,t,n){var r=My(e,t,n);return r>n?n:r}function Py(){return{top:0,right:0,bottom:0,left:0}}function Fy(e){return Object.assign({},Py(),e)}function Iy(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Ly=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,Fy(typeof e==`number`?Iy(e,Qv):e)};function Ry(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=hy(n.placement),c=jy(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(!(!a||!o)){var u=Ly(i.padding,n),d=Sy(a),f=c===`y`?`top`:Xv,p=c===`y`?Jv:Yv,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=Ay(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=My(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function zy(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||Cy(t.elements.popper,r)&&(t.elements.arrow=r))}var By={name:`arrow`,enabled:!0,phase:`main`,fn:Ry,effect:zy,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function Vy(e){return e.split(`-`)[1]}var Hy={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function Uy(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:vy(n*i)/i||0,y:vy(r*i)/i||0}}function Wy(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=Xv,b=`top`,x=window;if(l){var S=Ay(n),C=`clientHeight`,w=`clientWidth`;if(S===cy(n)&&(S=Ey(n),wy(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=Jv;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=Yv;var E=d&&S===x&&x.visualViewport?x.visualViewport.width:S[w];p-=E-r.width,p*=c?1:-1}}var D=Object.assign({position:s},l&&Hy),O=u===!0?Uy({x:p,y:h},cy(n)):{x:p,y:h};if(p=O.x,h=O.y,c){var k;return Object.assign({},D,(k={},k[b]=v?`0`:``,k[y]=_?`0`:``,k.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,k))}return Object.assign({},D,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function Gy(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,c=s===void 0?!0:s,l={placement:hy(t.placement),variation:Vy(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Wy(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Wy(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Ky={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:Gy,data:{}},qy={passive:!0};function Jy(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,s=o===void 0?!0:o,c=cy(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,qy)}),s&&c.addEventListener(`resize`,n.update,qy),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,qy)}),s&&c.removeEventListener(`resize`,n.update,qy)}}var Yy={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:Jy,data:{}},Xy={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Zy(e){return e.replace(/left|right|bottom|top/g,function(e){return Xy[e]})}var Qy={start:`end`,end:`start`};function $y(e){return e.replace(/start|end/g,function(e){return Qy[e]})}function eb(e){var t=cy(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function tb(e){return xy(Ey(e)).left+eb(e).scrollLeft}function nb(e,t){var n=cy(e),r=Ey(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=by();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+tb(e),y:c}}function rb(e){var t=Ey(e),n=eb(e),r=e.ownerDocument?.body,i=gy(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=gy(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+tb(e),s=-n.scrollTop;return wy(r||t).direction===`rtl`&&(o+=gy(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function ib(e){var t=wy(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function ab(e){return[`html`,`body`,`#document`].indexOf(sy(e))>=0?e.ownerDocument.body:uy(e)&&ib(e)?e:ab(Dy(e))}function ob(e,t){t===void 0&&(t=[]);var n=ab(e),r=n===e.ownerDocument?.body,i=cy(n),a=r?[i].concat(i.visualViewport||[],ib(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(ob(Dy(a)))}function sb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function cb(e,t){var n=xy(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function lb(e,t,n){return t===`viewport`?sb(nb(e,n)):ly(t)?cb(t,n):sb(rb(Ey(e)))}function ub(e){var t=ob(Dy(e)),n=[`absolute`,`fixed`].indexOf(wy(e).position)>=0&&uy(e)?Ay(e):e;return ly(n)?t.filter(function(e){return ly(e)&&Cy(e,n)&&sy(e)!==`body`}):[]}function db(e,t,n,r){var i=t===`clippingParents`?ub(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=lb(e,n,r);return t.top=gy(i.top,t.top),t.right=_y(i.right,t.right),t.bottom=_y(i.bottom,t.bottom),t.left=gy(i.left,t.left),t},lb(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function fb(e){var t=e.reference,n=e.element,r=e.placement,i=r?hy(r):null,a=r?Vy(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case Jv:c={x:o,y:t.y+t.height};break;case Yv:c={x:t.x+t.width,y:s};break;case Xv:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?jy(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case $v:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2);break;default:}}return c}function pb(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?ey:s,l=n.rootBoundary,u=l===void 0?ty:l,d=n.elementContext,f=d===void 0?ny:d,p=n.altBoundary,m=p===void 0?!1:p,h=n.padding,g=h===void 0?0:h,_=Fy(typeof g==`number`?Iy(g,Qv):g),v=f===`popper`?ry:ny,y=e.rects.popper,b=e.elements[m?v:f],x=db(ly(b)?b:b.contextElement||Ey(e.elements.popper),c,u,o),S=xy(e.elements.reference),C=fb({reference:S,element:y,strategy:`absolute`,placement:i}),w=sb(Object.assign({},y,C)),T=f===`popper`?w:S,E={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},D=e.modifiersData.offset;if(f===`popper`&&D){var O=D[i];Object.keys(E).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;E[e]+=O[n]*t})}return E}function mb(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?ay:c,u=Vy(r),d=u?s?iy:iy.filter(function(e){return Vy(e)===u}):Qv,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=pb(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[hy(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function hb(e){if(hy(e)===`auto`)return[];var t=Zy(e);return[$y(e),t,$y(t)]}function gb(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!0:o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,h=n.allowedAutoPlacements,g=t.options.placement,_=hy(g)===g,v=c||(_||!m?[Zy(g)]:hb(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(hy(n)===`auto`?mb(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,w=y[0],T=0;T<y.length;T++){var E=y[T],D=hy(E),O=Vy(E)===$v,k=[`top`,Jv].indexOf(D)>=0,A=k?`width`:`height`,j=pb(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),M=k?O?Yv:Xv:O?Jv:`top`;b[A]>x[A]&&(M=Zy(M));var N=Zy(M),P=[];if(a&&P.push(j[D]<=0),s&&P.push(j[M]<=0,j[N]<=0),P.every(function(e){return e})){w=E,C=!1;break}S.set(E,P)}if(C)for(var F=m?3:1,I=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,`break`},L=F;L>0&&I(L)!==`break`;L--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var _b={name:`flip`,enabled:!0,phase:`main`,fn:gb,requiresIfExists:[`offset`],data:{_skip:!1}};function vb(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function yb(e){return[`top`,Yv,Jv,Xv].some(function(t){return e[t]>=0})}function bb(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=pb(t,{elementContext:`reference`}),s=pb(t,{altBoundary:!0}),c=vb(o,r),l=vb(s,i,a),u=yb(c),d=yb(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var xb={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:bb};function Sb(e,t,n){var r=hy(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function Cb(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=ay.reduce(function(e,n){return e[n]=Sb(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var wb={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:Cb};function Tb(e){var t=e.state,n=e.name;t.modifiersData[n]=fb({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var Eb={name:`popperOffsets`,enabled:!0,phase:`read`,fn:Tb,data:{}};function Db(e){return e===`x`?`y`:`x`}function Ob(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!1:o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,h=m===void 0?0:m,g=pb(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=hy(t.placement),v=Vy(t.placement),y=!v,b=jy(_),x=Db(b),S=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,T=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,E=typeof T==`number`?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var k=b===`y`?`top`:Xv,A=b===`y`?Jv:Yv,j=b===`y`?`height`:`width`,M=S[b],N=M+g[k],P=M-g[A],F=p?-w[j]/2:0,I=v===`start`?C[j]:w[j],L=v===`start`?-w[j]:-C[j],ee=t.elements.arrow,R=p&&ee?Sy(ee):{width:0,height:0},te=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:Py(),ne=te[k],re=te[A],z=My(0,C[j],R[j]),ie=y?C[j]/2-F-z-ne-E.mainAxis:I-z-ne-E.mainAxis,ae=y?-C[j]/2+F+z+re+E.mainAxis:L+z+re+E.mainAxis,oe=t.elements.arrow&&Ay(t.elements.arrow),se=oe?b===`y`?oe.clientTop||0:oe.clientLeft||0:0,ce=D?.[b]??0,le=M+ie-ce-se,ue=M+ae-ce,de=My(p?_y(N,le):N,M,p?gy(P,ue):P);S[b]=de,O[b]=de-M}if(s){var fe=b===`x`?`top`:Xv,pe=b===`x`?Jv:Yv,me=S[x],he=x===`y`?`height`:`width`,ge=me+g[fe],_e=me-g[pe],ve=[`top`,Xv].indexOf(_)!==-1,ye=D?.[x]??0,be=ve?ge:me-C[he]-w[he]-ye+E.altAxis,xe=ve?me+C[he]+w[he]-ye-E.altAxis:_e,Se=p&&ve?Ny(be,me,xe):My(p?be:ge,me,p?xe:_e);S[x]=Se,O[x]=Se-me}t.modifiersData[r]=O}}var kb={name:`preventOverflow`,enabled:!0,phase:`main`,fn:Ob,requiresIfExists:[`offset`]};function Ab(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function jb(e){return e===cy(e)||!uy(e)?eb(e):Ab(e)}function Mb(e){var t=e.getBoundingClientRect(),n=vy(t.width)/e.offsetWidth||1,r=vy(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Nb(e,t,n){n===void 0&&(n=!1);var r=uy(t),i=uy(t)&&Mb(t),a=Ey(t),o=xy(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((sy(t)!==`body`||ib(a))&&(s=jb(t)),uy(t)?(c=xy(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=tb(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function Pb(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function Fb(e){var t=Pb(e);return oy.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function Ib(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function Lb(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var Rb={placement:`bottom`,modifiers:[],strategy:`absolute`};function zb(){return![...arguments].some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function Bb(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?Rb:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},Rb,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:ly(e)?ob(e):e.contextElement?ob(e.contextElement):[],popper:ob(t)};var s=Fb(Lb([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(zb(t,n)){i.rects={reference:Nb(t,Ay(n),i.options.strategy===`fixed`),popper:Sy(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++){if(i.reset===!0){i.reset=!1,r=-1;continue}var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:Ib(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!zb(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var Vb=Bb({defaultModifiers:[Yy,Eb,Ky,my,wb,_b,kb,By,xb]});function Hb(e){return typeof e==`function`?e():e}var Ub=B.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=B.useState(null),s=Vi(B.isValidElement(n)?ia(n):null,t);if(oi(()=>{i||o(Hb(r)||document.body)},[r,i]),oi(()=>{if(a&&!i)return Pi(t,a),()=>{Pi(t,null)}},[t,a,i]),i){if(B.isValidElement(n)){let e={ref:s};return B.cloneElement(n,e)}return n}return a&&__.createPortal(n,a)});function Wb(e){return U(`MuiPopper`,e)}W(`MuiPopper`,[`root`]);function Gb(e,t){if(t===`ltr`)return e;switch(e){case`bottom-end`:return`bottom-start`;case`bottom-start`:return`bottom-end`;case`top-end`:return`top-start`;case`top-start`:return`top-end`;default:return e}}function Kb(e){return typeof e==`function`?e():e}function qb(e){return e.nodeType!==void 0}var Jb=e=>{let{classes:t}=e;return G({root:[`root`]},Wb,t)},Yb={},Xb=B.forwardRef(function(e,t){let{anchorEl:n,children:r,direction:i,disablePortal:a,modifiers:o,open:s,placement:c,popperOptions:l,popperRef:u,slotProps:d={},slots:f={},TransitionProps:p,ownerState:m,...h}=e,g=B.useRef(null),_=Vi(g,t),v=B.useRef(null),y=Vi(v,u),b=B.useRef(y);oi(()=>{b.current=y},[y]),B.useImperativeHandle(u,()=>v.current,[]);let x=Gb(c,i),[S,C]=B.useState(x),[w,T]=B.useState(Kb(n));B.useEffect(()=>{v.current&&v.current.forceUpdate()}),B.useEffect(()=>{n&&T(Kb(n))},[n]),oi(()=>{if(!w||!s)return;let e=e=>{C(e.placement)},t=[{name:`preventOverflow`,options:{altBoundary:a}},{name:`flip`,options:{altBoundary:a}},{name:`onUpdate`,enabled:!0,phase:`afterWrite`,fn:({state:t})=>{e(t)}}];o!=null&&(t=t.concat(o)),l&&l.modifiers!=null&&(t=t.concat(l.modifiers));let n=Vb(w,g.current,{placement:x,...l,modifiers:t});return b.current(n),()=>{n.destroy(),b.current(null)}},[w,a,o,s,l,x]);let E={placement:S};p!==null&&(E.TransitionProps=p);let D=Jb(e),O=f.root??`div`;return(0,V.jsx)(O,{...ra({elementType:O,externalSlotProps:d.root,externalForwardedProps:h,additionalProps:{role:`tooltip`,ref:_},ownerState:e,className:D.root}),children:typeof r==`function`?r(E):r})}),Zb=q(B.forwardRef(function(e,t){let{anchorEl:n,children:r,container:i,direction:a=`ltr`,disablePortal:o=!1,keepMounted:s=!1,modifiers:c,open:l,placement:u=`bottom`,popperOptions:d=Yb,popperRef:f,style:p,transition:m=!1,slotProps:h={},slots:g={},..._}=e,[v,y]=B.useState(!0),b=()=>{y(!1)},x=()=>{y(!0)};if(!s&&!l&&(!m||v))return null;let S;if(i)S=i;else if(n){let e=Kb(n);S=e&&qb(e)?Mi(e).body:Mi(null).body}let C=!l&&s&&(!m||v)?`none`:void 0,w=m?{in:l,onEnter:b,onExited:x}:void 0;return(0,V.jsx)(Ub,{disablePortal:o,container:S,children:(0,V.jsx)(Xb,{anchorEl:n,direction:a,disablePortal:o,modifiers:c,ref:t,open:m?!v:l,placement:u,popperOptions:d,popperRef:f,slotProps:h,slots:g,..._,style:{position:`fixed`,top:0,left:0,display:C,...p},TransitionProps:w,children:r})})}),{name:`MuiPopper`,slot:`Root`,overridesResolver:(e,t)=>t.root})({}),Qb=B.forwardRef(function(e,t){let n=fa(),{anchorEl:r,component:i,components:a,componentsProps:o,container:s,disablePortal:c,keepMounted:l,modifiers:u,open:d,placement:f,popperOptions:p,popperRef:m,transition:h,slots:g,slotProps:_,...v}=Xg({props:e,name:`MuiPopper`}),y=g?.root??a?.Root,b={anchorEl:r,container:s,disablePortal:c,keepMounted:l,modifiers:u,open:d,placement:f,popperOptions:p,popperRef:m,transition:h,...v};return(0,V.jsx)(Zb,{as:i,direction:n?`rtl`:`ltr`,slots:{root:y},slotProps:_??o,...b,ref:t})}),$b=Y((0,V.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`}),`Cancel`);function ex(e){return U(`MuiChip`,e)}var tx=W(`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`.split(`.`)),nx=e=>{let{classes:t,disabled:n,size:r,color:i,iconColor:a,onDelete:o,clickable:s,variant:c}=e;return G({root:[`root`,c,n&&`disabled`,`size${J(r)}`,`color${J(i)}`,s&&`clickable`,s&&`clickableColor${J(i)}`,o&&`deletable`,o&&`deletableColor${J(i)}`,`${c}${J(i)}`],label:[`label`,`label${J(r)}`],avatar:[`avatar`,`avatar${J(r)}`,`avatarColor${J(i)}`],icon:[`icon`,`icon${J(r)}`,`iconColor${J(a)}`],deleteIcon:[`deleteIcon`,`deleteIcon${J(r)}`,`deleteIconColor${J(i)}`,`deleteIcon${J(c)}Color${J(i)}`]},ex,t)},rx=q(`div`,{name:`MuiChip`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e,{color:r,iconColor:i,clickable:a,onDelete:o,size:s,variant:c}=n;return[{[`& .${tx.avatar}`]:t.avatar},{[`& .${tx.avatar}`]:t[`avatar${J(s)}`]},{[`& .${tx.avatar}`]:t[`avatarColor${J(r)}`]},{[`& .${tx.icon}`]:t.icon},{[`& .${tx.icon}`]:t[`icon${J(s)}`]},{[`& .${tx.icon}`]:t[`iconColor${J(i)}`]},{[`& .${tx.deleteIcon}`]:t.deleteIcon},{[`& .${tx.deleteIcon}`]:t[`deleteIcon${J(s)}`]},{[`& .${tx.deleteIcon}`]:t[`deleteIconColor${J(r)}`]},{[`& .${tx.deleteIcon}`]:t[`deleteIcon${J(c)}Color${J(r)}`]},t.root,t[`size${J(s)}`],t[`color${J(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${J(r)})`],o&&t.deletable,o&&r!=="default"&&t[`deletableColor${J(r)}`],t[c],t[`${c}${J(r)}`]]}})(Yg(({theme:e})=>{let t=e.palette.mode===`light`?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:`100%`,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:`inline-flex`,alignItems:`center`,justifyContent:`center`,height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:`nowrap`,transition:e.transitions.create([`background-color`,`box-shadow`]),cursor:`unset`,outline:0,textDecoration:`none`,border:0,padding:0,verticalAlign:`middle`,boxSizing:`border-box`,[`&.${tx.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:`none`},[`& .${tx.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${tx.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${tx.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${tx.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${tx.icon}`]:{marginLeft:5,marginRight:-6},[`& .${tx.deleteIcon}`]:{WebkitTapHighlightColor:`transparent`,color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:xi(e.palette.text.primary,.26),fontSize:22,cursor:`pointer`,margin:`0 5px 0 -6px`,"&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:xi(e.palette.text.primary,.4)}},variants:[{props:{size:`small`},style:{height:24,[`& .${tx.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${tx.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(sv([`contrastText`])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText,[`& .${tx.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t].contrastTextChannel} / 0.7)`:xi(e.palette[t].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].contrastText}}}})),{props:e=>e.iconColor===e.color,style:{[`& .${tx.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:e=>e.iconColor===e.color&&e.color!=="default",style:{[`& .${tx.icon}`]:{color:`inherit`}}},{props:{onDelete:!0},style:{[`&.${tx.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xi(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(sv([`dark`])).map(([t])=>({props:{color:t,onDelete:!0},style:{[`&.${tx.focusVisible}`]:{background:(e.vars||e).palette[t].dark}}})),{props:{clickable:!0},style:{userSelect:`none`,WebkitTapHighlightColor:`transparent`,cursor:`pointer`,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:xi(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${tx.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xi(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(sv([`dark`])).map(([t])=>({props:{color:t,clickable:!0},style:{[`&:hover, &.${tx.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark}}})),{props:{variant:`outlined`},style:{backgroundColor:`transparent`,border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode===`light`?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${tx.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${tx.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${tx.avatar}`]:{marginLeft:4},[`& .${tx.avatarSmall}`]:{marginLeft:2},[`& .${tx.icon}`]:{marginLeft:4},[`& .${tx.iconSmall}`]:{marginLeft:2},[`& .${tx.deleteIcon}`]:{marginRight:5},[`& .${tx.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(sv()).map(([t])=>({props:{variant:`outlined`,color:t},style:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.7)`:xi(e.palette[t].main,.7)}`,[`&.${tx.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xi(e.palette[t].main,e.palette.action.hoverOpacity)},[`&.${tx.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.focusOpacity})`:xi(e.palette[t].main,e.palette.action.focusOpacity)},[`& .${tx.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.7)`:xi(e.palette[t].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].main}}}}))]}})),ix=q(`span`,{name:`MuiChip`,slot:`Label`,overridesResolver:(e,t)=>{let{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${J(r)}`]]}})({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 ax(e){return e.key===`Backspace`||e.key===`Delete`}var ox=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiChip`}),{avatar:r,className:i,clickable:a,color:o=`default`,component:s,deleteIcon:c,disabled:l=!1,icon:u,label:d,onClick:f,onDelete:p,onKeyDown:m,onKeyUp:h,size:g=`medium`,variant:_=`filled`,tabIndex:v,skipFocusWhenDisabled:y=!1,...b}=n,x=l_(B.useRef(null),t),S=e=>{e.stopPropagation(),p&&p(e)},C=e=>{e.currentTarget===e.target&&ax(e)&&e.preventDefault(),m&&m(e)},w=e=>{e.currentTarget===e.target&&p&&ax(e)&&p(e),h&&h(e)},T=a!==!1&&f?!0:a,E=T||p?rv:s||`div`,D={...n,component:E,disabled:l,size:g,color:o,iconColor:B.isValidElement(u)&&u.props.color||o,onDelete:!!p,clickable:T,variant:_},O=nx(D),k=E===rv?{component:s||`div`,focusVisibleClassName:O.focusVisible,...p&&{disableRipple:!0}}:{},A=null;p&&(A=c&&B.isValidElement(c)?B.cloneElement(c,{className:H(c.props.className,O.deleteIcon),onClick:S}):(0,V.jsx)($b,{className:H(O.deleteIcon),onClick:S}));let j=null;r&&B.isValidElement(r)&&(j=B.cloneElement(r,{className:H(O.avatar,r.props.className)}));let M=null;return u&&B.isValidElement(u)&&(M=B.cloneElement(u,{className:H(O.icon,u.props.className)})),(0,V.jsxs)(rx,{as:E,className:H(O.root,i),disabled:T&&l?!0:void 0,onClick:f,onKeyDown:C,onKeyUp:w,ref:x,tabIndex:y&&l?-1:v,ownerState:D,...k,...b,children:[j||M,(0,V.jsx)(ix,{className:H(O.label),ownerState:D,children:d}),A]})});function sx(e){return parseInt(e,10)||0}var cx={shadow:{visibility:`hidden`,position:`absolute`,overflow:`hidden`,height:0,top:0,left:0,transform:`translateZ(0)`}};function lx(e){for(let t in e)return!1;return!0}function ux(e){return lx(e)||e.outerHeightStyle===0&&!e.overflowing}var dx=B.forwardRef(function(e,t){let{onChange:n,maxRows:r,minRows:i=1,style:a,value:o,...s}=e,{current:c}=B.useRef(o!=null),l=B.useRef(null),u=Vi(t,l),d=B.useRef(null),f=B.useRef(null),p=B.useCallback(()=>{let t=l.current,n=f.current;if(!t||!n)return;let a=Ni(t).getComputedStyle(t);if(a.width===`0px`)return{outerHeightStyle:0,overflowing:!1};n.style.width=a.width,n.value=t.value||e.placeholder||`x`,n.value.slice(-1)===`
|
|
160
|
+
`&&(n.value+=` `);let o=a.boxSizing,s=sx(a.paddingBottom)+sx(a.paddingTop),c=sx(a.borderBottomWidth)+sx(a.borderTopWidth),u=n.scrollHeight;n.value=`x`;let d=n.scrollHeight,p=u;return i&&(p=Math.max(Number(i)*d,p)),r&&(p=Math.min(Number(r)*d,p)),p=Math.max(p,d),{outerHeightStyle:p+(o===`border-box`?s+c:0),overflowing:Math.abs(p-u)<=1}},[r,i,e.placeholder]),m=Bi(()=>{let e=l.current,t=p();if(!e||!t||ux(t))return!1;let n=t.outerHeightStyle;return d.current!=null&&d.current!==n}),h=B.useCallback(()=>{let e=l.current,t=p();if(!e||!t||ux(t))return;let n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?`hidden`:``},[p]),g=B.useRef(-1);return oi(()=>{let e=Ai(h),t=l?.current;if(!t)return;let n=Ni(t);n.addEventListener(`resize`,e);let r;return typeof ResizeObserver<`u`&&(r=new ResizeObserver(()=>{m()&&(r.unobserve(t),cancelAnimationFrame(g.current),h(),g.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),n.removeEventListener(`resize`,e),r&&r.disconnect()}},[p,h,m]),oi(()=>{h()}),(0,V.jsxs)(B.Fragment,{children:[(0,V.jsx)(`textarea`,{value:o,onChange:e=>{c||h(),n&&n(e)},ref:u,rows:i,style:a,...s}),(0,V.jsx)(`textarea`,{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:{...cx.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function fx(e){return typeof e==`string`}function px({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&e[r]===void 0&&(t[r]=n[r]),t),{})}var mx=B.createContext(void 0);function hx(){return B.useContext(mx)}function gx(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function _x(e,t=!1){return e&&(gx(e.value)&&e.value!==``||t&&gx(e.defaultValue)&&e.defaultValue!==``)}function vx(e){return e.startAdornment}function yx(e){return U(`MuiInputBase`,e)}var bx=W(`MuiInputBase`,[`root`,`formControl`,`focused`,`disabled`,`adornedStart`,`adornedEnd`,`error`,`sizeSmall`,`multiline`,`colorSecondary`,`fullWidth`,`hiddenLabel`,`readOnly`,`input`,`inputSizeSmall`,`inputMultiline`,`inputTypeSearch`,`inputAdornedStart`,`inputAdornedEnd`,`inputHiddenLabel`]),xx,Sx=(e,t)=>{let{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size===`small`&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${J(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Cx=(e,t)=>{let{ownerState:n}=e;return[t.input,n.size===`small`&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type===`search`&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},wx=e=>{let{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:o,formControl:s,fullWidth:c,hiddenLabel:l,multiline:u,readOnly:d,size:f,startAdornment:p,type:m}=e;return G({root:[`root`,`color${J(n)}`,r&&`disabled`,i&&`error`,c&&`fullWidth`,o&&`focused`,s&&`formControl`,f&&f!==`medium`&&`size${J(f)}`,u&&`multiline`,p&&`adornedStart`,a&&`adornedEnd`,l&&`hiddenLabel`,d&&`readOnly`],input:[`input`,r&&`disabled`,m===`search`&&`inputTypeSearch`,u&&`inputMultiline`,f===`small`&&`inputSizeSmall`,l&&`inputHiddenLabel`,p&&`inputAdornedStart`,a&&`inputAdornedEnd`,d&&`readOnly`]},yx,t)},Tx=q(`div`,{name:`MuiInputBase`,slot:`Root`,overridesResolver:Sx})(Yg(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:`1.4375em`,boxSizing:`border-box`,position:`relative`,cursor:`text`,display:`inline-flex`,alignItems:`center`,[`&.${bx.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:`default`},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:`4px 0 5px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:`100%`}}]}))),Ex=q(`input`,{name:`MuiInputBase`,slot:`Input`,overridesResolver:Cx})(Yg(({theme:e})=>{let t=e.palette.mode===`light`,n={color:`currentColor`,...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create(`opacity`,{duration:e.transitions.duration.shorter})},r={opacity:`0 !important`},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.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":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:`none`},"&::-webkit-search-decoration":{WebkitAppearance:`none`},[`label[data-shrink=false] + .${bx.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${bx.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.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:e})=>e.multiline,style:{height:`auto`,resize:`none`,padding:0,paddingTop:0}},{props:{type:`search`},style:{MozAppearance:`textfield`}}]}})),Dx=qg({"@keyframes mui-auto-fill":{from:{display:`block`}},"@keyframes mui-auto-fill-cancel":{from:{display:`block`}}}),Ox=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiInputBase`}),{"aria-describedby":r,autoComplete:i,autoFocus:a,className:o,color:s,components:c={},componentsProps:l={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:f,endAdornment:p,error:m,fullWidth:h=!1,id:g,inputComponent:v=`input`,inputProps:y={},inputRef:b,margin:x,maxRows:S,minRows:C,multiline:w=!1,name:T,onBlur:E,onChange:D,onClick:O,onFocus:k,onKeyDown:A,onKeyUp:j,placeholder:M,readOnly:N,renderSuffix:P,rows:F,size:I,slotProps:L={},slots:ee={},startAdornment:R,type:te=`text`,value:ne,...re}=n,z=y.value==null?ne:y.value,{current:ie}=B.useRef(z!=null),ae=B.useRef(),oe=B.useCallback(e=>{},[]),se=l_(ae,b,y.ref,oe),[ce,le]=B.useState(!1),ue=hx(),de=px({props:n,muiFormControl:ue,states:[`color`,`disabled`,`error`,`hiddenLabel`,`size`,`required`,`filled`]});de.focused=ue?ue.focused:ce,B.useEffect(()=>{!ue&&d&&ce&&(le(!1),E&&E())},[ue,d,ce,E]);let fe=ue&&ue.onFilled,pe=ue&&ue.onEmpty,me=B.useCallback(e=>{_x(e)?fe&&fe():pe&&pe()},[fe,pe]);a_(()=>{ie&&me({value:z})},[z,me,ie]);let he=e=>{k&&k(e),y.onFocus&&y.onFocus(e),ue&&ue.onFocus?ue.onFocus(e):le(!0)},ge=e=>{E&&E(e),y.onBlur&&y.onBlur(e),ue&&ue.onBlur?ue.onBlur(e):le(!1)},_e=(e,...t)=>{if(!ie){let t=e.target||ae.current;if(t==null)throw Error(_(1));me({value:t.value})}y.onChange&&y.onChange(e,...t),D&&D(e,...t)};B.useEffect(()=>{me(ae.current)},[]);let ve=e=>{ae.current&&e.currentTarget===e.target&&ae.current.focus(),O&&O(e)},ye=v,be=y;w&&ye===`input`&&(be=F?{type:void 0,minRows:F,maxRows:F,...be}:{type:void 0,maxRows:S,minRows:C,...be},ye=dx);let xe=e=>{me(e.animationName===`mui-auto-fill-cancel`?ae.current:{value:`x`})};B.useEffect(()=>{ue&&ue.setAdornedStart(!!R)},[ue,R]);let Se={...n,color:de.color||`primary`,disabled:de.disabled,endAdornment:p,error:de.error,focused:de.focused,formControl:ue,fullWidth:h,hiddenLabel:de.hiddenLabel,multiline:w,size:de.size,startAdornment:R,type:te},Ce=wx(Se),we=ee.root||c.Root||Tx,Te=L.root||l.root||{},Ee=ee.input||c.Input||Ex;return be={...be,...L.input??l.input},(0,V.jsxs)(B.Fragment,{children:[!f&&typeof Dx==`function`&&(xx||=(0,V.jsx)(Dx,{})),(0,V.jsxs)(we,{...Te,ref:t,onClick:ve,...re,...!fx(we)&&{ownerState:{...Se,...Te.ownerState}},className:H(Ce.root,Te.className,o,N&&`MuiInputBase-readOnly`),children:[R,(0,V.jsx)(mx.Provider,{value:null,children:(0,V.jsx)(Ee,{"aria-invalid":de.error,"aria-describedby":r,autoComplete:i,autoFocus:a,defaultValue:u,disabled:de.disabled,id:g,onAnimationStart:xe,name:T,placeholder:M,readOnly:N,required:de.required,rows:F,value:z,onKeyDown:A,onKeyUp:j,type:te,...be,...!fx(Ee)&&{as:ye,ownerState:{...Se,...be.ownerState}},ref:se,className:H(Ce.input,be.className,N&&`MuiInputBase-readOnly`),onBlur:ge,onChange:_e,onFocus:he})}),p,P?P({...de,startAdornment:R}):null]})]})});function kx(e){return U(`MuiInput`,e)}var Ax={...bx,...W(`MuiInput`,[`root`,`underline`,`input`])};function jx(e){return U(`MuiOutlinedInput`,e)}var Mx={...bx,...W(`MuiOutlinedInput`,[`root`,`notchedOutline`,`input`])};function Nx(e){return U(`MuiFilledInput`,e)}var Px={...bx,...W(`MuiFilledInput`,[`root`,`underline`,`input`,`adornedStart`,`adornedEnd`,`sizeSmall`,`multiline`,`hiddenLabel`])},Fx=Y((0,V.jsx)(`path`,{d:`M7 10l5 5 5-5z`}),`ArrowDropDown`),Ix={entering:{opacity:1},entered:{opacity:1}},Lx=B.forwardRef(function(e,t){let n=gs(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:o,easing:s,in:c,onEnter:l,onEntered:u,onEntering:d,onExit:f,onExited:p,onExiting:m,style:h,timeout:g=r,TransitionComponent:_=C_,...v}=e,y=B.useRef(null),b=l_(y,ia(o),t),x=e=>t=>{if(e){let n=y.current;t===void 0?e(n):e(n,t)}},S=x(d),C=x((e,t)=>{P_(e);let r=F_({style:h,timeout:g,easing:s},{mode:`enter`});e.style.webkitTransition=n.transitions.create(`opacity`,r),e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),w=x(u),T=x(m),E=x(e=>{let t=F_({style:h,timeout:g,easing:s},{mode:`exit`});e.style.webkitTransition=n.transitions.create(`opacity`,t),e.style.transition=n.transitions.create(`opacity`,t),f&&f(e)}),D=x(p);return(0,V.jsx)(_,{appear:a,in:c,nodeRef:y,onEnter:C,onEntered:w,onEntering:S,onExit:E,onExited:D,onExiting:T,addEndListener:e=>{i&&i(y.current,e)},timeout:g,...v,children:(e,{ownerState:t,...n})=>B.cloneElement(o,{style:{opacity:0,visibility:e===`exited`&&!c?`hidden`:void 0,...Ix[e],...h,...o.props.style},ref:b,...n})})});function Rx(e){return U(`MuiBackdrop`,e)}W(`MuiBackdrop`,[`root`,`invisible`]);var zx=e=>{let{classes:t,invisible:n}=e;return G({root:[`root`,n&&`invisible`]},Rx,t)},Bx=q(`div`,{name:`MuiBackdrop`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.invisible&&t.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`}}]}),Vx=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiBackdrop`}),{children:r,className:i,component:a=`div`,invisible:o=!1,open:s,components:c={},componentsProps:l={},slotProps:u={},slots:d={},TransitionComponent:f,transitionDuration:p,...m}=n,h={...n,component:a,invisible:o},g=zx(h),_={slots:{transition:f,root:c.Root,...d},slotProps:{...l,...u}},[v,y]=B_(`root`,{elementType:Bx,externalForwardedProps:_,className:H(g.root,i),ownerState:h}),[b,x]=B_(`transition`,{elementType:Lx,externalForwardedProps:_,ownerState:h});return(0,V.jsx)(b,{in:s,timeout:p,...m,...x,children:(0,V.jsx)(v,{"aria-hidden":!0,...y,classes:g,ref:t,children:r})})});function Hx(e){let{badgeContent:t,invisible:n=!1,max:r=99,showZero:i=!1}=e,a=Xi({badgeContent:t,max:r}),o=n;n===!1&&t===0&&!i&&(o=!0);let{badgeContent:s,max:c=r}=o?a:e,l=s&&Number(s)>c?`${c}+`:s;return{badgeContent:s,invisible:o,max:c,displayValue:l}}function Ux(e){return U(`MuiBadge`,e)}var Wx=W(`MuiBadge`,[`root`,`badge`,`dot`,`standard`,`anchorOriginTopRight`,`anchorOriginBottomRight`,`anchorOriginTopLeft`,`anchorOriginBottomLeft`,`invisible`,`colorError`,`colorInfo`,`colorPrimary`,`colorSecondary`,`colorSuccess`,`colorWarning`,`overlapRectangular`,`overlapCircular`,`anchorOriginTopLeftCircular`,`anchorOriginTopLeftRectangular`,`anchorOriginTopRightCircular`,`anchorOriginTopRightRectangular`,`anchorOriginBottomLeftCircular`,`anchorOriginBottomLeftRectangular`,`anchorOriginBottomRightCircular`,`anchorOriginBottomRightRectangular`]),Gx=10,Kx=4,qx=e=>{let{color:t,anchorOrigin:n,invisible:r,overlap:i,variant:a,classes:o={}}=e;return G({root:[`root`],badge:[`badge`,a,r&&`invisible`,`anchorOrigin${J(n.vertical)}${J(n.horizontal)}`,`anchorOrigin${J(n.vertical)}${J(n.horizontal)}${J(i)}`,`overlap${J(i)}`,t!=="default"&&`color${J(t)}`]},Ux,o)},Jx=q(`span`,{name:`MuiBadge`,slot:`Root`,overridesResolver:(e,t)=>t.root})({position:`relative`,display:`inline-flex`,verticalAlign:`middle`,flexShrink:0}),Yx=q(`span`,{name:`MuiBadge`,slot:`Badge`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${J(n.anchorOrigin.vertical)}${J(n.anchorOrigin.horizontal)}${J(n.overlap)}`],n.color!=="default"&&t[`color${J(n.color)}`],n.invisible&&t.invisible]}})(Yg(({theme:e})=>({display:`flex`,flexDirection:`row`,flexWrap:`wrap`,justifyContent:`center`,alignContent:`center`,alignItems:`center`,position:`absolute`,boxSizing:`border-box`,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Gx*2,lineHeight:1,padding:`0 6px`,height:Gx*2,borderRadius:Gx,zIndex:1,transition:e.transitions.create(`transform`,{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(sv([`contrastText`])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:`dot`},style:{borderRadius:Kx,height:Kx*2,minWidth:Kx*2,padding:0}},{props:({ownerState:e})=>e.anchorOrigin.vertical===`top`&&e.anchorOrigin.horizontal===`right`&&e.overlap===`rectangular`,style:{top:0,right:0,transform:`scale(1) translate(50%, -50%)`,transformOrigin:`100% 0%`,[`&.${Wx.invisible}`]:{transform:`scale(0) translate(50%, -50%)`}}},{props:({ownerState:e})=>e.anchorOrigin.vertical===`bottom`&&e.anchorOrigin.horizontal===`right`&&e.overlap===`rectangular`,style:{bottom:0,right:0,transform:`scale(1) translate(50%, 50%)`,transformOrigin:`100% 100%`,[`&.${Wx.invisible}`]:{transform:`scale(0) translate(50%, 50%)`}}},{props:({ownerState:e})=>e.anchorOrigin.vertical===`top`&&e.anchorOrigin.horizontal===`left`&&e.overlap===`rectangular`,style:{top:0,left:0,transform:`scale(1) translate(-50%, -50%)`,transformOrigin:`0% 0%`,[`&.${Wx.invisible}`]:{transform:`scale(0) translate(-50%, -50%)`}}},{props:({ownerState:e})=>e.anchorOrigin.vertical===`bottom`&&e.anchorOrigin.horizontal===`left`&&e.overlap===`rectangular`,style:{bottom:0,left:0,transform:`scale(1) translate(-50%, 50%)`,transformOrigin:`0% 100%`,[`&.${Wx.invisible}`]:{transform:`scale(0) translate(-50%, 50%)`}}},{props:({ownerState:e})=>e.anchorOrigin.vertical===`top`&&e.anchorOrigin.horizontal===`right`&&e.overlap===`circular`,style:{top:`14%`,right:`14%`,transform:`scale(1) translate(50%, -50%)`,transformOrigin:`100% 0%`,[`&.${Wx.invisible}`]:{transform:`scale(0) translate(50%, -50%)`}}},{props:({ownerState:e})=>e.anchorOrigin.vertical===`bottom`&&e.anchorOrigin.horizontal===`right`&&e.overlap===`circular`,style:{bottom:`14%`,right:`14%`,transform:`scale(1) translate(50%, 50%)`,transformOrigin:`100% 100%`,[`&.${Wx.invisible}`]:{transform:`scale(0) translate(50%, 50%)`}}},{props:({ownerState:e})=>e.anchorOrigin.vertical===`top`&&e.anchorOrigin.horizontal===`left`&&e.overlap===`circular`,style:{top:`14%`,left:`14%`,transform:`scale(1) translate(-50%, -50%)`,transformOrigin:`0% 0%`,[`&.${Wx.invisible}`]:{transform:`scale(0) translate(-50%, -50%)`}}},{props:({ownerState:e})=>e.anchorOrigin.vertical===`bottom`&&e.anchorOrigin.horizontal===`left`&&e.overlap===`circular`,style:{bottom:`14%`,left:`14%`,transform:`scale(1) translate(-50%, 50%)`,transformOrigin:`0% 100%`,[`&.${Wx.invisible}`]:{transform:`scale(0) translate(-50%, 50%)`}}},{props:{invisible:!0},style:{transition:e.transitions.create(`transform`,{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function Xx(e){return{vertical:e?.vertical??`top`,horizontal:e?.horizontal??`right`}}var Zx=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiBadge`}),{anchorOrigin:r,className:i,classes:a,component:o,components:s={},componentsProps:c={},children:l,overlap:u=`rectangular`,color:d=`default`,invisible:f=!1,max:p=99,badgeContent:m,slots:h,slotProps:g,showZero:_=!1,variant:v=`standard`,...y}=n,{badgeContent:b,invisible:x,max:S,displayValue:C}=Hx({max:p,invisible:f,badgeContent:m,showZero:_}),w=Xi({anchorOrigin:Xx(r),color:d,overlap:u,variant:v,badgeContent:m}),T=x||b==null&&v!==`dot`,{color:E=d,overlap:D=u,anchorOrigin:O,variant:k=v}=T?w:n,A=Xx(O),j=k===`dot`?void 0:C,M={...n,badgeContent:b,invisible:T,max:S,displayValue:j,showZero:_,anchorOrigin:A,color:E,overlap:D,variant:k},N=qx(M),P={slots:{root:h?.root??s.Root,badge:h?.badge??s.Badge},slotProps:{root:g?.root??c.root,badge:g?.badge??c.badge}},[F,I]=B_(`root`,{elementType:Jx,externalForwardedProps:{...P,...y},ownerState:M,className:H(N.root,i),ref:t,additionalProps:{as:o}}),[L,ee]=B_(`badge`,{elementType:Yx,externalForwardedProps:P,ownerState:M,className:N.badge});return(0,V.jsxs)(F,{...I,children:[l,(0,V.jsx)(L,{...ee,children:j})]})}),Qx=W(`MuiBox`,[`root`]),$x=Hr({themeId:v,defaultTheme:ms(),defaultClassName:Qx.root,generateClassName:Br.generate}),eS=Y((0,V.jsx)(`path`,{d:`M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z`}),`MoreHoriz`),tS=q(rv,{name:`MuiBreadcrumbCollapsed`})(Yg(({theme:e})=>({display:`flex`,marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`,...e.palette.mode===`light`?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...e.palette.mode===`light`?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}},"&:active":{boxShadow:e.shadows[0],...e.palette.mode===`light`?{backgroundColor:Di(e.palette.grey[200],.12)}:{backgroundColor:Di(e.palette.grey[600],.12)}}}))),nS=q(eS)({width:24,height:16});function rS(e){let{slots:t={},slotProps:n={},...r}=e,i=e;return(0,V.jsx)(`li`,{children:(0,V.jsx)(tS,{focusRipple:!0,...r,ownerState:i,children:(0,V.jsx)(nS,{as:t.CollapsedIcon,ownerState:i,...n.collapsedIcon})})})}function iS(e){return U(`MuiBreadcrumbs`,e)}var aS=W(`MuiBreadcrumbs`,[`root`,`ol`,`li`,`separator`]),oS=e=>{let{classes:t}=e;return G({root:[`root`],li:[`li`],ol:[`ol`],separator:[`separator`]},iS,t)},sS=q(Kv,{name:`MuiBreadcrumbs`,slot:`Root`,overridesResolver:(e,t)=>[{[`& .${aS.li}`]:t.li},t.root]})({}),cS=q(`ol`,{name:`MuiBreadcrumbs`,slot:`Ol`,overridesResolver:(e,t)=>t.ol})({display:`flex`,flexWrap:`wrap`,alignItems:`center`,padding:0,margin:0,listStyle:`none`}),lS=q(`li`,{name:`MuiBreadcrumbs`,slot:`Separator`,overridesResolver:(e,t)=>t.separator})({display:`flex`,userSelect:`none`,marginLeft:8,marginRight:8});function uS(e,t,n,r){return e.reduce((i,a,o)=>(o<e.length-1?i=i.concat(a,(0,V.jsx)(lS,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${o}`)):i.push(a),i),[])}var dS=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiBreadcrumbs`}),{children:r,className:i,component:a=`nav`,slots:o={},slotProps:s={},expandText:c=`Show path`,itemsAfterCollapse:l=1,itemsBeforeCollapse:u=1,maxItems:d=8,separator:f=`/`,...p}=n,[m,h]=B.useState(!1),g={...n,component:a,expanded:m,expandText:c,itemsAfterCollapse:l,itemsBeforeCollapse:u,maxItems:d,separator:f},_=oS(g),v=ra({elementType:o.CollapsedIcon,externalSlotProps:s.collapsedIcon,ownerState:g}),y=B.useRef(null),b=e=>{let t=()=>{h(!0);let e=y.current.querySelector(`a[href],button,[tabindex]`);e&&e.focus()};return u+l>=e.length?e:[...e.slice(0,u),(0,V.jsx)(rS,{"aria-label":c,slots:{CollapsedIcon:o.CollapsedIcon},slotProps:{collapsedIcon:v},onClick:t},`ellipsis`),...e.slice(e.length-l,e.length)]},x=B.Children.toArray(r).filter(e=>B.isValidElement(e)).map((e,t)=>(0,V.jsx)(`li`,{className:_.li,children:e},`child-${t}`));return(0,V.jsx)(sS,{ref:t,component:a,color:`textSecondary`,className:H(_.root,i),ownerState:g,...p,children:(0,V.jsx)(cS,{className:_.ol,ref:y,ownerState:g,children:uS(m||d&&x.length<=d?x:b(x),_.separator,f,g)})})});function fS(e){return U(`MuiButton`,e)}var pS=W(`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`.split(`.`)),mS=B.createContext({}),hS=B.createContext(void 0),gS=e=>{let{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,loading:o,loadingPosition:s,classes:c}=e,l=G({root:[`root`,o&&`loading`,a,`${a}${J(t)}`,`size${J(i)}`,`${a}Size${J(i)}`,`color${J(t)}`,n&&`disableElevation`,r&&`fullWidth`,o&&`loadingPosition${J(s)}`],startIcon:[`icon`,`startIcon`,`iconSize${J(i)}`],endIcon:[`icon`,`endIcon`,`iconSize${J(i)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},fS,c);return{...c,...l}},_S=[{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}}}],vS=q(rv,{shouldForwardProp:e=>vs(e)||e===`classes`,name:`MuiButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${J(n.color)}`],t[`size${J(n.size)}`],t[`${n.variant}Size${J(n.size)}`],n.color===`inherit`&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Yg(({theme:e})=>{let t=e.palette.mode===`light`?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode===`light`?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:`6px 16px`,border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create([`background-color`,`box-shadow`,`border-color`,`color`],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:`none`},[`&.${pS.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:`contained`},style:{color:`var(--variant-containedColor)`,backgroundColor:`var(--variant-containedBg)`,boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${pS.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${pS.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).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)`,[`&.${pS.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:`text`},style:{padding:`6px 8px`,color:`var(--variant-textColor)`,backgroundColor:`var(--variant-textBg)`}},...Object.entries(e.palette).filter(sv()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:xi(e.palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xi(e.palette[t].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xi(e.palette[t].main,e.palette.action.hoverOpacity)}}}})),{props:{color:`inherit`},style:{color:`inherit`,borderColor:`currentColor`,"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:xi(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:xi(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:`small`,variant:`text`},style:{padding:`4px 5px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`text`},style:{padding:`8px 11px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`outlined`},style:{padding:`3px 9px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`outlined`},style:{padding:`7px 21px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`contained`},style:{padding:`4px 10px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`contained`},style:{padding:`8px 22px`,fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:`none`,"&:hover":{boxShadow:`none`},[`&.${pS.focusVisible}`]:{boxShadow:`none`},"&:active":{boxShadow:`none`},[`&.${pS.disabled}`]:{boxShadow:`none`}}},{props:{fullWidth:!0},style:{width:`100%`}},{props:{loadingPosition:`center`},style:{transition:e.transitions.create([`background-color`,`box-shadow`,`border-color`],{duration:e.transitions.duration.short}),[`&.${pS.loading}`]:{color:`transparent`}}}]}})),yS=q(`span`,{name:`MuiButton`,slot:`StartIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${J(n.size)}`]]}})(({theme:e})=>({display:`inherit`,marginRight:8,marginLeft:-4,variants:[{props:{size:`small`},style:{marginLeft:-2}},{props:{loadingPosition:`start`,loading:!0},style:{transition:e.transitions.create([`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`start`,loading:!0,fullWidth:!0},style:{marginRight:-8}},..._S]})),bS=q(`span`,{name:`MuiButton`,slot:`EndIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${J(n.size)}`]]}})(({theme:e})=>({display:`inherit`,marginRight:-4,marginLeft:8,variants:[{props:{size:`small`},style:{marginRight:-2}},{props:{loadingPosition:`end`,loading:!0},style:{transition:e.transitions.create([`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`end`,loading:!0,fullWidth:!0},style:{marginLeft:-8}},..._S]})),xS=q(`span`,{name:`MuiButton`,slot:`LoadingIndicator`,overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({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:(e.vars||e).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}}]})),SS=q(`span`,{name:`MuiButton`,slot:`LoadingIconPlaceholder`,overridesResolver:(e,t)=>t.loadingIconPlaceholder})({display:`inline-block`,width:`1em`,height:`1em`}),CS=B.forwardRef(function(e,t){let n=B.useContext(mS),r=B.useContext(hS),i=Xg({props:ri(n,e),name:`MuiButton`}),{children:a,color:o=`primary`,component:s=`button`,className:c,disabled:l=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:m=!1,id:h,loading:g=null,loadingIndicator:_,loadingPosition:v=`center`,size:y=`medium`,startIcon:b,type:x,variant:S=`text`,...C}=i,w=o_(h),T=_??(0,V.jsx)(bv,{"aria-labelledby":w,color:`inherit`,size:16}),E={...i,color:o,component:s,disabled:l,disableElevation:u,disableFocusRipple:d,fullWidth:m,loading:g,loadingIndicator:T,loadingPosition:v,size:y,type:x,variant:S},D=gS(E),O=(b||g&&v===`start`)&&(0,V.jsx)(yS,{className:D.startIcon,ownerState:E,children:b||(0,V.jsx)(SS,{className:D.loadingIconPlaceholder,ownerState:E})}),k=(f||g&&v===`end`)&&(0,V.jsx)(bS,{className:D.endIcon,ownerState:E,children:f||(0,V.jsx)(SS,{className:D.loadingIconPlaceholder,ownerState:E})}),A=r||``,j=typeof g==`boolean`?(0,V.jsx)(`span`,{className:D.loadingWrapper,style:{display:`contents`},children:g&&(0,V.jsx)(xS,{className:D.loadingIndicator,ownerState:E,children:T})}):null;return(0,V.jsxs)(vS,{ownerState:E,className:H(n.className,D.root,c,A),component:s,disabled:l||g,focusRipple:!d,focusVisibleClassName:H(D.focusVisible,p),ref:t,type:x,id:g?w:h,...C,classes:D,children:[O,v!==`end`&&j,a,v===`end`&&j,k]})});function wS(e){return U(`PrivateSwitchBase`,e)}W(`PrivateSwitchBase`,[`root`,`checked`,`disabled`,`input`,`edgeStart`,`edgeEnd`]);var TS=e=>{let{classes:t,checked:n,disabled:r,edge:i}=e;return G({root:[`root`,n&&`checked`,r&&`disabled`,i&&`edge${J(i)}`],input:[`input`]},wS,t)},ES=q(rv,{name:`MuiSwitchBase`})({padding:9,borderRadius:`50%`,variants:[{props:{edge:`start`,size:`small`},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e===`start`&&t.size!==`small`,style:{marginLeft:-12}},{props:{edge:`end`,size:`small`},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e===`end`&&t.size!==`small`,style:{marginRight:-12}}]}),DS=q(`input`,{name:`MuiSwitchBase`,shouldForwardProp:vs})({cursor:`inherit`,position:`absolute`,opacity:0,width:`100%`,height:`100%`,top:0,left:0,margin:0,padding:0,zIndex:1}),OS=B.forwardRef(function(e,t){let{autoFocus:n,checked:r,checkedIcon:i,defaultChecked:a,disabled:o,disableFocusRipple:s=!1,edge:c=!1,icon:l,id:u,inputProps:d,inputRef:f,name:p,onBlur:m,onChange:h,onFocus:g,readOnly:_,required:v=!1,tabIndex:y,type:b,value:x,slots:S={},slotProps:C={},...w}=e,[T,E]=s_({controlled:r,default:!!a,name:`SwitchBase`,state:`checked`}),D=hx(),O=e=>{g&&g(e),D&&D.onFocus&&D.onFocus(e)},k=e=>{m&&m(e),D&&D.onBlur&&D.onBlur(e)},A=e=>{if(e.nativeEvent.defaultPrevented)return;let t=e.target.checked;E(t),h&&h(e,t)},j=o;D&&j===void 0&&(j=D.disabled);let M=b===`checkbox`||b===`radio`,N={...e,checked:T,disabled:j,disableFocusRipple:s,edge:c},P=TS(N),F={slots:S,slotProps:{input:d,...C}},[I,L]=B_(`root`,{ref:t,elementType:ES,className:P.root,shouldForwardComponentProp:!0,externalForwardedProps:{...F,component:`span`,...w},getSlotProps:e=>({...e,onFocus:t=>{e.onFocus?.(t),O(t)},onBlur:t=>{e.onBlur?.(t),k(t)}}),ownerState:N,additionalProps:{centerRipple:!0,focusRipple:!s,disabled:j,role:void 0,tabIndex:null}}),[ee,R]=B_(`input`,{ref:f,elementType:DS,className:P.input,externalForwardedProps:F,getSlotProps:e=>({onChange:t=>{e.onChange?.(t),A(t)}}),ownerState:N,additionalProps:{autoFocus:n,checked:r,defaultChecked:a,disabled:j,id:M?u:void 0,name:p,readOnly:_,required:v,tabIndex:y,type:b,...b===`checkbox`&&x===void 0?{}:{value:x}}});return(0,V.jsxs)(I,{...L,children:[(0,V.jsx)(ee,{...R}),T?i:l]})}),kS=Y((0,V.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`}),`CheckBoxOutlineBlank`),AS=Y((0,V.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`}),`CheckBox`),jS=Y((0,V.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`}),`IndeterminateCheckBox`);function MS(e){return U(`MuiCheckbox`,e)}var NS=W(`MuiCheckbox`,[`root`,`checked`,`disabled`,`indeterminate`,`colorPrimary`,`colorSecondary`,`sizeSmall`,`sizeMedium`]),PS=e=>{let{classes:t,indeterminate:n,color:r,size:i}=e,a=G({root:[`root`,n&&`indeterminate`,`color${J(r)}`,`size${J(i)}`]},MS,t);return{...t,...a}},FS=q(OS,{shouldForwardProp:e=>vs(e)||e===`classes`,name:`MuiCheckbox`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${J(n.size)}`],n.color!=="default"&&t[`color${J(n.color)}`]]}})(Yg(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:`default`,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:xi(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(sv()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xi(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(sv()).map(([t])=>({props:{color:t},style:{[`&.${NS.checked}, &.${NS.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${NS.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:`transparent`}}}}]}))),IS=(0,V.jsx)(AS,{}),LS=(0,V.jsx)(kS,{}),RS=(0,V.jsx)(jS,{}),zS=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiCheckbox`}),{checkedIcon:r=IS,color:i=`primary`,icon:a=LS,indeterminate:o=!1,indeterminateIcon:s=RS,inputProps:c,size:l=`medium`,disableRipple:u=!1,className:d,slots:f={},slotProps:p={},...m}=n,h=o?s:a,g=o?s:r,_={...n,disableRipple:u,color:i,indeterminate:o,size:l},v=PS(_),y=p.input??c,[b,x]=B_(`root`,{ref:t,elementType:FS,className:H(v.root,d),shouldForwardComponentProp:!0,externalForwardedProps:{slots:f,slotProps:p,...m},ownerState:_,additionalProps:{type:`checkbox`,icon:B.cloneElement(h,{fontSize:h.props.fontSize??l}),checkedIcon:B.cloneElement(g,{fontSize:g.props.fontSize??l}),disableRipple:u,slots:f,slotProps:{input:u_(typeof y==`function`?y(_):y,{"data-indeterminate":o})}}});return(0,V.jsx)(b,{...x,classes:v})});function BS(e){return e.substring(2).toLowerCase()}function VS(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function HS(e){let{children:t,disableReactTree:n=!1,mouseEvent:r=`onClick`,onClickAway:i,touchEvent:a=`onTouchEnd`}=e,o=B.useRef(!1),s=B.useRef(null),c=B.useRef(!1),l=B.useRef(!1);B.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);let u=Vi(ia(t),s),d=Bi(e=>{let t=l.current;l.current=!1;let r=Mi(s.current);if(!c.current||!s.current||`clientX`in e&&VS(e,r))return;if(o.current){o.current=!1;return}let a;a=e.composedPath?e.composedPath().includes(s.current):!r.documentElement.contains(e.target)||s.current.contains(e.target),!a&&(n||!t)&&i(e)}),f=e=>n=>{l.current=!0;let r=t.props[e];r&&r(n)},p={ref:u};return a!==!1&&(p[a]=f(a)),B.useEffect(()=>{if(a!==!1){let e=BS(a),t=Mi(s.current),n=()=>{o.current=!0};return t.addEventListener(e,d),t.addEventListener(`touchmove`,n),()=>{t.removeEventListener(e,d),t.removeEventListener(`touchmove`,n)}}},[d,a]),r!==!1&&(p[r]=f(r)),B.useEffect(()=>{if(r!==!1){let e=BS(r),t=Mi(s.current);return t.addEventListener(e,d),()=>{t.removeEventListener(e,d)}}},[d,r]),B.cloneElement(t,p)}function US(e){let t=Mi(e);return t.body===e?Ni(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function WS(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function GS(e){return parseInt(Ni(e).getComputedStyle(e).paddingRight,10)||0}function KS(e){let t=[`TEMPLATE`,`SCRIPT`,`STYLE`,`LINK`,`MAP`,`META`,`NOSCRIPT`,`PICTURE`,`COL`,`COLGROUP`,`PARAM`,`SLOT`,`SOURCE`,`TRACK`].includes(e.tagName),n=e.tagName===`INPUT`&&e.getAttribute(`type`)===`hidden`;return t||n}function qS(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!KS(e);t&&n&&WS(e,i)})}function JS(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function YS(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(US(r)){let e=Yi(Ni(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${GS(r)+e}px`;let t=Mi(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${GS(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=Mi(r).body;else{let t=r.parentElement,n=Ni(r);e=t?.nodeName===`HTML`&&n.getComputedStyle(t).overflowY===`scroll`?t:r}n.push({value:e.style.overflow,property:`overflow`,el:e},{value:e.style.overflowX,property:`overflow-x`,el:e},{value:e.style.overflowY,property:`overflow-y`,el:e}),e.style.overflow=`hidden`}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}function XS(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var ZS=class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&WS(e.modalRef,!1);let r=XS(t);qS(t,e.mount,e.modalRef,r,!0);let i=JS(this.containers,e=>e.container===t);return i===-1?(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n):(this.containers[i].modals.push(e),n)}mount(e,t){let n=JS(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=YS(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=JS(this.containers,t=>t.modals.includes(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&WS(e.modalRef,t),qS(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{let e=i.modals[i.modals.length-1];e.modalRef&&WS(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},QS=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function $S(e){let t=parseInt(e.getAttribute(`tabindex`)||``,10);return Number.isNaN(t)?e.contentEditable===`true`||(e.nodeName===`AUDIO`||e.nodeName===`VIDEO`||e.nodeName===`DETAILS`)&&e.getAttribute(`tabindex`)===null?0:e.tabIndex:t}function eC(e){if(e.tagName!==`INPUT`||e.type!==`radio`||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),n=t(`[name="${e.name}"]:checked`);return n||=t(`[name="${e.name}"]`),n!==e}function tC(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||eC(e))}function nC(e){let t=[],n=[];return Array.from(e.querySelectorAll(QS)).forEach((e,r)=>{let i=$S(e);i===-1||!tC(e)||(i===0?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function rC(){return!0}function iC(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=nC,isEnabled:o=rC,open:s}=e,c=B.useRef(!1),l=B.useRef(null),u=B.useRef(null),d=B.useRef(null),f=B.useRef(null),p=B.useRef(!1),m=B.useRef(null),h=Vi(ia(t),m),g=B.useRef(null);B.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),B.useEffect(()=>{if(!s||!m.current)return;let e=Mi(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute(`tabIndex`)||m.current.setAttribute(`tabIndex`,`-1`),p.current&&m.current.focus()),()=>{i||(d.current&&d.current.focus&&(c.current=!0,d.current.focus()),d.current=null)}},[s]),B.useEffect(()=>{if(!s||!m.current)return;let e=Mi(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&e.activeElement===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(t.contains(e.activeElement)||r&&e.activeElement!==l.current&&e.activeElement!==u.current)return;if(e.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let n=[];if((e.activeElement===l.current||e.activeElement===u.current)&&(n=a(m.current)),n.length>0){let e=!!(g.current?.shiftKey&&g.current?.key===`Tab`),t=n[0],r=n[n.length-1];typeof t!=`string`&&typeof r!=`string`&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener(`focusin`,n),e.addEventListener(`keydown`,t,!0);let i=setInterval(()=>{e.activeElement&&e.activeElement.tagName===`BODY`&&n()},50);return()=>{clearInterval(i),e.removeEventListener(`focusin`,n),e.removeEventListener(`keydown`,t,!0)}},[n,r,i,o,s,a]);let _=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;let n=t.props.onFocus;n&&n(e)},v=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0};return(0,V.jsxs)(B.Fragment,{children:[(0,V.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),B.cloneElement(t,{ref:h,onFocus:_}),(0,V.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}function aC(e){return typeof e==`function`?e():e}function oC(e){return e?e.props.hasOwnProperty(`in`):!1}var sC=()=>{},cC=new ZS;function lC(e){let{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:o,children:s,onClose:c,open:l,rootRef:u}=e,d=B.useRef({}),f=B.useRef(null),p=B.useRef(null),m=Vi(p,u),[h,g]=B.useState(!l),_=oC(s),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>Mi(f.current),b=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),x=()=>{cC.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=Bi(()=>{let e=aC(t)||y().body;cC.add(b(),e),p.current&&x()}),C=()=>cC.isTopModal(b()),w=Bi(e=>{f.current=e,e&&(l&&C()?x():p.current&&WS(p.current,v))}),T=B.useCallback(()=>{cC.remove(b(),v)},[v]);B.useEffect(()=>()=>{T()},[T]),B.useEffect(()=>{l?S():(!_||!i)&&T()},[l,T,_,i,S]);let E=e=>t=>{e.onKeyDown?.(t),!(t.key!==`Escape`||t.which===229||!C())&&(n||(t.stopPropagation(),c&&c(t,`escapeKeyDown`)))},D=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&c&&c(t,`backdropClick`)};return{getRootProps:(t={})=>{let n=$i(e);delete n.onTransitionEnter,delete n.onTransitionExited;let r={...n,...t};return{role:`presentation`,...r,onKeyDown:E(r),ref:m}},getBackdropProps:(e={})=>{let t=e;return{"aria-hidden":!0,...t,onClick:D(t),open:l}},getTransitionProps:()=>({onEnter:ki(()=>{g(!1),a&&a()},s?.props.onEnter??sC),onExited:ki(()=>{g(!0),o&&o(),i&&T()},s?.props.onExited??sC)}),rootRef:m,portalRef:w,isTopModal:C,exited:h,hasTransition:_}}function uC(e){return U(`MuiModal`,e)}W(`MuiModal`,[`root`,`hidden`,`backdrop`]);var dC=e=>{let{open:t,exited:n,classes:r}=e;return G({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},uC,r)},fC=q(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Yg(({theme:e})=>({position:`fixed`,zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:`hidden`}}]}))),pC=q(Vx,{name:`MuiModal`,slot:`Backdrop`,overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),mC=B.forwardRef(function(e,t){let n=Xg({name:`MuiModal`,props:e}),{BackdropComponent:r=pC,BackdropProps:i,classes:a,className:o,closeAfterTransition:s=!1,children:c,container:l,component:u,components:d={},componentsProps:f={},disableAutoFocus:p=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:h=!1,disablePortal:g=!1,disableRestoreFocus:_=!1,disableScrollLock:v=!1,hideBackdrop:y=!1,keepMounted:b=!1,onBackdropClick:x,onClose:S,onTransitionEnter:C,onTransitionExited:w,open:T,slotProps:E={},slots:D={},theme:O,...k}=n,A={...n,closeAfterTransition:s,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:h,disablePortal:g,disableRestoreFocus:_,disableScrollLock:v,hideBackdrop:y,keepMounted:b},{getRootProps:j,getBackdropProps:M,getTransitionProps:N,portalRef:P,isTopModal:F,exited:I,hasTransition:L}=lC({...A,rootRef:t}),ee={...A,exited:I},R=dC(ee),te={};if(c.props.tabIndex===void 0&&(te.tabIndex=`-1`),L){let{onEnter:e,onExited:t}=N();te.onEnter=e,te.onExited=t}let ne={slots:{root:d.Root,backdrop:d.Backdrop,...D},slotProps:{...f,...E}},[re,z]=B_(`root`,{ref:t,elementType:fC,externalForwardedProps:{...ne,...k,component:u},getSlotProps:j,ownerState:ee,className:H(o,R?.root,!ee.open&&ee.exited&&R?.hidden)}),[ie,ae]=B_(`backdrop`,{ref:i?.ref,elementType:r,externalForwardedProps:ne,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>M({...e,onClick:t=>{x&&x(t),e?.onClick&&e.onClick(t)}}),className:H(i?.className,R?.backdrop),ownerState:ee});return!b&&!T&&(!L||I)?null:(0,V.jsx)(Ub,{ref:P,container:l,disablePortal:g,children:(0,V.jsxs)(re,{...z,children:[!y&&r?(0,V.jsx)(ie,{...ae}):null,(0,V.jsx)(iC,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:F,open:T,children:B.cloneElement(c,te)})]})})});function hC(e){return U(`MuiDialog`,e)}var gC=W(`MuiDialog`,[`root`,`scrollPaper`,`scrollBody`,`container`,`paper`,`paperScrollPaper`,`paperScrollBody`,`paperWidthFalse`,`paperWidthXs`,`paperWidthSm`,`paperWidthMd`,`paperWidthLg`,`paperWidthXl`,`paperFullWidth`,`paperFullScreen`]),_C=B.createContext({}),vC=q(Vx,{name:`MuiDialog`,slot:`Backdrop`,overrides:(e,t)=>t.backdrop})({zIndex:-1}),yC=e=>{let{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:a}=e;return G({root:[`root`],container:[`container`,`scroll${J(n)}`],paper:[`paper`,`paperScroll${J(n)}`,`paperWidth${J(String(r))}`,i&&`paperFullWidth`,a&&`paperFullScreen`]},hC,t)},bC=q(mC,{name:`MuiDialog`,slot:`Root`,overridesResolver:(e,t)=>t.root})({"@media print":{position:`absolute !important`}}),xC=q(`div`,{name:`MuiDialog`,slot:`Container`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.container,t[`scroll${J(n.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`}}}]}),SC=q(z_,{name:`MuiDialog`,slot:`Paper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.paper,t[`scrollPaper${J(n.scroll)}`],t[`paperWidth${J(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Yg(({theme:e})=>({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:e.breakpoints.unit===`px`?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${gC.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:`calc(100% - 64px)`}}}},...Object.keys(e.breakpoints.values).filter(e=>e!==`xs`).map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${gC.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+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,[`&.${gC.paperScrollBody}`]:{margin:0,maxWidth:`100%`}}}]}))),CC=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiDialog`}),r=gs(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":o,"aria-modal":s=!0,BackdropComponent:c,BackdropProps:l,children:u,className:d,disableEscapeKeyDown:f=!1,fullScreen:p=!1,fullWidth:m=!1,maxWidth:h=`sm`,onBackdropClick:g,onClick:_,onClose:v,open:y,PaperComponent:b=z_,PaperProps:x={},scroll:S=`paper`,slots:C={},slotProps:w={},TransitionComponent:T=Lx,transitionDuration:E=i,TransitionProps:D,...O}=n,k={...n,disableEscapeKeyDown:f,fullScreen:p,fullWidth:m,maxWidth:h,scroll:S},A=yC(k),j=B.useRef(),M=e=>{j.current=e.target===e.currentTarget},N=e=>{_&&_(e),j.current&&(j.current=null,g&&g(e),v&&v(e,`backdropClick`))},P=Ri(o),F=B.useMemo(()=>({titleId:P}),[P]),I={slots:{transition:T,...C},slotProps:{transition:D,paper:x,backdrop:l,...w}},[L,ee]=B_(`root`,{elementType:bC,shouldForwardComponentProp:!0,externalForwardedProps:I,ownerState:k,className:H(A.root,d),ref:t}),[R,te]=B_(`backdrop`,{elementType:vC,shouldForwardComponentProp:!0,externalForwardedProps:I,ownerState:k}),[ne,re]=B_(`paper`,{elementType:SC,shouldForwardComponentProp:!0,externalForwardedProps:I,ownerState:k,className:H(A.paper,x.className)}),[z,ie]=B_(`container`,{elementType:xC,externalForwardedProps:I,ownerState:k,className:H(A.container)}),[ae,oe]=B_(`transition`,{elementType:Lx,externalForwardedProps:I,ownerState:k,additionalProps:{appear:!0,in:y,timeout:E,role:`presentation`}});return(0,V.jsx)(L,{closeAfterTransition:!0,slots:{backdrop:R},slotProps:{backdrop:{transitionDuration:E,as:c,...te}},disableEscapeKeyDown:f,onClose:v,open:y,onClick:N,...ee,...O,children:(0,V.jsx)(ae,{...oe,children:(0,V.jsx)(z,{onMouseDown:M,...ie,children:(0,V.jsx)(ne,{as:b,elevation:24,role:`dialog`,"aria-describedby":a,"aria-labelledby":P,"aria-modal":s,...re,children:(0,V.jsx)(_C.Provider,{value:F,children:u})})})})})});function wC(e){return U(`MuiDialogActions`,e)}W(`MuiDialogActions`,[`root`,`spacing`]);var TC=e=>{let{classes:t,disableSpacing:n}=e;return G({root:[`root`,!n&&`spacing`]},wC,t)},EC=q(`div`,{name:`MuiDialogActions`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:`flex`,alignItems:`center`,padding:8,justifyContent:`flex-end`,flex:`0 0 auto`,variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),DC=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiDialogActions`}),{className:r,disableSpacing:i=!1,...a}=n,o={...n,disableSpacing:i};return(0,V.jsx)(EC,{className:H(TC(o).root,r),ownerState:o,ref:t,...a})});function OC(e){return U(`MuiDialogContent`,e)}W(`MuiDialogContent`,[`root`,`dividers`]);function kC(e){return U(`MuiDialogTitle`,e)}var AC=W(`MuiDialogTitle`,[`root`]),jC=e=>{let{classes:t,dividers:n}=e;return G({root:[`root`,n&&`dividers`]},OC,t)},MC=q(`div`,{name:`MuiDialogContent`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Yg(({theme:e})=>({flex:`1 1 auto`,WebkitOverflowScrolling:`touch`,overflowY:`auto`,padding:`20px 24px`,variants:[{props:({ownerState:e})=>e.dividers,style:{padding:`16px 24px`,borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${AC.root} + &`]:{paddingTop:0}}}]}))),NC=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiDialogContent`}),{className:r,dividers:i=!1,...a}=n,o={...n,dividers:i};return(0,V.jsx)(MC,{className:H(jC(o).root,r),ownerState:o,ref:t,...a})});function PC(e){return U(`MuiDialogContentText`,e)}W(`MuiDialogContentText`,[`root`]);var FC=e=>{let{classes:t}=e,n=G({root:[`root`]},PC,t);return{...t,...n}},IC=q(Kv,{shouldForwardProp:e=>vs(e)||e===`classes`,name:`MuiDialogContentText`,slot:`Root`,overridesResolver:(e,t)=>t.root})({}),LC=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiDialogContentText`}),{children:r,className:i,...a}=n,o=FC(a);return(0,V.jsx)(IC,{component:`p`,variant:`body1`,color:`textSecondary`,ref:t,ownerState:a,className:H(o.root,i),...n,classes:o})}),RC=e=>{let{classes:t}=e;return G({root:[`root`]},kC,t)},zC=q(Kv,{name:`MuiDialogTitle`,slot:`Root`,overridesResolver:(e,t)=>t.root})({padding:`16px 24px`,flex:`0 0 auto`}),BC=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiDialogTitle`}),{className:r,id:i,...a}=n,o=n,s=RC(o),{titleId:c=i}=B.useContext(_C);return(0,V.jsx)(zC,{component:`h2`,className:H(s.root,r),ownerState:o,ref:t,variant:`h6`,id:i??c,...a})});function VC(e){return U(`MuiDivider`,e)}var HC=W(`MuiDivider`,[`root`,`absolute`,`fullWidth`,`inset`,`middle`,`flexItem`,`light`,`vertical`,`withChildren`,`withChildrenVertical`,`textAlignRight`,`textAlignLeft`,`wrapper`,`wrapperVertical`]),UC=e=>{let{absolute:t,children:n,classes:r,flexItem:i,light:a,orientation:o,textAlign:s,variant:c}=e;return G({root:[`root`,t&&`absolute`,c,a&&`light`,o===`vertical`&&`vertical`,i&&`flexItem`,n&&`withChildren`,n&&o===`vertical`&&`withChildrenVertical`,s===`right`&&o!==`vertical`&&`textAlignRight`,s===`left`&&o!==`vertical`&&`textAlignLeft`],wrapper:[`wrapper`,o===`vertical`&&`wrapperVertical`]},VC,r)},WC=q(`div`,{name:`MuiDivider`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation===`vertical`&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation===`vertical`&&t.withChildrenVertical,n.textAlign===`right`&&n.orientation!==`vertical`&&t.textAlignRight,n.textAlign===`left`&&n.orientation!==`vertical`&&t.textAlignLeft]}})(Yg(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:`solid`,borderColor:(e.vars||e).palette.divider,borderBottomWidth:`thin`,variants:[{props:{absolute:!0},style:{position:`absolute`,bottom:0,left:0,width:`100%`}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:xi(e.palette.divider,.08)}},{props:{variant:`inset`},style:{marginLeft:72}},{props:{variant:`middle`,orientation:`horizontal`},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:`middle`,orientation:`vertical`},style:{marginTop:e.spacing(1),marginBottom:e.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 ${(e.vars||e).palette.divider}`,borderTopStyle:`inherit`}}},{props:({ownerState:e})=>e.orientation===`vertical`&&e.children,style:{flexDirection:`column`,"&::before, &::after":{height:`100%`,borderLeft:`thin solid ${(e.vars||e).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%`}}}]}))),GC=q(`span`,{name:`MuiDivider`,slot:`Wrapper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.wrapper,n.orientation===`vertical`&&t.wrapperVertical]}})(Yg(({theme:e})=>({display:`inline-block`,paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:`nowrap`,variants:[{props:{orientation:`vertical`},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),KC=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiDivider`}),{absolute:r=!1,children:i,className:a,orientation:o=`horizontal`,component:s=i||o===`vertical`?`div`:`hr`,flexItem:c=!1,light:l=!1,role:u=s===`hr`?void 0:`separator`,textAlign:d=`center`,variant:f=`fullWidth`,...p}=n,m={...n,absolute:r,component:s,flexItem:c,light:l,orientation:o,role:u,textAlign:d,variant:f},h=UC(m);return(0,V.jsx)(WC,{as:s,className:H(h.root,a),role:u,ref:t,ownerState:m,"aria-orientation":u===`separator`&&(s!==`hr`||o===`vertical`)?o:void 0,...p,children:i?(0,V.jsx)(GC,{className:h.wrapper,ownerState:m,children:i}):null})});KC&&(KC.muiSkipListHighlight=!0);function qC(e){return U(`MuiFab`,e)}var JC=W(`MuiFab`,[`root`,`primary`,`secondary`,`extended`,`circular`,`focusVisible`,`disabled`,`colorInherit`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`info`,`error`,`warning`,`success`]),YC=e=>{let{color:t,variant:n,classes:r,size:i}=e,a=G({root:[`root`,n,`size${J(i)}`,t===`inherit`?`colorInherit`:t]},qC,r);return{...r,...a}},XC=q(rv,{name:`MuiFab`,slot:`Root`,shouldForwardProp:e=>vs(e)||e===`classes`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`size${J(n.size)}`],n.color===`inherit`&&t.colorInherit,t[J(n.size)],t[n.color]]}})(Yg(({theme:e})=>({...e.typography.button,minHeight:36,transition:e.transitions.create([`background-color`,`box-shadow`,`border-color`],{duration:e.transitions.duration.short}),borderRadius:`50%`,padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.text.primary:e.palette.getContrastText?.(e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:`none`},[`&.${JC.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},variants:[{props:{size:`small`},style:{width:40,height:40}},{props:{size:`medium`},style:{width:48,height:48}},{props:{variant:`extended`},style:{borderRadius:48/2,padding:`0 16px`,width:`auto`,minHeight:`auto`,minWidth:48,height:48}},{props:{variant:`extended`,size:`small`},style:{width:`auto`,padding:`0 8px`,borderRadius:34/2,minWidth:34,height:34}},{props:{variant:`extended`,size:`medium`},style:{width:`auto`,padding:`0 16px`,borderRadius:40/2,minWidth:40,height:40}},{props:{color:`inherit`},style:{color:`inherit`}}]})),Yg(({theme:e})=>({variants:[...Object.entries(e.palette).filter(sv([`dark`,`contrastText`])).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}}}}))]})),Yg(({theme:e})=>({[`&.${JC.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}))),ZC=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiFab`}),{children:r,className:i,color:a=`default`,component:o=`button`,disabled:s=!1,disableFocusRipple:c=!1,focusVisibleClassName:l,size:u=`large`,variant:d=`circular`,...f}=n,p={...n,color:a,component:o,disabled:s,disableFocusRipple:c,size:u,variant:d},m=YC(p);return(0,V.jsx)(XC,{className:H(m.root,i),component:o,disabled:s,focusRipple:!c,focusVisibleClassName:H(m.focusVisible,l),ownerState:p,ref:t,...f,classes:m,children:r})}),QC=e=>{let{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:a,hiddenLabel:o,multiline:s}=e,c=G({root:[`root`,!n&&`underline`,r&&`adornedStart`,i&&`adornedEnd`,a===`small`&&`size${J(a)}`,o&&`hiddenLabel`,s&&`multiline`],input:[`input`]},Nx,t);return{...t,...c}},$C=q(Tx,{shouldForwardProp:e=>vs(e)||e===`classes`,name:`MuiFilledInput`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...Sx(e,t),!n.disableUnderline&&t.underline]}})(Yg(({theme:e})=>{let t=e.palette.mode===`light`,n=t?`rgba(0, 0, 0, 0.42)`:`rgba(255, 255, 255, 0.7)`,r=t?`rgba(0, 0, 0, 0.06)`:`rgba(255, 255, 255, 0.09)`,i=t?`rgba(0, 0, 0, 0.09)`:`rgba(255, 255, 255, 0.13)`,a=t?`rgba(0, 0, 0, 0.12)`:`rgba(255, 255, 255, 0.12)`;return{position:`relative`,backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(`background-color`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Px.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Px.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:`""`,position:`absolute`,right:0,transform:`scaleX(0)`,transition:e.transitions.create(`transform`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:`none`},[`&.${Px.focused}:after`]:{transform:`scaleX(1) translateX(0)`},[`&.${Px.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:`"\\00a0"`,position:`absolute`,right:0,transition:e.transitions.create(`border-bottom-color`,{duration:e.transitions.duration.shorter}),pointerEvents:`none`},[`&:hover:not(.${Px.disabled}, .${Px.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Px.disabled}:before`]:{borderBottomStyle:`dotted`}}},...Object.entries(e.palette).filter(sv()).map(([t])=>({props:{disableUnderline:!1,color:t},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}})),{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:12}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:12}},{props:({ownerState:e})=>e.multiline,style:{padding:`25px 12px 8px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel&&e.size===`small`,style:{paddingTop:8,paddingBottom:9}}]}})),ew=q(Ex,{name:`MuiFilledInput`,slot:`Input`,overridesResolver:Cx})(Yg(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode===`light`?null:`0 0 0 100px #266798 inset`,WebkitTextFillColor:e.palette.mode===`light`?null:`#fff`,caretColor:e.palette.mode===`light`?null:`#fff`,borderTopLeftRadius:`inherit`,borderTopRightRadius:`inherit`}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:`inherit`,borderTopRightRadius:`inherit`},[e.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}}]}))),tw=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiFilledInput`}),{disableUnderline:r=!1,components:i={},componentsProps:a,fullWidth:o=!1,hiddenLabel:s,inputComponent:c=`input`,multiline:l=!1,slotProps:u,slots:d={},type:f=`text`,...p}=n,m={...n,disableUnderline:r,fullWidth:o,inputComponent:c,multiline:l,type:f},h=QC(n),g={root:{ownerState:m},input:{ownerState:m}},_=u??a?fn(g,u??a):g;return(0,V.jsx)(Ox,{slots:{root:d.root??i.Root??$C,input:d.input??i.Input??ew},slotProps:_,fullWidth:o,inputComponent:c,multiline:l,ref:t,type:f,...p,classes:h})});tw.muiName=`Input`;function nw(e){return U(`MuiFormControl`,e)}W(`MuiFormControl`,[`root`,`marginNone`,`marginNormal`,`marginDense`,`fullWidth`,`disabled`]);var rw=e=>{let{classes:t,margin:n,fullWidth:r}=e;return G({root:[`root`,n!==`none`&&`margin${J(n)}`,r&&`fullWidth`]},nw,t)},iw=q(`div`,{name:`MuiFormControl`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`margin${J(n.margin)}`],n.fullWidth&&t.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%`}}]}),aw=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiFormControl`}),{children:r,className:i,color:a=`primary`,component:o=`div`,disabled:s=!1,error:c=!1,focused:l,fullWidth:u=!1,hiddenLabel:d=!1,margin:f=`none`,required:p=!1,size:m=`medium`,variant:h=`outlined`,...g}=n,_={...n,color:a,component:o,disabled:s,error:c,fullWidth:u,hiddenLabel:d,margin:f,required:p,size:m,variant:h},v=rw(_),[y,b]=B.useState(()=>{let e=!1;return r&&B.Children.forEach(r,t=>{if(!n_(t,[`Input`,`Select`]))return;let n=n_(t,[`Select`])?t.props.input:t;n&&vx(n.props)&&(e=!0)}),e}),[x,S]=B.useState(()=>{let e=!1;return r&&B.Children.forEach(r,t=>{n_(t,[`Input`,`Select`])&&(_x(t.props,!0)||_x(t.props.inputProps,!0))&&(e=!0)}),e}),[C,w]=B.useState(!1);s&&C&&w(!1);let T=l!==void 0&&!s?l:C;B.useRef(!1);let E=B.useCallback(()=>{S(!0)},[]),D=B.useCallback(()=>{S(!1)},[]),O=B.useMemo(()=>({adornedStart:y,setAdornedStart:b,color:a,disabled:s,error:c,filled:x,focused:T,fullWidth:u,hiddenLabel:d,size:m,onBlur:()=>{w(!1)},onFocus:()=>{w(!0)},onEmpty:D,onFilled:E,registerEffect:void 0,required:p,variant:h}),[y,a,s,c,x,T,u,d,void 0,D,E,p,m,h]);return(0,V.jsx)(mx.Provider,{value:O,children:(0,V.jsx)(iw,{as:o,ownerState:_,className:H(v.root,i),ref:t,...g,children:r})})});function ow(e){return U(`MuiFormControlLabel`,e)}var sw=W(`MuiFormControlLabel`,[`root`,`labelPlacementStart`,`labelPlacementTop`,`labelPlacementBottom`,`disabled`,`label`,`error`,`required`,`asterisk`]),cw=e=>{let{classes:t,disabled:n,labelPlacement:r,error:i,required:a}=e;return G({root:[`root`,n&&`disabled`,`labelPlacement${J(r)}`,i&&`error`,a&&`required`],label:[`label`,n&&`disabled`],asterisk:[`asterisk`,i&&`error`]},ow,t)},lw=q(`label`,{name:`MuiFormControlLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${sw.label}`]:t.label},t.root,t[`labelPlacement${J(n.labelPlacement)}`]]}})(Yg(({theme:e})=>({display:`inline-flex`,alignItems:`center`,cursor:`pointer`,verticalAlign:`middle`,WebkitTapHighlightColor:`transparent`,marginLeft:-11,marginRight:16,[`&.${sw.disabled}`]:{cursor:`default`},[`& .${sw.label}`]:{[`&.${sw.disabled}`]:{color:(e.vars||e).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}}]}))),uw=q(`span`,{name:`MuiFormControlLabel`,slot:`Asterisk`,overridesResolver:(e,t)=>t.asterisk})(Yg(({theme:e})=>({[`&.${sw.error}`]:{color:(e.vars||e).palette.error.main}}))),dw=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiFormControlLabel`}),{checked:r,className:i,componentsProps:a={},control:o,disabled:s,disableTypography:c,inputRef:l,label:u,labelPlacement:d=`end`,name:f,onChange:p,required:m,slots:h={},slotProps:g={},value:_,...v}=n,y=hx(),b=s??o.props.disabled??y?.disabled,x=m??o.props.required,S={disabled:b,required:x};[`checked`,`name`,`onChange`,`value`,`inputRef`].forEach(e=>{o.props[e]===void 0&&n[e]!==void 0&&(S[e]=n[e])});let C=px({props:n,muiFormControl:y,states:[`error`]}),w={...n,disabled:b,labelPlacement:d,required:x,error:C.error},T=cw(w),[E,D]=B_(`typography`,{elementType:Kv,externalForwardedProps:{slots:h,slotProps:{...a,...g}},ownerState:w}),O=u;return O!=null&&O.type!==Kv&&!c&&(O=(0,V.jsx)(E,{component:`span`,...D,className:H(T.label,D?.className),children:O})),(0,V.jsxs)(lw,{className:H(T.root,i),ownerState:w,ref:t,...v,children:[B.cloneElement(o,S),x?(0,V.jsxs)(`div`,{children:[O,(0,V.jsxs)(uw,{ownerState:w,"aria-hidden":!0,className:T.asterisk,children:[` `,`*`]})]}):O]})});W(`MuiFormGroup`,[`root`,`row`,`error`]),q(`div`,{name:`MuiFormGroup`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:`flex`,flexDirection:`column`,flexWrap:`wrap`,variants:[{props:{row:!0},style:{flexDirection:`row`}}]});function fw(e){return U(`MuiFormHelperText`,e)}var pw=W(`MuiFormHelperText`,[`root`,`error`,`disabled`,`sizeSmall`,`sizeMedium`,`contained`,`focused`,`filled`,`required`]),mw,hw=e=>{let{classes:t,contained:n,size:r,disabled:i,error:a,filled:o,focused:s,required:c}=e;return G({root:[`root`,i&&`disabled`,a&&`error`,r&&`size${J(r)}`,n&&`contained`,s&&`focused`,o&&`filled`,c&&`required`]},fw,t)},gw=q(`p`,{name:`MuiFormHelperText`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.size&&t[`size${J(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Yg(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:`left`,marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${pw.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${pw.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:`small`},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),_w=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiFormHelperText`}),{children:r,className:i,component:a=`p`,disabled:o,error:s,filled:c,focused:l,margin:u,required:d,variant:f,...p}=n,m=px({props:n,muiFormControl:hx(),states:[`variant`,`size`,`disabled`,`error`,`filled`,`focused`,`required`]}),h={...n,component:a,contained:m.variant===`filled`||m.variant===`outlined`,variant:m.variant,size:m.size,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required};return delete h.ownerState,(0,V.jsx)(gw,{as:a,className:H(hw(h).root,i),ref:t,...p,ownerState:h,children:r===` `?mw||=(0,V.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:``}):r})});function vw(e){return U(`MuiFormLabel`,e)}var yw=W(`MuiFormLabel`,[`root`,`colorSecondary`,`focused`,`disabled`,`error`,`filled`,`required`,`asterisk`]),bw=e=>{let{classes:t,color:n,focused:r,disabled:i,error:a,filled:o,required:s}=e;return G({root:[`root`,`color${J(n)}`,i&&`disabled`,a&&`error`,o&&`filled`,r&&`focused`,s&&`required`],asterisk:[`asterisk`,a&&`error`]},vw,t)},xw=q(`label`,{name:`MuiFormLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color===`secondary`&&t.colorSecondary,n.filled&&t.filled]}})(Yg(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:`1.4375em`,padding:0,position:`relative`,variants:[...Object.entries(e.palette).filter(sv()).map(([t])=>({props:{color:t},style:{[`&.${yw.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${yw.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${yw.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),Sw=q(`span`,{name:`MuiFormLabel`,slot:`Asterisk`,overridesResolver:(e,t)=>t.asterisk})(Yg(({theme:e})=>({[`&.${yw.error}`]:{color:(e.vars||e).palette.error.main}}))),Cw=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiFormLabel`}),{children:r,className:i,color:a,component:o=`label`,disabled:s,error:c,filled:l,focused:u,required:d,...f}=n,p=px({props:n,muiFormControl:hx(),states:[`color`,`required`,`focused`,`disabled`,`error`,`filled`]}),m={...n,color:p.color||`primary`,component:o,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},h=bw(m);return(0,V.jsxs)(xw,{as:o,ownerState:m,className:H(h.root,i),ref:t,...f,children:[r,p.required&&(0,V.jsxs)(Sw,{ownerState:m,"aria-hidden":!0,className:h.asterisk,children:[` `,`*`]})]})}),ww=B.createContext();function Tw(e){return U(`MuiGrid`,e)}var Ew=[0,1,2,3,4,5,6,7,8,9,10],Dw=[`column-reverse`,`column`,`row-reverse`,`row`],Ow=[`nowrap`,`wrap-reverse`,`wrap`],kw=[`auto`,!0,1,2,3,4,5,6,7,8,9,10,11,12],Aw=W(`MuiGrid`,[`root`,`container`,`item`,`zeroMinWidth`,...Ew.map(e=>`spacing-xs-${e}`),...Dw.map(e=>`direction-xs-${e}`),...Ow.map(e=>`wrap-xs-${e}`),...kw.map(e=>`grid-xs-${e}`),...kw.map(e=>`grid-sm-${e}`),...kw.map(e=>`grid-md-${e}`),...kw.map(e=>`grid-lg-${e}`),...kw.map(e=>`grid-xl-${e}`)]);function jw({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,i)=>{let a={};if(t[i]&&(n=t[i]),!n)return r;if(n===!0)a={flexBasis:0,flexGrow:1,maxWidth:`100%`};else if(n===`auto`)a={flexBasis:`auto`,flexGrow:0,flexShrink:0,maxWidth:`none`,width:`auto`};else{let o=On({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof o==`object`?o[i]:o;if(s==null)return r;let c=`${Math.round(n/s*1e8)/1e6}%`,l={};if(t.container&&t.item&&t.columnSpacing!==0){let n=e.spacing(t.columnSpacing);if(n!==`0px`){let e=`calc(${c} + ${n})`;l={flexBasis:e,maxWidth:e}}}a={flexBasis:c,flexGrow:0,maxWidth:c,...l}}return e.breakpoints.values[i]===0?Object.assign(r,a):r[e.breakpoints.up(i)]=a,r},{})}function Mw({theme:e,ownerState:t}){let n=On({values:t.direction,breakpoints:e.breakpoints.values});return wn({theme:e},n,e=>{let t={flexDirection:e};return e.startsWith(`column`)&&(t[`& > .${Aw.item}`]={maxWidth:`none`}),t})}function Nw({breakpoints:e,values:t}){let n=``;Object.keys(t).forEach(e=>{n===``&&t[e]!==0&&(n=e)});let r=Object.keys(e).sort((t,n)=>e[t]-e[n]);return r.slice(0,r.indexOf(n))}function Pw({theme:e,ownerState:t}){let{container:n,rowSpacing:r}=t,i={};if(n&&r!==0){let t=On({values:r,breakpoints:e.breakpoints.values}),n;typeof t==`object`&&(n=Nw({breakpoints:e.breakpoints.values,values:t})),i=wn({theme:e},t,(t,r)=>{let i=e.spacing(t);return i===`0px`?n?.includes(r)?{}:{marginTop:0,[`& > .${Aw.item}`]:{paddingTop:0}}:{marginTop:`calc(-1 * ${i})`,[`& > .${Aw.item}`]:{paddingTop:i}}})}return i}function Fw({theme:e,ownerState:t}){let{container:n,columnSpacing:r}=t,i={};if(n&&r!==0){let t=On({values:r,breakpoints:e.breakpoints.values}),n;typeof t==`object`&&(n=Nw({breakpoints:e.breakpoints.values,values:t})),i=wn({theme:e},t,(t,r)=>{let i=e.spacing(t);if(i!==`0px`){let e=`calc(-1 * ${i})`;return{width:`calc(100% + ${i})`,marginLeft:e,[`& > .${Aw.item}`]:{paddingLeft:i}}}return n?.includes(r)?{}:{width:`100%`,marginLeft:0,[`& > .${Aw.item}`]:{paddingLeft:0}}})}return i}function Iw(e,t,n={}){if(!e||e<=0)return[];if(typeof e==`string`&&!Number.isNaN(Number(e))||typeof e==`number`)return[n[`spacing-xs-${String(e)}`]];let r=[];return t.forEach(t=>{let i=e[t];Number(i)>0&&r.push(n[`spacing-${t}-${String(i)}`])}),r}var Lw=q(`div`,{name:`MuiGrid`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e,{container:r,direction:i,item:a,spacing:o,wrap:s,zeroMinWidth:c,breakpoints:l}=n,u=[];r&&(u=Iw(o,l,t));let d=[];return l.forEach(e=>{let r=n[e];r&&d.push(t[`grid-${e}-${String(r)}`])}),[t.root,r&&t.container,a&&t.item,c&&t.zeroMinWidth,...u,i!==`row`&&t[`direction-xs-${String(i)}`],s!==`wrap`&&t[`wrap-xs-${String(s)}`],...d]}})(({ownerState:e})=>({boxSizing:`border-box`,...e.container&&{display:`flex`,flexWrap:`wrap`,width:`100%`},...e.item&&{margin:0},...e.zeroMinWidth&&{minWidth:0},...e.wrap!==`wrap`&&{flexWrap:e.wrap}}),Mw,Pw,Fw,jw);function Rw(e,t){if(!e||e<=0)return[];if(typeof e==`string`&&!Number.isNaN(Number(e))||typeof e==`number`)return[`spacing-xs-${String(e)}`];let n=[];return t.forEach(t=>{let r=e[t];if(Number(r)>0){let e=`spacing-${t}-${String(r)}`;n.push(e)}}),n}var zw=e=>{let{classes:t,container:n,direction:r,item:i,spacing:a,wrap:o,zeroMinWidth:s,breakpoints:c}=e,l=[];n&&(l=Rw(a,c));let u=[];return c.forEach(t=>{let n=e[t];n&&u.push(`grid-${t}-${String(n)}`)}),G({root:[`root`,n&&`container`,i&&`item`,s&&`zeroMinWidth`,...l,r!==`row`&&`direction-xs-${String(r)}`,o!==`wrap`&&`wrap-xs-${String(o)}`,...u]},Tw,t)},X=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiGrid`}),{breakpoints:r}=gs(),i=Rr(n),{className:a,columns:o,columnSpacing:s,component:c=`div`,container:l=!1,direction:u=`row`,item:d=!1,rowSpacing:f,spacing:p=0,wrap:m=`wrap`,zeroMinWidth:h=!1,...g}=i,_=f||p,v=s||p,y=B.useContext(ww),b=l?o||12:y,x={},S={...g};r.keys.forEach(e=>{g[e]!=null&&(x[e]=g[e],delete S[e])});let C={...i,columns:b,container:l,direction:u,item:d,rowSpacing:_,columnSpacing:v,wrap:m,zeroMinWidth:h,spacing:p,...x,breakpoints:r.keys},w=zw(C);return(0,V.jsx)(ww.Provider,{value:b,children:(0,V.jsx)(Lw,{ownerState:C,className:H(w.root,a),as:c,ref:t,...S})})}),Bw=lo({createStyledComponent:q(`div`,{name:`MuiGrid2`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:`MuiGrid2`,useThemeProps:e=>Xg({props:e,name:`MuiGrid2`}),useTheme:gs});function Vw(e){return`scale(${e}, ${e**2})`}var Hw={entering:{opacity:1,transform:Vw(1)},entered:{opacity:1,transform:`none`}},Uw=typeof navigator<`u`&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ww=B.forwardRef(function(e,t){let{addEndListener:n,appear:r=!0,children:i,easing:a,in:o,onEnter:s,onEntered:c,onEntering:l,onExit:u,onExited:d,onExiting:f,style:p,timeout:m=`auto`,TransitionComponent:h=C_,...g}=e,_=qi(),v=B.useRef(),y=gs(),b=B.useRef(null),x=l_(b,ia(i),t),S=e=>t=>{if(e){let n=b.current;t===void 0?e(n):e(n,t)}},C=S(l),w=S((e,t)=>{P_(e);let{duration:n,delay:r,easing:i}=F_({style:p,timeout:m,easing:a},{mode:`enter`}),o;m===`auto`?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=n,e.style.transition=[y.transitions.create(`opacity`,{duration:o,delay:r}),y.transitions.create(`transform`,{duration:Uw?o:o*.666,delay:r,easing:i})].join(`,`),s&&s(e,t)}),T=S(c),E=S(f),D=S(e=>{let{duration:t,delay:n,easing:r}=F_({style:p,timeout:m,easing:a},{mode:`exit`}),i;m===`auto`?(i=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=i):i=t,e.style.transition=[y.transitions.create(`opacity`,{duration:i,delay:n}),y.transitions.create(`transform`,{duration:Uw?i:i*.666,delay:Uw?n:n||i*.333,easing:r})].join(`,`),e.style.opacity=0,e.style.transform=Vw(.75),u&&u(e)}),O=S(d);return(0,V.jsx)(h,{appear:r,in:o,nodeRef:b,onEnter:w,onEntered:T,onEntering:C,onExit:D,onExited:O,onExiting:E,addEndListener:e=>{m===`auto`&&_.start(v.current||0,e),n&&n(b.current,e)},timeout:m===`auto`?null:m,...g,children:(e,{ownerState:t,...n})=>B.cloneElement(i,{style:{opacity:0,transform:Vw(.75),visibility:e===`exited`&&!o?`hidden`:void 0,...Hw[e],...p,...i.props.style},ref:x,...n})})});Ww&&(Ww.muiSupportAuto=!0);var Gw=ui({themeId:v}),Kw=e=>{let{classes:t,disableUnderline:n}=e,r=G({root:[`root`,!n&&`underline`],input:[`input`]},kx,t);return{...t,...r}},qw=q(Tx,{shouldForwardProp:e=>vs(e)||e===`classes`,name:`MuiInput`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...Sx(e,t),!n.disableUnderline&&t.underline]}})(Yg(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.42)`:`rgba(255, 255, 255, 0.7)`;return e.vars&&(t=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:`relative`,variants:[{props:({ownerState:e})=>e.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:`""`,position:`absolute`,right:0,transform:`scaleX(0)`,transition:e.transitions.create(`transform`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:`none`},[`&.${Ax.focused}:after`]:{transform:`scaleX(1) translateX(0)`},[`&.${Ax.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:`"\\00a0"`,position:`absolute`,right:0,transition:e.transitions.create(`border-bottom-color`,{duration:e.transitions.duration.shorter}),pointerEvents:`none`},[`&:hover:not(.${Ax.disabled}, .${Ax.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${Ax.disabled}:before`]:{borderBottomStyle:`dotted`}}},...Object.entries(e.palette).filter(sv()).map(([t])=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}}))]}})),Jw=q(Ex,{name:`MuiInput`,slot:`Input`,overridesResolver:Cx})({}),Yw=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiInput`}),{disableUnderline:r=!1,components:i={},componentsProps:a,fullWidth:o=!1,inputComponent:s=`input`,multiline:c=!1,slotProps:l,slots:u={},type:d=`text`,...f}=n,p=Kw(n),m={root:{ownerState:{disableUnderline:r}}},h=l??a?fn(l??a,m):m;return(0,V.jsx)(Ox,{slots:{root:u.root??i.Root??qw,input:u.input??i.Input??Jw},slotProps:h,fullWidth:o,inputComponent:s,multiline:c,ref:t,type:d,...f,classes:p})});Yw.muiName=`Input`;function Xw(e){return U(`MuiInputLabel`,e)}W(`MuiInputLabel`,[`root`,`focused`,`disabled`,`error`,`required`,`asterisk`,`formControl`,`sizeSmall`,`shrink`,`animated`,`standard`,`filled`,`outlined`]);var Zw=e=>{let{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:o,required:s}=e,c=G({root:[`root`,n&&`formControl`,!a&&`animated`,i&&`shrink`,r&&r!==`normal`&&`size${J(r)}`,o],asterisk:[s&&`asterisk`]},Xw,t);return{...t,...c}},Qw=q(Cw,{shouldForwardProp:e=>vs(e)||e===`classes`,name:`MuiInputLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${yw.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size===`small`&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Yg(({theme:e})=>({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:e.transitions.create([`color`,`transform`,`max-width`],{duration:e.transitions.duration.shorter,easing:e.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:t})=>e===`filled`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,transform:`translate(12px, 7px) scale(0.75)`,maxWidth:`calc(133% - 24px)`}},{props:({variant:e,ownerState:t,size:n})=>e===`filled`&&t.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:t})=>e===`outlined`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,maxWidth:`calc(133% - 32px)`,transform:`translate(14px, -9px) scale(0.75)`}}]}))),$w=B.forwardRef(function(e,t){let n=Xg({name:`MuiInputLabel`,props:e}),{disableAnimation:r=!1,margin:i,shrink:a,variant:o,className:s,...c}=n,l=hx(),u=a;u===void 0&&l&&(u=l.filled||l.focused||l.adornedStart);let d=px({props:n,muiFormControl:l,states:[`size`,`variant`,`required`,`focused`]}),f={...n,disableAnimation:r,formControl:l,shrink:u,size:d.size,variant:d.variant,required:d.required,focused:d.focused},p=Zw(f);return(0,V.jsx)(Qw,{"data-shrink":u,ref:t,className:H(p.root,s),...c,ownerState:f,classes:p})});function eT(e){return U(`MuiLinearProgress`,e)}W(`MuiLinearProgress`,[`root`,`colorPrimary`,`colorSecondary`,`determinate`,`indeterminate`,`buffer`,`query`,`dashed`,`dashedColorPrimary`,`dashedColorSecondary`,`bar`,`bar1`,`bar2`,`barColorPrimary`,`barColorSecondary`,`bar1Indeterminate`,`bar1Determinate`,`bar1Buffer`,`bar2Indeterminate`,`bar2Buffer`]);var tT=4,nT=Nt`
|
|
161
|
+
0% {
|
|
162
|
+
left: -35%;
|
|
163
|
+
right: 100%;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
60% {
|
|
167
|
+
left: 100%;
|
|
168
|
+
right: -90%;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
100% {
|
|
172
|
+
left: 100%;
|
|
173
|
+
right: -90%;
|
|
174
|
+
}
|
|
175
|
+
`,rT=typeof nT==`string`?null:Mt`
|
|
176
|
+
animation: ${nT} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
177
|
+
`,iT=Nt`
|
|
178
|
+
0% {
|
|
179
|
+
left: -200%;
|
|
180
|
+
right: 100%;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
60% {
|
|
184
|
+
left: 107%;
|
|
185
|
+
right: -8%;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
100% {
|
|
189
|
+
left: 107%;
|
|
190
|
+
right: -8%;
|
|
191
|
+
}
|
|
192
|
+
`,aT=typeof iT==`string`?null:Mt`
|
|
193
|
+
animation: ${iT} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
194
|
+
`,oT=Nt`
|
|
195
|
+
0% {
|
|
196
|
+
opacity: 1;
|
|
197
|
+
background-position: 0 -23px;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
60% {
|
|
201
|
+
opacity: 0;
|
|
202
|
+
background-position: 0 -23px;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
100% {
|
|
206
|
+
opacity: 1;
|
|
207
|
+
background-position: -200px -23px;
|
|
208
|
+
}
|
|
209
|
+
`,sT=typeof oT==`string`?null:Mt`
|
|
210
|
+
animation: ${oT} 3s infinite linear;
|
|
211
|
+
`,cT=e=>{let{classes:t,variant:n,color:r}=e;return G({root:[`root`,`color${J(r)}`,n],dashed:[`dashed`,`dashedColor${J(r)}`],bar1:[`bar`,`bar1`,`barColor${J(r)}`,(n===`indeterminate`||n===`query`)&&`bar1Indeterminate`,n===`determinate`&&`bar1Determinate`,n===`buffer`&&`bar1Buffer`],bar2:[`bar`,`bar2`,n!==`buffer`&&`barColor${J(r)}`,n===`buffer`&&`color${J(r)}`,(n===`indeterminate`||n===`query`)&&`bar2Indeterminate`,n===`buffer`&&`bar2Buffer`]},eT,t)},lT=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode===`light`?Ti(e.palette[t].main,.62):Ci(e.palette[t].main,.5),uT=q(`span`,{name:`MuiLinearProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`color${J(n.color)}`],t[n.variant]]}})(Yg(({theme:e})=>({position:`relative`,overflow:`hidden`,display:`block`,height:4,zIndex:0,"@media print":{colorAdjust:`exact`},variants:[...Object.entries(e.palette).filter(sv()).map(([t])=>({props:{color:t},style:{backgroundColor:lT(e,t)}})),{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)`}}]}))),dT=q(`span`,{name:`MuiLinearProgress`,slot:`Dashed`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.dashed,t[`dashedColor${J(n.color)}`]]}})(Yg(({theme:e})=>({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(e.palette).filter(sv()).map(([t])=>{let n=lT(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),sT||{animation:`${oT} 3s infinite linear`}),fT=q(`span`,{name:`MuiLinearProgress`,slot:`Bar1`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${J(n.color)}`],(n.variant===`indeterminate`||n.variant===`query`)&&t.bar1Indeterminate,n.variant===`determinate`&&t.bar1Determinate,n.variant===`buffer`&&t.bar1Buffer]}})(Yg(({theme:e})=>({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(e.palette).filter(sv()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:`determinate`},style:{transition:`transform .${tT}s linear`}},{props:{variant:`buffer`},style:{zIndex:1,transition:`transform .${tT}s linear`}},{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:{width:`auto`}},{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:rT||{animation:`${nT} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),pT=q(`span`,{name:`MuiLinearProgress`,slot:`Bar2`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${J(n.color)}`],(n.variant===`indeterminate`||n.variant===`query`)&&t.bar2Indeterminate,n.variant===`buffer`&&t.bar2Buffer]}})(Yg(({theme:e})=>({width:`100%`,position:`absolute`,left:0,bottom:0,top:0,transition:`transform 0.2s linear`,transformOrigin:`left`,variants:[...Object.entries(e.palette).filter(sv()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].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(e.palette).filter(sv()).map(([t])=>({props:{color:t,variant:`buffer`},style:{backgroundColor:lT(e,t),transition:`transform .${tT}s linear`}})),{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:{width:`auto`}},{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:aT||{animation:`${iT} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),mT=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiLinearProgress`}),{className:r,color:i=`primary`,value:a,valueBuffer:o,variant:s=`indeterminate`,...c}=n,l={...n,color:i,variant:s},u=cT(l),d=fa(),f={},p={bar1:{},bar2:{}};if((s===`determinate`||s===`buffer`)&&a!==void 0){f[`aria-valuenow`]=Math.round(a),f[`aria-valuemin`]=0,f[`aria-valuemax`]=100;let e=a-100;d&&(e=-e),p.bar1.transform=`translateX(${e}%)`}if(s===`buffer`&&o!==void 0){let e=(o||0)-100;d&&(e=-e),p.bar2.transform=`translateX(${e}%)`}return(0,V.jsxs)(uT,{className:H(u.root,r),ownerState:l,role:`progressbar`,...f,ref:t,...c,children:[s===`buffer`?(0,V.jsx)(dT,{className:u.dashed,ownerState:l}):null,(0,V.jsx)(fT,{className:u.bar1,ownerState:l,style:p.bar1}),s===`determinate`?null:(0,V.jsx)(pT,{className:u.bar2,ownerState:l,style:p.bar2})]})}),hT=B.createContext({});function gT(e){return U(`MuiList`,e)}W(`MuiList`,[`root`,`padding`,`dense`,`subheader`]);var _T=e=>{let{classes:t,disablePadding:n,dense:r,subheader:i}=e;return G({root:[`root`,!n&&`padding`,r&&`dense`,i&&`subheader`]},gT,t)},vT=q(`ul`,{name:`MuiList`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:`none`,margin:0,padding:0,position:`relative`,variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),yT=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiList`}),{children:r,className:i,component:a=`ul`,dense:o=!1,disablePadding:s=!1,subheader:c,...l}=n,u=B.useMemo(()=>({dense:o}),[o]),d={...n,component:a,dense:o,disablePadding:s},f=_T(d);return(0,V.jsx)(hT.Provider,{value:u,children:(0,V.jsxs)(vT,{as:a,className:H(f.root,i),ref:t,ownerState:d,...l,children:[c,r]})})});function bT(e){return U(`MuiListItem`,e)}W(`MuiListItem`,[`root`,`container`,`dense`,`alignItemsFlexStart`,`divider`,`gutters`,`padding`,`secondaryAction`]);function xT(e){return U(`MuiListItemButton`,e)}var ST=W(`MuiListItemButton`,[`root`,`focusVisible`,`dense`,`alignItemsFlexStart`,`disabled`,`divider`,`gutters`,`selected`]),CT=(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems===`flex-start`&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},wT=e=>{let{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:a,divider:o,selected:s}=e,c=G({root:[`root`,r&&`dense`,!a&&`gutters`,o&&`divider`,i&&`disabled`,t===`flex-start`&&`alignItemsFlexStart`,s&&`selected`]},xT,n);return{...n,...c}},TT=q(rv,{shouldForwardProp:e=>vs(e)||e===`classes`,name:`MuiListItemButton`,slot:`Root`,overridesResolver:CT})(Yg(({theme:e})=>({display:`flex`,flexGrow:1,justifyContent:`flex-start`,alignItems:`center`,position:`relative`,textDecoration:`none`,minWidth:0,boxSizing:`border-box`,textAlign:`left`,paddingTop:8,paddingBottom:8,transition:e.transitions.create(`background-color`,{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:`none`,backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:`transparent`}},[`&.${ST.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xi(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ST.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ST.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:xi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xi(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ST.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ST.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:`padding-box`}},{props:{alignItems:`flex-start`},style:{alignItems:`flex-start`}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.dense,style:{paddingTop:4,paddingBottom:4}}]}))),ET=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiListItemButton`}),{alignItems:r=`center`,autoFocus:i=!1,component:a=`div`,children:o,dense:s=!1,disableGutters:c=!1,divider:l=!1,focusVisibleClassName:u,selected:d=!1,className:f,...p}=n,m=B.useContext(hT),h=B.useMemo(()=>({dense:s||m.dense||!1,alignItems:r,disableGutters:c}),[r,m.dense,s,c]),g=B.useRef(null);a_(()=>{i&&g.current&&g.current.focus()},[i]);let _={...n,alignItems:r,dense:h.dense,disableGutters:c,divider:l,selected:d},v=wT(_),y=l_(g,t);return(0,V.jsx)(hT.Provider,{value:h,children:(0,V.jsx)(TT,{ref:y,href:p.href||p.to,component:(p.href||p.to)&&a===`div`?`button`:a,focusVisibleClassName:H(v.focusVisible,u),ownerState:_,className:H(v.root,f),...p,classes:v,children:o})})});function DT(e){return U(`MuiListItemSecondaryAction`,e)}W(`MuiListItemSecondaryAction`,[`root`,`disableGutters`]);var OT=e=>{let{disableGutters:t,classes:n}=e;return G({root:[`root`,t&&`disableGutters`]},DT,n)},kT=q(`div`,{name:`MuiListItemSecondaryAction`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:`absolute`,right:16,top:`50%`,transform:`translateY(-50%)`,variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),AT=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiListItemSecondaryAction`}),{className:r,...i}=n,a=B.useContext(hT),o={...n,disableGutters:a.disableGutters};return(0,V.jsx)(kT,{className:H(OT(o).root,r),ownerState:o,ref:t,...i})});AT.muiName=`ListItemSecondaryAction`;var jT=(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems===`flex-start`&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},MT=e=>{let{alignItems:t,classes:n,dense:r,disableGutters:i,disablePadding:a,divider:o,hasSecondaryAction:s}=e;return G({root:[`root`,r&&`dense`,!i&&`gutters`,!a&&`padding`,o&&`divider`,t===`flex-start`&&`alignItemsFlexStart`,s&&`secondaryAction`],container:[`container`]},bT,n)},NT=q(`div`,{name:`MuiListItem`,slot:`Root`,overridesResolver:jT})(Yg(({theme:e})=>({display:`flex`,justifyContent:`flex-start`,alignItems:`center`,position:`relative`,textDecoration:`none`,width:`100%`,boxSizing:`border-box`,textAlign:`left`,variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>!e.disablePadding&&e.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:e})=>!e.disablePadding&&!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>!e.disablePadding&&!!e.secondaryAction,style:{paddingRight:48}},{props:({ownerState:e})=>!!e.secondaryAction,style:{[`& > .${ST.root}`]:{paddingRight:48}}},{props:{alignItems:`flex-start`},style:{alignItems:`flex-start`}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:`padding-box`}},{props:({ownerState:e})=>e.button,style:{transition:e.transitions.create(`background-color`,{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:`none`,backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:`transparent`}}}},{props:({ownerState:e})=>e.hasSecondaryAction,style:{paddingRight:48}}]}))),PT=q(`li`,{name:`MuiListItem`,slot:`Container`,overridesResolver:(e,t)=>t.container})({position:`relative`}),FT=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiListItem`}),{alignItems:r=`center`,children:i,className:a,component:o,components:s={},componentsProps:c={},ContainerComponent:l=`li`,ContainerProps:{className:u,...d}={},dense:f=!1,disableGutters:p=!1,disablePadding:m=!1,divider:h=!1,secondaryAction:g,slotProps:_={},slots:v={},...y}=n,b=B.useContext(hT),x=B.useMemo(()=>({dense:f||b.dense||!1,alignItems:r,disableGutters:p}),[r,b.dense,f,p]),S=B.useRef(null),C=B.Children.toArray(i),w=C.length&&n_(C[C.length-1],[`ListItemSecondaryAction`]),T={...n,alignItems:r,dense:x.dense,disableGutters:p,disablePadding:m,divider:h,hasSecondaryAction:w},E=MT(T),D=l_(S,t),O=v.root||s.Root||NT,k=_.root||c.root||{},A={className:H(E.root,k.className,a),...y},j=o||`li`;return w?(j=!A.component&&!o?`div`:j,l===`li`&&(j===`li`?j=`div`:A.component===`li`&&(A.component=`div`)),(0,V.jsx)(hT.Provider,{value:x,children:(0,V.jsxs)(PT,{as:l,className:H(E.container,u),ref:D,ownerState:T,...d,children:[(0,V.jsx)(O,{...k,...!fx(O)&&{as:j,ownerState:{...T,...k.ownerState}},...A,children:C}),C.pop()]})})):(0,V.jsx)(hT.Provider,{value:x,children:(0,V.jsxs)(O,{...k,as:j,ref:D,...!fx(O)&&{ownerState:{...T,...k.ownerState}},...A,children:[C,g&&(0,V.jsx)(AT,{children:g})]})})});function IT(e){return U(`MuiListItemIcon`,e)}var LT=W(`MuiListItemIcon`,[`root`,`alignItemsFlexStart`]),RT=e=>{let{alignItems:t,classes:n}=e;return G({root:[`root`,t===`flex-start`&&`alignItemsFlexStart`]},IT,n)},zT=q(`div`,{name:`MuiListItemIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.alignItems===`flex-start`&&t.alignItemsFlexStart]}})(Yg(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:`inline-flex`,variants:[{props:{alignItems:`flex-start`},style:{marginTop:8}}]}))),BT=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiListItemIcon`}),{className:r,...i}=n,a=B.useContext(hT),o={...n,alignItems:a.alignItems};return(0,V.jsx)(zT,{className:H(RT(o).root,r),ownerState:o,ref:t,...i})});function VT(e){return U(`MuiListItemText`,e)}var HT=W(`MuiListItemText`,[`root`,`multiline`,`dense`,`inset`,`primary`,`secondary`]),UT=e=>{let{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return G({root:[`root`,n&&`inset`,a&&`dense`,r&&i&&`multiline`],primary:[`primary`],secondary:[`secondary`]},VT,t)},WT=q(`div`,{name:`MuiListItemText`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${HT.primary}`]:t.primary},{[`& .${HT.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:`1 1 auto`,minWidth:0,marginTop:4,marginBottom:4,[`.${Bv.root}:where(& .${HT.primary})`]:{display:`block`},[`.${Bv.root}:where(& .${HT.secondary})`]:{display:`block`},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),GT=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiListItemText`}),{children:r,className:i,disableTypography:a=!1,inset:o=!1,primary:s,primaryTypographyProps:c,secondary:l,secondaryTypographyProps:u,slots:d={},slotProps:f={},...p}=n,{dense:m}=B.useContext(hT),h=s??r,g=l,_={...n,disableTypography:a,inset:o,primary:!!h,secondary:!!g,dense:m},v=UT(_),y={slots:d,slotProps:{primary:c,secondary:u,...f}},[b,x]=B_(`root`,{className:H(v.root,i),elementType:WT,externalForwardedProps:{...y,...p},ownerState:_,ref:t}),[S,C]=B_(`primary`,{className:v.primary,elementType:Kv,externalForwardedProps:y,ownerState:_}),[w,T]=B_(`secondary`,{className:v.secondary,elementType:Kv,externalForwardedProps:y,ownerState:_});return h!=null&&h.type!==Kv&&!a&&(h=(0,V.jsx)(S,{variant:m?`body2`:`body1`,component:C?.variant?void 0:`span`,...C,children:h})),g!=null&&g.type!==Kv&&!a&&(g=(0,V.jsx)(w,{variant:`body2`,color:`textSecondary`,...T,children:g})),(0,V.jsxs)(b,{...x,children:[h,g]})}),KT=Yi;function qT(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function JT(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function YT(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(``))}function XT(e,t,n,r,i,a){let o=!1,s=i(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(o)return!1;o=!0}let t=r?!1:s.disabled||s.getAttribute(`aria-disabled`)===`true`;if(!s.hasAttribute(`tabindex`)||!YT(s,a)||t)s=i(e,s,n);else return s.focus(),!0}return!1}var ZT=B.forwardRef(function(e,t){let{actions:n,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:o,disabledItemsFocusable:s=!1,disableListWrap:c=!1,onKeyDown:l,variant:u=`selectedMenu`,...d}=e,f=B.useRef(null),p=B.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});a_(()=>{r&&f.current.focus()},[r]),B.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{let n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){let n=`${KT(i_(e))}px`;f.current.style[t===`rtl`?`paddingLeft`:`paddingRight`]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}}),[]);let m=e=>{let t=f.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey){l&&l(e);return}let r=r_(t).activeElement;if(n===`ArrowDown`)e.preventDefault(),XT(t,r,c,s,qT);else if(n===`ArrowUp`)e.preventDefault(),XT(t,r,c,s,JT);else if(n===`Home`)e.preventDefault(),XT(t,null,c,s,qT);else if(n===`End`)e.preventDefault(),XT(t,null,c,s,JT);else if(n.length===1){let i=p.current,a=n.toLowerCase(),o=performance.now();i.keys.length>0&&(o-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&a!==i.keys[0]&&(i.repeating=!1)),i.lastTime=o,i.keys.push(a);let c=r&&!i.repeating&&YT(r,i);i.previousKeyMatched&&(c||XT(t,r,!1,s,qT,i))?e.preventDefault():i.previousKeyMatched=!1}l&&l(e)},h=l_(f,t),g=-1;B.Children.forEach(a,(e,t)=>{if(!B.isValidElement(e)){g===t&&(g+=1,g>=a.length&&(g=-1));return}e.props.disabled||(u===`selectedMenu`&&e.props.selected||g===-1)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))});let _=B.Children.map(a,(e,t)=>{if(t===g){let t={};return i&&(t.autoFocus=!0),e.props.tabIndex===void 0&&u===`selectedMenu`&&(t.tabIndex=0),B.cloneElement(e,t)}return e});return(0,V.jsx)(yT,{role:`menu`,ref:h,className:o,onKeyDown:m,tabIndex:r?0:-1,...d,children:_})});function QT(e){return U(`MuiPopover`,e)}W(`MuiPopover`,[`root`,`paper`]);function $T(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function eE(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function tE(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function nE(e){return typeof e==`function`?e():e}var rE=e=>{let{classes:t}=e;return G({root:[`root`],paper:[`paper`]},QT,t)},iE=q(mC,{name:`MuiPopover`,slot:`Root`,overridesResolver:(e,t)=>t.root})({}),aE=q(z_,{name:`MuiPopover`,slot:`Paper`,overridesResolver:(e,t)=>t.paper})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),oE=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiPopover`}),{action:r,anchorEl:i,anchorOrigin:a={vertical:`top`,horizontal:`left`},anchorPosition:o,anchorReference:s=`anchorEl`,children:c,className:l,container:u,elevation:d=8,marginThreshold:f=16,open:p,PaperProps:m={},slots:h={},slotProps:g={},transformOrigin:_={vertical:`top`,horizontal:`left`},TransitionComponent:v,transitionDuration:y=`auto`,TransitionProps:b={},disableScrollLock:x=!1,...S}=n,C=B.useRef(),w={...n,anchorOrigin:a,anchorReference:s,elevation:d,marginThreshold:f,transformOrigin:_,TransitionComponent:v,transitionDuration:y,TransitionProps:b},T=rE(w),E=B.useCallback(()=>{if(s===`anchorPosition`)return o;let e=nE(i),t=(e&&e.nodeType===1?e:r_(C.current).body).getBoundingClientRect();return{top:t.top+$T(t,a.vertical),left:t.left+eE(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),D=B.useCallback(e=>({vertical:$T(e,_.vertical),horizontal:eE(e,_.horizontal)}),[_.horizontal,_.vertical]),O=B.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if(s===`none`)return{top:null,left:null,transformOrigin:tE(n)};let r=E(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=i_(nE(i)),d=u.innerHeight-f,p=u.innerWidth-f;if(f!==null&&a<f){let e=a-f;a-=e,n.vertical+=e}else if(f!==null&&c>d){let e=c-d;a-=e,n.vertical+=e}if(f!==null&&o<f){let e=o-f;o-=e,n.horizontal+=e}else if(l>p){let e=l-p;o-=e,n.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(o)}px`,transformOrigin:tE(n)}},[i,s,E,D,f]),[k,A]=B.useState(p),j=B.useCallback(()=>{let e=C.current;if(!e)return;let t=O(e);t.top!==null&&e.style.setProperty(`top`,t.top),t.left!==null&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,A(!0)},[O]);B.useEffect(()=>(x&&window.addEventListener(`scroll`,j),()=>window.removeEventListener(`scroll`,j)),[i,x,j]);let M=()=>{j()},N=()=>{A(!1)};B.useEffect(()=>{p&&j()}),B.useImperativeHandle(r,()=>p?{updatePosition:()=>{j()}}:null,[p,j]),B.useEffect(()=>{if(!p)return;let e=t_(()=>{j()}),t=i_(nE(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,p,j]);let P=y,F={slots:{transition:v,...h},slotProps:{transition:b,paper:m,...g}},[I,L]=B_(`transition`,{elementType:Ww,externalForwardedProps:F,ownerState:w,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),M()},onExited:t=>{e.onExited?.(t),N()}}),additionalProps:{appear:!0,in:p}});y===`auto`&&!I.muiSupportAuto&&(P=void 0);let ee=u||(i?r_(nE(i)).body:void 0),[R,{slots:te,slotProps:ne,...re}]=B_(`root`,{ref:t,elementType:iE,externalForwardedProps:{...F,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:u_(typeof g.backdrop==`function`?g.backdrop(w):g.backdrop,{invisible:!0})},container:ee,open:p},ownerState:w,className:H(T.root,l)}),[z,ie]=B_(`paper`,{ref:C,className:T.paper,elementType:aE,externalForwardedProps:F,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:k?void 0:{opacity:0}},ownerState:w});return(0,V.jsx)(R,{...re,...!fx(R)&&{slots:te,slotProps:ne,disableScrollLock:x},children:(0,V.jsx)(I,{...L,timeout:P,children:(0,V.jsx)(z,{...ie,children:c})})})});function sE(e){return U(`MuiMenu`,e)}W(`MuiMenu`,[`root`,`paper`,`list`]);var cE={vertical:`top`,horizontal:`right`},lE={vertical:`top`,horizontal:`left`},uE=e=>{let{classes:t}=e;return G({root:[`root`],paper:[`paper`],list:[`list`]},sE,t)},dE=q(oE,{shouldForwardProp:e=>vs(e)||e===`classes`,name:`MuiMenu`,slot:`Root`,overridesResolver:(e,t)=>t.root})({}),fE=q(aE,{name:`MuiMenu`,slot:`Paper`,overridesResolver:(e,t)=>t.paper})({maxHeight:`calc(100% - 96px)`,WebkitOverflowScrolling:`touch`}),pE=q(ZT,{name:`MuiMenu`,slot:`List`,overridesResolver:(e,t)=>t.list})({outline:0}),mE=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiMenu`}),{autoFocus:r=!0,children:i,className:a,disableAutoFocusItem:o=!1,MenuListProps:s={},onClose:c,open:l,PaperProps:u={},PopoverClasses:d,transitionDuration:f=`auto`,TransitionProps:{onEntering:p,...m}={},variant:h=`selectedMenu`,slots:g={},slotProps:_={},...v}=n,y=fa(),b={...n,autoFocus:r,disableAutoFocusItem:o,MenuListProps:s,onEntering:p,PaperProps:u,transitionDuration:f,TransitionProps:m,variant:h},x=uE(b),S=r&&!o&&l,C=B.useRef(null),w=(e,t)=>{C.current&&C.current.adjustStyleForScrollbar(e,{direction:y?`rtl`:`ltr`}),p&&p(e,t)},T=e=>{e.key===`Tab`&&(e.preventDefault(),c&&c(e,`tabKeyDown`))},E=-1;B.Children.map(i,(e,t)=>{B.isValidElement(e)&&(e.props.disabled||(h===`selectedMenu`&&e.props.selected||E===-1)&&(E=t))});let D={slots:g,slotProps:{list:s,transition:m,paper:u,..._}},O=ra({elementType:g.root,externalSlotProps:_.root,ownerState:b,className:[x.root,a]}),[k,A]=B_(`paper`,{className:x.paper,elementType:fE,externalForwardedProps:D,shouldForwardComponentProp:!0,ownerState:b}),[j,M]=B_(`list`,{className:H(x.list,s.className),elementType:pE,shouldForwardComponentProp:!0,externalForwardedProps:D,getSlotProps:e=>({...e,onKeyDown:t=>{T(t),e.onKeyDown?.(t)}}),ownerState:b}),N=typeof D.slotProps.transition==`function`?D.slotProps.transition(b):D.slotProps.transition;return(0,V.jsx)(dE,{onClose:c,anchorOrigin:{vertical:`bottom`,horizontal:y?`right`:`left`},transformOrigin:y?cE:lE,slots:{root:g.root,paper:k,backdrop:g.backdrop,...g.transition&&{transition:g.transition}},slotProps:{root:O,paper:A,backdrop:typeof _.backdrop==`function`?_.backdrop(b):_.backdrop,transition:{...N,onEntering:(...e)=>{w(...e),N?.onEntering?.(...e)}}},open:l,ref:t,transitionDuration:f,ownerState:b,...v,classes:d,children:(0,V.jsx)(j,{actions:C,autoFocus:r&&(E===-1||o),autoFocusItem:S,variant:h,...M,children:i})})});function hE(e){return U(`MuiMenuItem`,e)}var gE=W(`MuiMenuItem`,[`root`,`focusVisible`,`dense`,`disabled`,`divider`,`gutters`,`selected`]),_E=(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},vE=e=>{let{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:o}=e,s=G({root:[`root`,n&&`dense`,t&&`disabled`,!i&&`gutters`,r&&`divider`,a&&`selected`]},hE,o);return{...o,...s}},yE=q(rv,{shouldForwardProp:e=>vs(e)||e===`classes`,name:`MuiMenuItem`,slot:`Root`,overridesResolver:_E})(Yg(({theme:e})=>({...e.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:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:`transparent`}},[`&.${gE.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xi(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${gE.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${gE.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:xi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xi(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${gE.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${gE.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${HC.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${HC.inset}`]:{marginLeft:52},[`& .${HT.root}`]:{marginTop:0,marginBottom:0},[`& .${HT.inset}`]:{paddingLeft:36},[`& .${LT.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:`padding-box`}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up(`sm`)]:{minHeight:`auto`}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${LT.root} svg`]:{fontSize:`1.25rem`}}}]}))),bE=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiMenuItem`}),{autoFocus:r=!1,component:i=`li`,dense:a=!1,divider:o=!1,disableGutters:s=!1,focusVisibleClassName:c,role:l=`menuitem`,tabIndex:u,className:d,...f}=n,p=B.useContext(hT),m=B.useMemo(()=>({dense:a||p.dense||!1,disableGutters:s}),[p.dense,a,s]),h=B.useRef(null);a_(()=>{r&&h.current&&h.current.focus()},[r]);let g={...n,dense:m.dense,divider:o,disableGutters:s},_=vE(n),v=l_(h,t),y;return n.disabled||(y=u===void 0?-1:u),(0,V.jsx)(hT.Provider,{value:m,children:(0,V.jsx)(yE,{ref:v,role:l,tabIndex:y,component:i,focusVisibleClassName:H(_.focusVisible,c),className:H(_.root,d),...f,ownerState:g,classes:_})})});function xE(e){return U(`MuiNativeSelect`,e)}var SE=W(`MuiNativeSelect`,[`root`,`select`,`multiple`,`filled`,`outlined`,`standard`,`disabled`,`icon`,`iconOpen`,`iconFilled`,`iconOutlined`,`iconStandard`,`nativeInput`,`error`]),CE=e=>{let{classes:t,variant:n,disabled:r,multiple:i,open:a,error:o}=e;return G({select:[`select`,n,r&&`disabled`,i&&`multiple`,o&&`error`],icon:[`icon`,`icon${J(n)}`,a&&`iconOpen`,r&&`disabled`]},xE,t)},wE=q(`select`,{name:`MuiNativeSelect`})(({theme:e})=>({MozAppearance:`none`,WebkitAppearance:`none`,userSelect:`none`,borderRadius:0,cursor:`pointer`,"&:focus":{borderRadius:0},[`&.${SE.disabled}`]:{cursor:`default`},"&[multiple]":{height:`auto`},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).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:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),TE=q(wE,{name:`MuiNativeSelect`,slot:`Select`,shouldForwardProp:vs,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${SE.multiple}`]:t.multiple}]}})({}),EE=q(`svg`,{name:`MuiNativeSelect`})(({theme:e})=>({position:`absolute`,right:0,top:`calc(50% - .5em)`,pointerEvents:`none`,color:(e.vars||e).palette.action.active,[`&.${SE.disabled}`]:{color:(e.vars||e).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}}]})),DE=q(EE,{name:`MuiNativeSelect`,slot:`Icon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${J(n.variant)}`],n.open&&t.iconOpen]}})({}),OE=B.forwardRef(function(e,t){let{className:n,disabled:r,error:i,IconComponent:a,inputRef:o,variant:s=`standard`,...c}=e,l={...e,disabled:r,variant:s,error:i},u=CE(l);return(0,V.jsxs)(B.Fragment,{children:[(0,V.jsx)(TE,{ownerState:l,className:H(u.select,n),disabled:r,ref:o||t,...c}),e.multiple?null:(0,V.jsx)(DE,{as:a,ownerState:l,className:u.icon})]})}),kE,AE=q(`fieldset`,{name:`MuiNotchedOutlined`,shouldForwardProp:vs})({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%`}),jE=q(`legend`,{name:`MuiNotchedOutlined`,shouldForwardProp:vs})(Yg(({theme:e})=>({float:`unset`,width:`auto`,overflow:`hidden`,variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:`11px`,transition:e.transitions.create(`width`,{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:`block`,padding:0,height:11,fontSize:`0.75em`,visibility:`hidden`,maxWidth:.01,transition:e.transitions.create(`max-width`,{duration:50,easing:e.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:e.transitions.create(`max-width`,{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function ME(e){let{children:t,classes:n,className:r,label:i,notched:a,...o}=e,s=i!=null&&i!==``,c={...e,notched:a,withLabel:s};return(0,V.jsx)(AE,{"aria-hidden":!0,className:r,ownerState:c,...o,children:(0,V.jsx)(jE,{ownerState:c,children:s?(0,V.jsx)(`span`,{children:i}):kE||=(0,V.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:``})})})}var NE=e=>{let{classes:t}=e,n=G({root:[`root`],notchedOutline:[`notchedOutline`],input:[`input`]},jx,t);return{...t,...n}},PE=q(Tx,{shouldForwardProp:e=>vs(e)||e===`classes`,name:`MuiOutlinedInput`,slot:`Root`,overridesResolver:Sx})(Yg(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.23)`:`rgba(255, 255, 255, 0.23)`;return{position:`relative`,borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Mx.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Mx.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Mx.focused} .${Mx.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(sv()).map(([t])=>({props:{color:t},style:{[`&.${Mx.focused} .${Mx.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Mx.error} .${Mx.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Mx.disabled} .${Mx.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:14}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:14}},{props:({ownerState:e})=>e.multiline,style:{padding:`16.5px 14px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{padding:`8.5px 14px`}}]}})),FE=q(ME,{name:`MuiOutlinedInput`,slot:`NotchedOutline`,overridesResolver:(e,t)=>t.notchedOutline})(Yg(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.23)`:`rgba(255, 255, 255, 0.23)`;return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),IE=q(Ex,{name:`MuiOutlinedInput`,slot:`Input`,overridesResolver:Cx})(Yg(({theme:e})=>({padding:`16.5px 14px`,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode===`light`?null:`0 0 0 100px #266798 inset`,WebkitTextFillColor:e.palette.mode===`light`?null:`#fff`,caretColor:e.palette.mode===`light`?null:`#fff`,borderRadius:`inherit`}},...e.vars&&{"&:-webkit-autofill":{borderRadius:`inherit`},[e.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}}]}))),LE=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiOutlinedInput`}),{components:r={},fullWidth:i=!1,inputComponent:a=`input`,label:o,multiline:s=!1,notched:c,slots:l={},slotProps:u={},type:d=`text`,...f}=n,p=NE(n),m=hx(),h=px({props:n,muiFormControl:m,states:[`color`,`disabled`,`error`,`focused`,`hiddenLabel`,`size`,`required`]}),g={...n,color:h.color||`primary`,disabled:h.disabled,error:h.error,focused:h.focused,formControl:m,fullWidth:i,hiddenLabel:h.hiddenLabel,multiline:s,size:h.size,type:d},_=l.root??r.Root??PE,v=l.input??r.Input??IE,[y,b]=B_(`notchedOutline`,{elementType:FE,className:p.notchedOutline,shouldForwardComponentProp:!0,ownerState:g,externalForwardedProps:{slots:l,slotProps:u},additionalProps:{label:o!=null&&o!==``&&h.required?(0,V.jsxs)(B.Fragment,{children:[o,` `,`*`]}):o}});return(0,V.jsx)(Ox,{slots:{root:_,input:v},slotProps:u,renderSuffix:e=>(0,V.jsx)(y,{...b,notched:c===void 0?!!(e.startAdornment||e.filled||e.focused):c}),fullWidth:i,inputComponent:a,multiline:s,ref:t,type:d,...f,classes:{...p,notchedOutline:null}})});LE.muiName=`Input`;var RE=Y((0,V.jsx)(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z`}),`RadioButtonUnchecked`),zE=Y((0,V.jsx)(`path`,{d:`M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z`}),`RadioButtonChecked`);q(`span`,{name:`MuiRadioButtonIcon`,shouldForwardProp:vs})({position:`relative`,display:`flex`}),q(RE,{name:`MuiRadioButtonIcon`})({transform:`scale(1)`}),q(zE,{name:`MuiRadioButtonIcon`})(Yg(({theme:e})=>({left:0,position:`absolute`,transform:`scale(0)`,transition:e.transitions.create(`transform`,{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:`scale(1)`,transition:e.transitions.create(`transform`,{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));var BE=W(`MuiRadio`,[`root`,`checked`,`disabled`,`colorPrimary`,`colorSecondary`,`sizeSmall`]);q(OS,{shouldForwardProp:e=>vs(e)||e===`classes`,name:`MuiRadio`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.size!==`medium`&&t[`size${J(n.size)}`],t[`color${J(n.color)}`]]}})(Yg(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${BE.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:`default`,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:xi(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(sv()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xi(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(sv()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${BE.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:`transparent`}}}}]})));function VE(e){return U(`MuiSelect`,e)}var HE=W(`MuiSelect`,[`root`,`select`,`multiple`,`filled`,`outlined`,`standard`,`disabled`,`focused`,`icon`,`iconOpen`,`iconFilled`,`iconOutlined`,`iconStandard`,`nativeInput`,`error`]),UE,WE=q(wE,{name:`MuiSelect`,slot:`Select`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`&.${HE.select}`]:t.select},{[`&.${HE.select}`]:t[n.variant]},{[`&.${HE.error}`]:t.error},{[`&.${HE.multiple}`]:t.multiple}]}})({[`&.${HE.select}`]:{height:`auto`,minHeight:`1.4375em`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,overflow:`hidden`}}),GE=q(EE,{name:`MuiSelect`,slot:`Icon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${J(n.variant)}`],n.open&&t.iconOpen]}})({}),KE=q(`input`,{shouldForwardProp:e=>_s(e)&&e!==`classes`,name:`MuiSelect`,slot:`NativeInput`,overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:`absolute`,opacity:0,pointerEvents:`none`,width:`100%`,boxSizing:`border-box`});function qE(e,t){return typeof t==`object`&&t?e===t:String(e)===String(t)}function JE(e){return e==null||typeof e==`string`&&!e.trim()}var YE=e=>{let{classes:t,variant:n,disabled:r,multiple:i,open:a,error:o}=e;return G({select:[`select`,n,r&&`disabled`,i&&`multiple`,o&&`error`],icon:[`icon`,`icon${J(n)}`,a&&`iconOpen`,r&&`disabled`],nativeInput:[`nativeInput`]},VE,t)},XE=B.forwardRef(function(e,t){let{"aria-describedby":n,"aria-label":r,autoFocus:i,autoWidth:a,children:o,className:s,defaultOpen:c,defaultValue:l,disabled:u,displayEmpty:d,error:f=!1,IconComponent:p,inputRef:m,labelId:h,MenuProps:g={},multiple:v,name:y,onBlur:b,onChange:x,onClose:S,onFocus:C,onOpen:w,open:T,readOnly:E,renderValue:D,required:O,SelectDisplayProps:k={},tabIndex:A,type:j,value:M,variant:N=`standard`,...P}=e,[F,I]=s_({controlled:M,default:l,name:`Select`}),[L,ee]=s_({controlled:T,default:c,name:`Select`}),R=B.useRef(null),te=B.useRef(null),[ne,re]=B.useState(null),{current:z}=B.useRef(T!=null),[ie,ae]=B.useState(),oe=l_(t,m),se=B.useCallback(e=>{te.current=e,e&&re(e)},[]),ce=ne?.parentNode;B.useImperativeHandle(oe,()=>({focus:()=>{te.current.focus()},node:R.current,value:F}),[F]),B.useEffect(()=>{c&&L&&ne&&!z&&(ae(a?null:ce.clientWidth),te.current.focus())},[ne,a]),B.useEffect(()=>{i&&te.current.focus()},[i]),B.useEffect(()=>{if(!h)return;let e=r_(te.current).getElementById(h);if(e){let t=()=>{getSelection().isCollapsed&&te.current.focus()};return e.addEventListener(`click`,t),()=>{e.removeEventListener(`click`,t)}}},[h]);let le=(e,t)=>{e?w&&w(t):S&&S(t),z||(ae(a?null:ce.clientWidth),ee(e))},ue=e=>{e.button===0&&(e.preventDefault(),te.current.focus(),le(!0,e))},de=e=>{le(!1,e)},fe=B.Children.toArray(o),pe=e=>{let t=fe.find(t=>t.props.value===e.target.value);t!==void 0&&(I(t.props.value),x&&x(e,t))},me=e=>t=>{let n;if(t.currentTarget.hasAttribute(`tabindex`)){if(v){n=Array.isArray(F)?F.slice():[];let t=F.indexOf(e.props.value);t===-1?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),F!==n&&(I(n),x)){let r=t.nativeEvent||t,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:n,name:y}}),x(i,e)}v||le(!1,t)}},he=e=>{E||[` `,`ArrowUp`,`ArrowDown`,`Enter`].includes(e.key)&&(e.preventDefault(),le(!0,e))},ge=ne!==null&&L,_e=e=>{!ge&&b&&(Object.defineProperty(e,"target",{writable:!0,value:{value:F,name:y}}),b(e))};delete P[`aria-invalid`];let ve,ye,be=[],xe=!1;(_x({value:F})||d)&&(D?ve=D(F):xe=!0);let Se=fe.map(e=>{if(!B.isValidElement(e))return null;let t;if(v){if(!Array.isArray(F))throw Error(_(2));t=F.some(t=>qE(t,e.props.value)),t&&xe&&be.push(e.props.children)}else t=qE(F,e.props.value),t&&xe&&(ye=e.props.children);return B.cloneElement(e,{"aria-selected":t?`true`:`false`,onClick:me(e),onKeyUp:t=>{t.key===` `&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:`option`,selected:t,value:void 0,"data-value":e.props.value})});xe&&(ve=v?be.length===0?null:be.reduce((e,t,n)=>(e.push(t),n<be.length-1&&e.push(`, `),e),[]):ye);let Ce=ie;!a&&z&&ne&&(Ce=ce.clientWidth);let we;we=A===void 0?u?null:0:A;let Te=k.id||(y?`mui-component-select-${y}`:void 0),Ee={...e,variant:N,value:F,open:ge,error:f},De=YE(Ee),Oe={...g.PaperProps,...g.slotProps?.paper},ke=Ri();return(0,V.jsxs)(B.Fragment,{children:[(0,V.jsx)(WE,{as:`div`,ref:se,tabIndex:we,role:`combobox`,"aria-controls":ge?ke:void 0,"aria-disabled":u?`true`:void 0,"aria-expanded":ge?`true`:`false`,"aria-haspopup":`listbox`,"aria-label":r,"aria-labelledby":[h,Te].filter(Boolean).join(` `)||void 0,"aria-describedby":n,"aria-required":O?`true`:void 0,"aria-invalid":f?`true`:void 0,onKeyDown:he,onMouseDown:u||E?null:ue,onBlur:_e,onFocus:C,...k,ownerState:Ee,className:H(k.className,De.select,s),id:Te,children:JE(ve)?UE||=(0,V.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:``}):ve}),(0,V.jsx)(KE,{"aria-invalid":f,value:Array.isArray(F)?F.join(`,`):F,name:y,ref:R,"aria-hidden":!0,onChange:pe,tabIndex:-1,disabled:u,className:De.nativeInput,autoFocus:i,required:O,...P,ownerState:Ee}),(0,V.jsx)(GE,{as:p,className:De.icon,ownerState:Ee}),(0,V.jsx)(mE,{id:`menu-${y||``}`,anchorEl:ce,open:ge,onClose:de,anchorOrigin:{vertical:`bottom`,horizontal:`center`},transformOrigin:{vertical:`top`,horizontal:`center`},...g,slotProps:{...g.slotProps,list:{"aria-labelledby":h,role:`listbox`,"aria-multiselectable":v?`true`:void 0,disableListWrap:!0,id:ke,...g.MenuListProps},paper:{...Oe,style:{minWidth:Ce,...Oe==null?null:Oe.style}}},children:Se})]})}),ZE=e=>{let{classes:t}=e,n=G({root:[`root`]},VE,t);return{...t,...n}},QE={name:`MuiSelect`,overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>vs(e)&&e!==`variant`,slot:`Root`},$E=q(Yw,QE)(``),eD=q(LE,QE)(``),tD=q(tw,QE)(``),nD=B.forwardRef(function(e,t){let n=Xg({name:`MuiSelect`,props:e}),{autoWidth:r=!1,children:i,classes:a={},className:o,defaultOpen:s=!1,displayEmpty:c=!1,IconComponent:l=Fx,id:u,input:d,inputProps:f,label:p,labelId:m,MenuProps:h,multiple:g=!1,native:_=!1,onClose:v,onOpen:y,open:b,renderValue:x,SelectDisplayProps:S,variant:C=`outlined`,...w}=n,T=_?OE:XE,E=px({props:n,muiFormControl:hx(),states:[`variant`,`error`]}),D=E.variant||C,O={...n,variant:D,classes:a},k=ZE(O),{root:A,...j}=k,M=d||{standard:(0,V.jsx)($E,{ownerState:O}),outlined:(0,V.jsx)(eD,{label:p,ownerState:O}),filled:(0,V.jsx)(tD,{ownerState:O})}[D],N=l_(t,ia(M));return(0,V.jsx)(B.Fragment,{children:B.cloneElement(M,{inputComponent:T,inputProps:{children:i,error:E.error,IconComponent:l,variant:D,type:void 0,multiple:g,..._?{id:u}:{autoWidth:r,defaultOpen:s,displayEmpty:c,labelId:m,MenuProps:h,onClose:v,onOpen:y,open:b,renderValue:x,SelectDisplayProps:{id:u,...S}},...f,classes:f?fn(j,f.classes):j,...d?d.props.inputProps:{}},...(g&&_||c)&&D===`outlined`?{notched:!0}:{},ref:N,className:H(M.props.className,o,k.root),...!d&&{variant:D},...w})})});nD.muiName=`Select`;function rD(e={}){let{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:a}=e,o=qi();B.useEffect(()=>{if(!i)return;function e(e){e.defaultPrevented||e.key===`Escape`&&r?.(e,`escapeKeyDown`)}return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[i,r]);let s=Bi((e,t)=>{r?.(e,t)}),c=Bi(e=>{!r||e==null||o.start(e,()=>{s(null,`timeout`)})});B.useEffect(()=>(i&&c(t),o.clear),[i,t,c,o]);let l=e=>{r?.(e,`clickaway`)},u=o.clear,d=B.useCallback(()=>{t!=null&&c(a??t*.5)},[t,a,c]),f=e=>t=>{let n=e.onBlur;n?.(t),d()},p=e=>t=>{let n=e.onFocus;n?.(t),u()},m=e=>t=>{let n=e.onMouseEnter;n?.(t),u()},h=e=>t=>{let n=e.onMouseLeave;n?.(t),d()};return B.useEffect(()=>{if(!n&&i)return window.addEventListener(`focus`,d),window.addEventListener(`blur`,u),()=>{window.removeEventListener(`focus`,d),window.removeEventListener(`blur`,u)}},[n,i,d,u]),{getRootProps:(t={})=>{let n={...$i(e),...$i(t)};return{role:`presentation`,...t,...n,onBlur:f(n),onFocus:p(n),onMouseEnter:m(n),onMouseLeave:h(n)}},onClickAway:l}}function iD(e){return U(`MuiSnackbarContent`,e)}W(`MuiSnackbarContent`,[`root`,`message`,`action`]);var aD=e=>{let{classes:t}=e;return G({root:[`root`],action:[`action`],message:[`message`]},iD,t)},oD=q(z_,{name:`MuiSnackbarContent`,slot:`Root`,overridesResolver:(e,t)=>t.root})(Yg(({theme:e})=>{let t=e.palette.mode===`light`?.8:.98,n=Di(e.palette.background.default,t);return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:`flex`,alignItems:`center`,flexWrap:`wrap`,padding:`6px 16px`,borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up(`sm`)]:{flexGrow:`initial`,minWidth:288}}})),sD=q(`div`,{name:`MuiSnackbarContent`,slot:`Message`,overridesResolver:(e,t)=>t.message})({padding:`8px 0`}),cD=q(`div`,{name:`MuiSnackbarContent`,slot:`Action`,overridesResolver:(e,t)=>t.action})({display:`flex`,alignItems:`center`,marginLeft:`auto`,paddingLeft:16,marginRight:-8}),lD=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiSnackbarContent`}),{action:r,className:i,message:a,role:o=`alert`,...s}=n,c=n,l=aD(c);return(0,V.jsxs)(oD,{role:o,square:!0,elevation:6,className:H(l.root,i),ownerState:c,ref:t,...s,children:[(0,V.jsx)(sD,{className:l.message,ownerState:c,children:a}),r?(0,V.jsx)(cD,{className:l.action,ownerState:c,children:r}):null]})});function uD(e){return U(`MuiSnackbar`,e)}W(`MuiSnackbar`,[`root`,`anchorOriginTopCenter`,`anchorOriginBottomCenter`,`anchorOriginTopRight`,`anchorOriginBottomRight`,`anchorOriginTopLeft`,`anchorOriginBottomLeft`]);var dD=e=>{let{classes:t,anchorOrigin:n}=e;return G({root:[`root`,`anchorOrigin${J(n.vertical)}${J(n.horizontal)}`]},uD,t)},fD=q(`div`,{name:`MuiSnackbar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`anchorOrigin${J(n.anchorOrigin.vertical)}${J(n.anchorOrigin.horizontal)}`]]}})(Yg(({theme:e})=>({zIndex:(e.vars||e).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,[e.breakpoints.up(`sm`)]:{top:24}}},{props:({ownerState:e})=>e.anchorOrigin.vertical!==`top`,style:{bottom:8,[e.breakpoints.up(`sm`)]:{bottom:24}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal===`left`,style:{justifyContent:`flex-start`,[e.breakpoints.up(`sm`)]:{left:24,right:`auto`}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal===`right`,style:{justifyContent:`flex-end`,[e.breakpoints.up(`sm`)]:{right:24,left:`auto`}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal===`center`,style:{[e.breakpoints.up(`sm`)]:{left:`50%`,right:`auto`,transform:`translateX(-50%)`}}}]}))),pD=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiSnackbar`}),r=gs(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:o,horizontal:s}={vertical:`bottom`,horizontal:`left`},autoHideDuration:c=null,children:l,className:u,ClickAwayListenerProps:d,ContentProps:f,disableWindowBlurListener:p=!1,message:m,onBlur:h,onClose:g,onFocus:_,onMouseEnter:v,onMouseLeave:y,open:b,resumeHideDuration:x,slots:S={},slotProps:C={},TransitionComponent:w,transitionDuration:T=i,TransitionProps:{onEnter:E,onExited:D,...O}={},...k}=n,A={...n,anchorOrigin:{vertical:o,horizontal:s},autoHideDuration:c,disableWindowBlurListener:p,TransitionComponent:w,transitionDuration:T},j=dD(A),{getRootProps:M,onClickAway:N}=rD({...A}),[P,F]=B.useState(!0),I=e=>{F(!0),D&&D(e)},L=(e,t)=>{F(!1),E&&E(e,t)},ee={slots:{transition:w,...S},slotProps:{content:f,clickAwayListener:d,transition:O,...C}},[R,te]=B_(`root`,{ref:t,className:[j.root,u],elementType:fD,getSlotProps:M,externalForwardedProps:{...ee,...k},ownerState:A}),[ne,{ownerState:re,...z}]=B_(`clickAwayListener`,{elementType:HS,externalForwardedProps:ee,getSlotProps:e=>({onClickAway:(...t)=>{e.onClickAway?.(...t),N(...t)}}),ownerState:A}),[ie,ae]=B_(`content`,{elementType:lD,shouldForwardComponentProp:!0,externalForwardedProps:ee,additionalProps:{message:m,action:a},ownerState:A}),[oe,se]=B_(`transition`,{elementType:Ww,externalForwardedProps:ee,getSlotProps:e=>({onEnter:(...t)=>{e.onEnter?.(...t),L(...t)},onExited:(...t)=>{e.onExited?.(...t),I(...t)}}),additionalProps:{appear:!0,in:b,timeout:T,direction:o===`top`?`down`:`up`},ownerState:A});return!b&&P?null:(0,V.jsx)(ne,{...z,...S.clickAwayListener&&{ownerState:re},children:(0,V.jsx)(R,{...te,children:(0,V.jsx)(oe,{...se,children:l||(0,V.jsx)(ie,{...ae})})})})});function mD(e){return U(`MuiTooltip`,e)}var hD=W(`MuiTooltip`,[`popper`,`popperInteractive`,`popperArrow`,`popperClose`,`tooltip`,`tooltipArrow`,`touch`,`tooltipPlacementLeft`,`tooltipPlacementRight`,`tooltipPlacementTop`,`tooltipPlacementBottom`,`arrow`]);function gD(e){return Math.round(e*1e5)/1e5}var _D=e=>{let{classes:t,disableInteractive:n,arrow:r,touch:i,placement:a}=e;return G({popper:[`popper`,!n&&`popperInteractive`,r&&`popperArrow`],tooltip:[`tooltip`,r&&`tooltipArrow`,i&&`touch`,`tooltipPlacement${J(a.split(`-`)[0])}`],arrow:[`arrow`]},mD,t)},vD=q(Qb,{name:`MuiTooltip`,slot:`Popper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Yg(({theme:e})=>({zIndex:(e.vars||e).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"] .${hD.arrow}`]:{top:0,marginTop:`-0.71em`,"&::before":{transformOrigin:`0 100%`}},[`&[data-popper-placement*="top"] .${hD.arrow}`]:{bottom:0,marginBottom:`-0.71em`,"&::before":{transformOrigin:`100% 0`}},[`&[data-popper-placement*="right"] .${hD.arrow}`]:{height:`1em`,width:`0.71em`,"&::before":{transformOrigin:`100% 100%`}},[`&[data-popper-placement*="left"] .${hD.arrow}`]:{height:`1em`,width:`0.71em`,"&::before":{transformOrigin:`0 0`}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${hD.arrow}`]:{left:0,marginLeft:`-0.71em`}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${hD.arrow}`]:{right:0,marginRight:`-0.71em`}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${hD.arrow}`]:{right:0,marginRight:`-0.71em`}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${hD.arrow}`]:{left:0,marginLeft:`-0.71em`}}}]}))),yD=q(`div`,{name:`MuiTooltip`,slot:`Tooltip`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${J(n.placement.split(`-`)[0])}`]]}})(Yg(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:xi(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:`4px 8px`,fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:`break-word`,fontWeight:e.typography.fontWeightMedium,[`.${hD.popper}[data-popper-placement*="left"] &`]:{transformOrigin:`right center`},[`.${hD.popper}[data-popper-placement*="right"] &`]:{transformOrigin:`left center`},[`.${hD.popper}[data-popper-placement*="top"] &`]:{transformOrigin:`center bottom`,marginBottom:`14px`},[`.${hD.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:e.typography.pxToRem(14),lineHeight:`${gD(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${hD.popper}[data-popper-placement*="left"] &`]:{marginRight:`14px`},[`.${hD.popper}[data-popper-placement*="right"] &`]:{marginLeft:`14px`}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${hD.popper}[data-popper-placement*="left"] &`]:{marginRight:`24px`},[`.${hD.popper}[data-popper-placement*="right"] &`]:{marginLeft:`24px`}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${hD.popper}[data-popper-placement*="left"] &`]:{marginLeft:`14px`},[`.${hD.popper}[data-popper-placement*="right"] &`]:{marginRight:`14px`}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${hD.popper}[data-popper-placement*="left"] &`]:{marginLeft:`24px`},[`.${hD.popper}[data-popper-placement*="right"] &`]:{marginRight:`24px`}}},{props:({ownerState:e})=>e.touch,style:{[`.${hD.popper}[data-popper-placement*="top"] &`]:{marginBottom:`24px`}}},{props:({ownerState:e})=>e.touch,style:{[`.${hD.popper}[data-popper-placement*="bottom"] &`]:{marginTop:`24px`}}}]}))),bD=q(`span`,{name:`MuiTooltip`,slot:`Arrow`,overridesResolver:(e,t)=>t.arrow})(Yg(({theme:e})=>({overflow:`hidden`,position:`absolute`,width:`1em`,height:`0.71em`,boxSizing:`border-box`,color:e.vars?e.vars.palette.Tooltip.bg:xi(e.palette.grey[700],.9),"&::before":{content:`""`,margin:`auto`,display:`block`,width:`100%`,height:`100%`,backgroundColor:`currentColor`,transform:`rotate(45deg)`}}))),xD=!1,SD=new Ki,CD={x:0,y:0};function wD(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}var TD=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiTooltip`}),{arrow:r=!1,children:i,classes:a,components:o={},componentsProps:s={},describeChild:c=!1,disableFocusListener:l=!1,disableHoverListener:u=!1,disableInteractive:d=!1,disableTouchListener:f=!1,enterDelay:p=100,enterNextDelay:m=0,enterTouchDelay:h=700,followCursor:g=!1,id:_,leaveDelay:v=0,leaveTouchDelay:y=1500,onClose:b,onOpen:x,open:S,placement:C=`bottom`,PopperComponent:w,PopperProps:T={},slotProps:E={},slots:D={},title:O,TransitionComponent:k,TransitionProps:A,...j}=n,M=B.isValidElement(i)?i:(0,V.jsx)(`span`,{children:i}),N=gs(),P=fa(),[F,I]=B.useState(),[L,ee]=B.useState(null),R=B.useRef(!1),te=d||g,ne=qi(),re=qi(),z=qi(),ie=qi(),[ae,oe]=s_({controlled:S,default:!1,name:`Tooltip`,state:`open`}),se=ae,ce=o_(_),le=B.useRef(),ue=c_(()=>{le.current!==void 0&&(document.body.style.WebkitUserSelect=le.current,le.current=void 0),ie.clear()});B.useEffect(()=>ue,[ue]);let de=e=>{SD.clear(),xD=!0,oe(!0),x&&!se&&x(e)},fe=c_(e=>{SD.start(800+v,()=>{xD=!1}),oe(!1),b&&se&&b(e),ne.start(N.transitions.duration.shortest,()=>{R.current=!1})}),pe=e=>{R.current&&e.type!==`touchstart`||(F&&F.removeAttribute(`title`),re.clear(),z.clear(),p||xD&&m?re.start(xD?m:p,()=>{de(e)}):de(e))},me=e=>{re.clear(),z.start(v,()=>{fe(e)})},[,he]=B.useState(!1),ge=e=>{Ji(e.target)||(he(!1),me(e))},_e=e=>{F||I(e.currentTarget),Ji(e.target)&&(he(!0),pe(e))},ve=e=>{R.current=!0;let t=M.props;t.onTouchStart&&t.onTouchStart(e)},ye=e=>{ve(e),z.clear(),ne.clear(),ue(),le.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect=`none`,ie.start(h,()=>{document.body.style.WebkitUserSelect=le.current,pe(e)})},be=e=>{M.props.onTouchEnd&&M.props.onTouchEnd(e),ue(),z.start(y,()=>{fe(e)})};B.useEffect(()=>{if(!se)return;function e(e){e.key===`Escape`&&fe(e)}return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[fe,se]);let xe=l_(ia(M),I,t);!O&&O!==0&&(se=!1);let Se=B.useRef(),Ce=e=>{let t=M.props;t.onMouseMove&&t.onMouseMove(e),CD={x:e.clientX,y:e.clientY},Se.current&&Se.current.update()},we={},Te=typeof O==`string`;c?(we.title=!se&&Te&&!u?O:null,we[`aria-describedby`]=se?ce:null):(we[`aria-label`]=Te?O:null,we[`aria-labelledby`]=se&&!Te?ce:null);let Ee={...we,...j,...M.props,className:H(j.className,M.props.className),onTouchStart:ve,ref:xe,...g?{onMouseMove:Ce}:{}},De={};f||(Ee.onTouchStart=ye,Ee.onTouchEnd=be),u||(Ee.onMouseOver=wD(pe,Ee.onMouseOver),Ee.onMouseLeave=wD(me,Ee.onMouseLeave),te||(De.onMouseOver=pe,De.onMouseLeave=me)),l||(Ee.onFocus=wD(_e,Ee.onFocus),Ee.onBlur=wD(ge,Ee.onBlur),te||(De.onFocus=_e,De.onBlur=ge));let Oe={...n,isRtl:P,arrow:r,disableInteractive:te,placement:C,PopperComponentProp:w,touch:R.current},ke=typeof E.popper==`function`?E.popper(Oe):E.popper,Ae=B.useMemo(()=>{let e=[{name:`arrow`,enabled:!!L,options:{element:L,padding:4}}];return T.popperOptions?.modifiers&&(e=e.concat(T.popperOptions.modifiers)),ke?.popperOptions?.modifiers&&(e=e.concat(ke.popperOptions.modifiers)),{...T.popperOptions,...ke?.popperOptions,modifiers:e}},[L,T.popperOptions,ke?.popperOptions]),je=_D(Oe),Me=typeof E.transition==`function`?E.transition(Oe):E.transition,Ne={slots:{popper:o.Popper,transition:o.Transition??k,tooltip:o.Tooltip,arrow:o.Arrow,...D},slotProps:{arrow:E.arrow??s.arrow,popper:{...T,...ke??s.popper},tooltip:E.tooltip??s.tooltip,transition:{...A,...Me??s.transition}}},[Pe,Fe]=B_(`popper`,{elementType:vD,externalForwardedProps:Ne,ownerState:Oe,className:H(je.popper,T?.className)}),[Ie,Le]=B_(`transition`,{elementType:Ww,externalForwardedProps:Ne,ownerState:Oe}),[Re,ze]=B_(`tooltip`,{elementType:yD,className:je.tooltip,externalForwardedProps:Ne,ownerState:Oe}),[Be,Ve]=B_(`arrow`,{elementType:bD,className:je.arrow,externalForwardedProps:Ne,ownerState:Oe,ref:ee});return(0,V.jsxs)(B.Fragment,{children:[B.cloneElement(M,Ee),(0,V.jsx)(Pe,{as:w??Qb,placement:C,anchorEl:g?{getBoundingClientRect:()=>({top:CD.y,left:CD.x,right:CD.x,bottom:CD.y,width:0,height:0})}:F,popperRef:Se,open:F?se:!1,id:ce,transition:!0,...De,...Fe,popperOptions:Ae,children:({TransitionProps:e})=>(0,V.jsx)(Ie,{timeout:N.transitions.duration.shorter,...e,...Le,children:(0,V.jsxs)(Re,{...ze,children:[O,r?(0,V.jsx)(Be,{...Ve}):null]})})})]})});function ED(e){return U(`MuiSwitch`,e)}var DD=W(`MuiSwitch`,[`root`,`edgeStart`,`edgeEnd`,`switchBase`,`colorPrimary`,`colorSecondary`,`sizeSmall`,`sizeMedium`,`checked`,`disabled`,`input`,`thumb`,`track`]),OD=e=>{let{classes:t,edge:n,size:r,color:i,checked:a,disabled:o}=e,s=G({root:[`root`,n&&`edge${J(n)}`,`size${J(r)}`],switchBase:[`switchBase`,`color${J(i)}`,a&&`checked`,o&&`disabled`],thumb:[`thumb`],track:[`track`],input:[`input`]},ED,t);return{...t,...s}},kD=q(`span`,{name:`MuiSwitch`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.edge&&t[`edge${J(n.edge)}`],t[`size${J(n.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,[`& .${DD.thumb}`]:{width:16,height:16},[`& .${DD.switchBase}`]:{padding:4,[`&.${DD.checked}`]:{transform:`translateX(16px)`}}}}]}),AD=q(OS,{name:`MuiSwitch`,slot:`SwitchBase`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.switchBase,{[`& .${DD.input}`]:t.input},n.color!=="default"&&t[`color${J(n.color)}`]]}})(Yg(({theme:e})=>({position:`absolute`,top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode===`light`?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create([`left`,`transform`],{duration:e.transitions.duration.shortest}),[`&.${DD.checked}`]:{transform:`translateX(20px)`},[`&.${DD.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode===`light`?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${DD.checked} + .${DD.track}`]:{opacity:.5},[`&.${DD.disabled} + .${DD.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode===`light`?.12:.2}`},[`& .${DD.input}`]:{left:`-100%`,width:`300%`}})),Yg(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:xi(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:`transparent`}},variants:[...Object.entries(e.palette).filter(sv([`light`])).map(([t])=>({props:{color:t},style:{[`&.${DD.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xi(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:`transparent`}},[`&.${DD.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode===`light`?Ti(e.palette[t].main,.62):Ci(e.palette[t].main,.55)}`}},[`&.${DD.checked} + .${DD.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),jD=q(`span`,{name:`MuiSwitch`,slot:`Track`,overridesResolver:(e,t)=>t.track})(Yg(({theme:e})=>({height:`100%`,width:`100%`,borderRadius:14/2,zIndex:-1,transition:e.transitions.create([`opacity`,`background-color`],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode===`light`?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode===`light`?.38:.3}`}))),MD=q(`span`,{name:`MuiSwitch`,slot:`Thumb`,overridesResolver:(e,t)=>t.thumb})(Yg(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:`currentColor`,width:20,height:20,borderRadius:`50%`}))),ND=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiSwitch`}),{className:r,color:i=`primary`,edge:a=!1,size:o=`medium`,sx:s,slots:c={},slotProps:l={},...u}=n,d={...n,color:i,edge:a,size:o},f=OD(d),p={slots:c,slotProps:l},[m,h]=B_(`root`,{className:H(f.root,r),elementType:kD,externalForwardedProps:p,ownerState:d,additionalProps:{sx:s}}),[g,_]=B_(`thumb`,{className:f.thumb,elementType:MD,externalForwardedProps:p,ownerState:d}),v=(0,V.jsx)(g,{..._}),[y,b]=B_(`track`,{className:f.track,elementType:jD,externalForwardedProps:p,ownerState:d});return(0,V.jsxs)(m,{...h,children:[(0,V.jsx)(AD,{type:`checkbox`,icon:v,checkedIcon:v,ref:t,ownerState:d,...u,classes:{...f,root:f.switchBase},slots:{...c.switchBase&&{root:c.switchBase},...c.input&&{input:c.input}},slotProps:{...l.switchBase&&{root:typeof l.switchBase==`function`?l.switchBase(d):l.switchBase},...l.input&&{input:typeof l.input==`function`?l.input(d):l.input}}}),(0,V.jsx)(y,{...b})]})});function PD(e){return U(`MuiTab`,e)}var FD=W(`MuiTab`,[`root`,`labelIcon`,`textColorInherit`,`textColorPrimary`,`textColorSecondary`,`selected`,`disabled`,`fullWidth`,`wrapped`,`iconWrapper`,`icon`]),ID=e=>{let{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:a,label:o,selected:s,disabled:c}=e;return G({root:[`root`,a&&o&&`labelIcon`,`textColor${J(n)}`,r&&`fullWidth`,i&&`wrapped`,s&&`selected`,c&&`disabled`],icon:[`iconWrapper`,`icon`]},PD,t)},LD=q(rv,{name:`MuiTab`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${J(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${FD.iconWrapper}`]:t.iconWrapper},{[`& .${FD.icon}`]:t.icon}]}})(Yg(({theme:e})=>({...e.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:t})=>e.icon&&e.label&&t===`top`,style:{[`& > .${FD.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`bottom`,style:{[`& > .${FD.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`start`,style:{[`& > .${FD.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`end`,style:{[`& > .${FD.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:`inherit`},style:{color:`inherit`,opacity:.6,[`&.${FD.selected}`]:{opacity:1},[`&.${FD.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:`primary`},style:{color:(e.vars||e).palette.text.secondary,[`&.${FD.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${FD.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:`secondary`},style:{color:(e.vars||e).palette.text.secondary,[`&.${FD.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${FD.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:`none`}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),RD=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiTab`}),{className:r,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:o,icon:s,iconPosition:c=`top`,indicator:l,label:u,onChange:d,onClick:f,onFocus:p,selected:m,selectionFollowsFocus:h,textColor:g=`inherit`,value:_,wrapped:v=!1,...y}=n,b={...n,disabled:i,disableFocusRipple:a,selected:m,icon:!!s,iconPosition:c,label:!!u,fullWidth:o,textColor:g,wrapped:v},x=ID(b),S=s&&u&&B.isValidElement(s)?B.cloneElement(s,{className:H(x.icon,s.props.className)}):s;return(0,V.jsxs)(LD,{focusRipple:!a,className:H(x.root,r),ref:t,role:`tab`,"aria-selected":m,disabled:i,onClick:e=>{!m&&d&&d(e,_),f&&f(e)},onFocus:e=>{h&&!m&&d&&d(e,_),p&&p(e)},ownerState:b,tabIndex:m?0:-1,...y,children:[c===`top`||c===`start`?(0,V.jsxs)(B.Fragment,{children:[S,u]}):(0,V.jsxs)(B.Fragment,{children:[u,S]}),l]})}),zD=B.createContext();function BD(e){return U(`MuiTable`,e)}W(`MuiTable`,[`root`,`stickyHeader`]);var VD=e=>{let{classes:t,stickyHeader:n}=e;return G({root:[`root`,n&&`stickyHeader`]},BD,t)},HD=q(`table`,{name:`MuiTable`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(Yg(({theme:e})=>({display:`table`,width:`100%`,borderCollapse:`collapse`,borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:`left`,captionSide:`bottom`},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:`separate`}}]}))),UD=`table`,WD=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiTable`}),{className:r,component:i=UD,padding:a=`normal`,size:o=`medium`,stickyHeader:s=!1,...c}=n,l={...n,component:i,padding:a,size:o,stickyHeader:s},u=VD(l),d=B.useMemo(()=>({padding:a,size:o,stickyHeader:s}),[a,o,s]);return(0,V.jsx)(zD.Provider,{value:d,children:(0,V.jsx)(HD,{as:i,role:i===UD?null:`table`,ref:t,className:H(u.root,r),ownerState:l,...c})})}),GD=B.createContext();function KD(e){return U(`MuiTableBody`,e)}W(`MuiTableBody`,[`root`]);var qD=e=>{let{classes:t}=e;return G({root:[`root`]},KD,t)},JD=q(`tbody`,{name:`MuiTableBody`,slot:`Root`,overridesResolver:(e,t)=>t.root})({display:`table-row-group`}),YD={variant:`body`},XD=`tbody`,ZD=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiTableBody`}),{className:r,component:i=XD,...a}=n,o={...n,component:i},s=qD(o);return(0,V.jsx)(GD.Provider,{value:YD,children:(0,V.jsx)(JD,{className:H(s.root,r),as:i,ref:t,role:i===XD?null:`rowgroup`,ownerState:o,...a})})});function QD(e){return U(`MuiTableCell`,e)}var $D=W(`MuiTableCell`,[`root`,`head`,`body`,`footer`,`sizeSmall`,`sizeMedium`,`paddingCheckbox`,`paddingNone`,`alignLeft`,`alignCenter`,`alignRight`,`alignJustify`,`stickyHeader`]),eO=e=>{let{classes:t,variant:n,align:r,padding:i,size:a,stickyHeader:o}=e;return G({root:[`root`,n,o&&`stickyHeader`,r!==`inherit`&&`align${J(r)}`,i!==`normal`&&`padding${J(i)}`,`size${J(a)}`]},QD,t)},tO=q(`td`,{name:`MuiTableCell`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`size${J(n.size)}`],n.padding!==`normal`&&t[`padding${J(n.padding)}`],n.align!==`inherit`&&t[`align${J(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Yg(({theme:e})=>({...e.typography.body2,display:`table-cell`,verticalAlign:`inherit`,borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
212
|
+
${e.palette.mode===`light`?Ti(xi(e.palette.divider,1),.88):Ci(xi(e.palette.divider,1),.68)}`,textAlign:`left`,padding:16,variants:[{props:{variant:`head`},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:`body`},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:`footer`},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:`small`},style:{padding:`6px 16px`,[`&.${$D.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:(e.vars||e).palette.background.default}}]}))),nO=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiTableCell`}),{align:r=`inherit`,className:i,component:a,padding:o,scope:s,size:c,sortDirection:l,variant:u,...d}=n,f=B.useContext(zD),p=B.useContext(GD),m=p&&p.variant===`head`,h;h=a||(m?`th`:`td`);let g=s;h===`td`?g=void 0:!g&&m&&(g=`col`);let _=u||p&&p.variant,v={...n,align:r,component:h,padding:o||(f&&f.padding?f.padding:`normal`),size:c||(f&&f.size?f.size:`medium`),sortDirection:l,stickyHeader:_===`head`&&f&&f.stickyHeader,variant:_},y=eO(v),b=null;return l&&(b=l===`asc`?`ascending`:`descending`),(0,V.jsx)(tO,{as:h,ref:t,className:H(y.root,i),"aria-sort":b,scope:g,ownerState:v,...d})});function rO(e){return U(`MuiTableContainer`,e)}W(`MuiTableContainer`,[`root`]);var iO=e=>{let{classes:t}=e;return G({root:[`root`]},rO,t)},aO=q(`div`,{name:`MuiTableContainer`,slot:`Root`,overridesResolver:(e,t)=>t.root})({width:`100%`,overflowX:`auto`}),oO=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiTableContainer`}),{className:r,component:i=`div`,...a}=n,o={...n,component:i};return(0,V.jsx)(aO,{ref:t,as:i,className:H(iO(o).root,r),ownerState:o,...a})});function sO(e){return U(`MuiTableHead`,e)}W(`MuiTableHead`,[`root`]);var cO=e=>{let{classes:t}=e;return G({root:[`root`]},sO,t)},lO=q(`thead`,{name:`MuiTableHead`,slot:`Root`,overridesResolver:(e,t)=>t.root})({display:`table-header-group`}),uO={variant:`head`},dO=`thead`,fO=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiTableHead`}),{className:r,component:i=dO,...a}=n,o={...n,component:i},s=cO(o);return(0,V.jsx)(GD.Provider,{value:uO,children:(0,V.jsx)(lO,{as:i,className:H(s.root,r),ref:t,role:i===dO?null:`rowgroup`,ownerState:o,...a})})});function pO(e){return U(`MuiToolbar`,e)}W(`MuiToolbar`,[`root`,`gutters`,`regular`,`dense`]);var mO=e=>{let{classes:t,disableGutters:n,variant:r}=e;return G({root:[`root`,!n&&`gutters`,r]},pO,t)},hO=q(`div`,{name:`MuiToolbar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(Yg(({theme:e})=>({position:`relative`,display:`flex`,alignItems:`center`,variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up(`sm`)]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:`dense`},style:{minHeight:48}},{props:{variant:`regular`},style:e.mixins.toolbar}]}))),gO=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiToolbar`}),{className:r,component:i=`div`,disableGutters:a=!1,variant:o=`regular`,...s}=n,c={...n,component:i,disableGutters:a,variant:o};return(0,V.jsx)(hO,{as:i,className:H(mO(c).root,r),ref:t,ownerState:c,...s})}),_O=Y((0,V.jsx)(`path`,{d:`M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z`}),`KeyboardArrowLeft`),vO=Y((0,V.jsx)(`path`,{d:`M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z`}),`KeyboardArrowRight`);function yO(e){return U(`MuiTableRow`,e)}var bO=W(`MuiTableRow`,[`root`,`selected`,`hover`,`head`,`footer`]),xO=e=>{let{classes:t,selected:n,hover:r,head:i,footer:a}=e;return G({root:[`root`,n&&`selected`,r&&`hover`,i&&`head`,a&&`footer`]},yO,t)},SO=q(`tr`,{name:`MuiTableRow`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(Yg(({theme:e})=>({color:`inherit`,display:`table-row`,verticalAlign:`middle`,outline:0,[`&.${bO.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${bO.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xi(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:xi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),CO=`tr`,wO=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiTableRow`}),{className:r,component:i=CO,hover:a=!1,selected:o=!1,...s}=n,c=B.useContext(GD),l={...n,component:i,hover:a,selected:o,head:c&&c.variant===`head`,footer:c&&c.variant===`footer`};return(0,V.jsx)(SO,{as:i,ref:t,className:H(xO(l).root,r),role:i===CO?null:`row`,ownerState:l,...s})});function TO(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function EO(e,t,n,r={},i=()=>{}){let{ease:a=TO,duration:o=300}=r,s=null,c=t[e],l=!1,u=()=>{l=!0},d=r=>{if(l){i(Error(`Animation cancelled`));return}s===null&&(s=r);let u=Math.min(1,(r-s)/o);if(t[e]=a(u)*(n-c)+c,u>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(d)};return c===n?(i(Error(`Element already at target position`)),u):(requestAnimationFrame(d),u)}var DO={width:99,height:99,position:`absolute`,top:-9999,overflow:`scroll`};function OO(e){let{onChange:t,...n}=e,r=B.useRef(),i=B.useRef(null),a=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return a_(()=>{let e=t_(()=>{let e=r.current;a(),e!==r.current&&t(r.current)}),n=i_(i.current);return n.addEventListener(`resize`,e),()=>{e.clear(),n.removeEventListener(`resize`,e)}},[t]),B.useEffect(()=>{a(),t(r.current)},[t]),(0,V.jsx)(`div`,{style:DO,...n,ref:i})}function kO(e){return U(`MuiTabScrollButton`,e)}var AO=W(`MuiTabScrollButton`,[`root`,`vertical`,`horizontal`,`disabled`]),jO=e=>{let{classes:t,orientation:n,disabled:r}=e;return G({root:[`root`,n,r&&`disabled`]},kO,t)},MO=q(rv,{name:`MuiTabScrollButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${AO.disabled}`]:{opacity:0},variants:[{props:{orientation:`vertical`},style:{width:`100%`,height:40,"& svg":{transform:`var(--TabScrollButton-svgRotate)`}}}]}),NO=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiTabScrollButton`}),{className:r,slots:i={},slotProps:a={},direction:o,orientation:s,disabled:c,...l}=n,u=fa(),d={isRtl:u,...n},f=jO(d),p=i.StartScrollButtonIcon??_O,m=i.EndScrollButtonIcon??vO,h=ra({elementType:p,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:`small`},ownerState:d}),g=ra({elementType:m,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:`small`},ownerState:d});return(0,V.jsx)(MO,{component:`div`,className:H(f.root,r),ref:t,role:null,ownerState:d,tabIndex:null,...l,style:{...l.style,...s===`vertical`&&{"--TabScrollButton-svgRotate":`rotate(${u?-90:90}deg)`}},children:o===`left`?(0,V.jsx)(p,{...h}):(0,V.jsx)(m,{...g})})});function PO(e){return U(`MuiTabs`,e)}var FO=W(`MuiTabs`,[`root`,`vertical`,`list`,`flexContainer`,`flexContainerVertical`,`centered`,`scroller`,`fixed`,`scrollableX`,`scrollableY`,`hideScrollbar`,`scrollButtons`,`scrollButtonsHideMobile`,`indicator`]),IO=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,LO=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,RO=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}let t=i.disabled||i.getAttribute(`aria-disabled`)===`true`;if(!i.hasAttribute(`tabindex`)||t)i=n(e,i);else{i.focus();return}}},zO=e=>{let{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:a,centered:o,scrollButtonsHideMobile:s,classes:c}=e;return G({root:[`root`,t&&`vertical`],scroller:[`scroller`,n&&`fixed`,r&&`hideScrollbar`,i&&`scrollableX`,a&&`scrollableY`],list:[`list`,`flexContainer`,t&&`flexContainerVertical`,t&&`vertical`,o&&`centered`],indicator:[`indicator`],scrollButtons:[`scrollButtons`,s&&`scrollButtonsHideMobile`],scrollableX:[i&&`scrollableX`],hideScrollbar:[r&&`hideScrollbar`]},PO,c)},BO=q(`div`,{name:`MuiTabs`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${FO.scrollButtons}`]:t.scrollButtons},{[`& .${FO.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(Yg(({theme:e})=>({overflow:`hidden`,minHeight:48,WebkitOverflowScrolling:`touch`,display:`flex`,variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:`column`}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${FO.scrollButtons}`]:{[e.breakpoints.down(`sm`)]:{display:`none`}}}}]}))),VO=q(`div`,{name:`MuiTabs`,slot:`Scroller`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:`relative`,display:`inline-block`,flex:`1 1 auto`,whiteSpace:`nowrap`,variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:`hidden`,width:`100%`}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:`none`,"&::-webkit-scrollbar":{display:`none`}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:`auto`,overflowY:`hidden`}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:`auto`,overflowX:`hidden`}}]}),HO=q(`div`,{name:`MuiTabs`,slot:`List`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.list,t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:`flex`,variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:`column`}},{props:({ownerState:e})=>e.centered,style:{justifyContent:`center`}}]}),UO=q(`span`,{name:`MuiTabs`,slot:`Indicator`,overridesResolver:(e,t)=>t.indicator})(Yg(({theme:e})=>({position:`absolute`,height:2,bottom:0,width:`100%`,transition:e.transitions.create(),variants:[{props:{indicatorColor:`primary`},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:`secondary`},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:`100%`,width:2,right:0}}]}))),WO=q(OO)({overflowX:`auto`,overflowY:`hidden`,scrollbarWidth:`none`,"&::-webkit-scrollbar":{display:`none`}}),GO={},KO=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiTabs`}),r=gs(),i=fa(),{"aria-label":a,"aria-labelledby":o,action:s,centered:c=!1,children:l,className:u,component:d=`div`,allowScrollButtonsMobile:f=!1,indicatorColor:p=`primary`,onChange:m,orientation:h=`horizontal`,ScrollButtonComponent:g,scrollButtons:_=`auto`,selectionFollowsFocus:v,slots:y={},slotProps:b={},TabIndicatorProps:x={},TabScrollButtonProps:S={},textColor:C=`primary`,value:w,variant:T=`standard`,visibleScrollbar:E=!1,...D}=n,O=T===`scrollable`,k=h===`vertical`,A=k?`scrollTop`:`scrollLeft`,j=k?`top`:`left`,M=k?`bottom`:`right`,N=k?`clientHeight`:`clientWidth`,P=k?`height`:`width`,F={...n,component:d,allowScrollButtonsMobile:f,indicatorColor:p,orientation:h,vertical:k,scrollButtons:_,textColor:C,variant:T,visibleScrollbar:E,fixed:!O,hideScrollbar:O&&!E,scrollableX:O&&!k,scrollableY:O&&k,centered:c&&!O,scrollButtonsHideMobile:!f},I=zO(F),L=ra({elementType:y.StartScrollButtonIcon,externalSlotProps:b.startScrollButtonIcon,ownerState:F}),ee=ra({elementType:y.EndScrollButtonIcon,externalSlotProps:b.endScrollButtonIcon,ownerState:F}),[R,te]=B.useState(!1),[ne,re]=B.useState(GO),[z,ie]=B.useState(!1),[ae,oe]=B.useState(!1),[se,ce]=B.useState(!1),[le,ue]=B.useState({overflow:`hidden`,scrollbarWidth:0}),de=new Map,fe=B.useRef(null),pe=B.useRef(null),me={slots:y,slotProps:{indicator:x,scrollButton:S,...b}},he=()=>{let e=fe.current,t;if(e){let n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}let n;if(e&&w!==!1){let e=pe.current.children;if(e.length>0){let t=e[de.get(w)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},ge=c_(()=>{let{tabsMeta:e,tabMeta:t}=he(),n=0,r;k?(r=`top`,t&&e&&(n=t.top-e.top+e.scrollTop)):(r=i?`right`:`left`,t&&e&&(n=(i?-1:1)*(t[r]-e[r]+e.scrollLeft)));let a={[r]:n,[P]:t?t[P]:0};if(typeof ne[r]!=`number`||typeof ne[P]!=`number`)re(a);else{let e=Math.abs(ne[r]-a[r]),t=Math.abs(ne[P]-a[P]);(e>=1||t>=1)&&re(a)}}),_e=(e,{animation:t=!0}={})=>{t?EO(A,fe.current,e,{duration:r.transitions.duration.standard}):fe.current[A]=e},ve=e=>{let t=fe.current[A];k?t+=e:t+=e*(i?-1:1),_e(t)},ye=()=>{let e=fe.current[N],t=0,n=Array.from(pe.current.children);for(let r=0;r<n.length;r+=1){let i=n[r];if(t+i[N]>e){r===0&&(t=e);break}t+=i[N]}return t},be=()=>{ve(-1*ye())},xe=()=>{ve(ye())},[Se,{onChange:Ce,...we}]=B_(`scrollbar`,{className:H(I.scrollableX,I.hideScrollbar),elementType:WO,shouldForwardComponentProp:!0,externalForwardedProps:me,ownerState:F}),Te=B.useCallback(e=>{Ce?.(e),ue({overflow:null,scrollbarWidth:e})},[Ce]),[Ee,De]=B_(`scrollButtons`,{className:H(I.scrollButtons,S.className),elementType:NO,externalForwardedProps:me,ownerState:F,additionalProps:{orientation:h,slots:{StartScrollButtonIcon:y.startScrollButtonIcon||y.StartScrollButtonIcon,EndScrollButtonIcon:y.endScrollButtonIcon||y.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:L,endScrollButtonIcon:ee}}}),Oe=()=>{let e={};e.scrollbarSizeListener=O?(0,V.jsx)(Se,{...we,onChange:Te}):null;let t=O&&(_===`auto`&&(z||ae)||_===!0);return e.scrollButtonStart=t?(0,V.jsx)(Ee,{direction:i?`right`:`left`,onClick:be,disabled:!z,...De}):null,e.scrollButtonEnd=t?(0,V.jsx)(Ee,{direction:i?`left`:`right`,onClick:xe,disabled:!ae,...De}):null,e},ke=c_(e=>{let{tabsMeta:t,tabMeta:n}=he();!n||!t||(n[j]<t[j]?_e(t[A]+(n[j]-t[j]),{animation:e}):n[M]>t[M]&&_e(t[A]+(n[M]-t[M]),{animation:e}))}),Ae=c_(()=>{O&&_!==!1&&ce(!se)});B.useEffect(()=>{let e=t_(()=>{fe.current&&ge()}),t,n=n=>{n.forEach(e=>{e.removedNodes.forEach(e=>{t?.unobserve(e)}),e.addedNodes.forEach(e=>{t?.observe(e)})}),e(),Ae()},r=i_(fe.current);r.addEventListener(`resize`,e);let i;return typeof ResizeObserver<`u`&&(t=new ResizeObserver(e),Array.from(pe.current.children).forEach(e=>{t.observe(e)})),typeof MutationObserver<`u`&&(i=new MutationObserver(n),i.observe(pe.current,{childList:!0})),()=>{e.clear(),r.removeEventListener(`resize`,e),i?.disconnect(),t?.disconnect()}},[ge,Ae]),B.useEffect(()=>{let e=Array.from(pe.current.children),t=e.length;if(typeof IntersectionObserver<`u`&&t>0&&O&&_!==!1){let n=e[0],r=e[t-1],i={root:fe.current,threshold:.99},a=new IntersectionObserver(e=>{ie(!e[0].isIntersecting)},i);a.observe(n);let o=new IntersectionObserver(e=>{oe(!e[0].isIntersecting)},i);return o.observe(r),()=>{a.disconnect(),o.disconnect()}}},[O,_,se,l?.length]),B.useEffect(()=>{te(!0)},[]),B.useEffect(()=>{ge()}),B.useEffect(()=>{ke(GO!==ne)},[ke,ne]),B.useImperativeHandle(s,()=>({updateIndicator:ge,updateScrollButtons:Ae}),[ge,Ae]);let[je,Me]=B_(`indicator`,{className:H(I.indicator,x.className),elementType:UO,externalForwardedProps:me,ownerState:F,additionalProps:{style:ne}}),Ne=(0,V.jsx)(je,{...Me}),Pe=0,Fe=B.Children.map(l,e=>{if(!B.isValidElement(e))return null;let t=e.props.value===void 0?Pe:e.props.value;de.set(t,Pe);let n=t===w;return Pe+=1,B.cloneElement(e,{fullWidth:T===`fullWidth`,indicator:n&&!R&&Ne,selected:n,selectionFollowsFocus:v,onChange:m,textColor:C,value:t,...Pe===1&&w===!1&&!e.props.tabIndex?{tabIndex:0}:{}})}),Ie=e=>{if(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)return;let t=pe.current,n=r_(t).activeElement;if(n.getAttribute(`role`)!==`tab`)return;let r=h===`horizontal`?`ArrowLeft`:`ArrowUp`,a=h===`horizontal`?`ArrowRight`:`ArrowDown`;switch(h===`horizontal`&&i&&(r=`ArrowRight`,a=`ArrowLeft`),e.key){case r:e.preventDefault(),RO(t,n,LO);break;case a:e.preventDefault(),RO(t,n,IO);break;case`Home`:e.preventDefault(),RO(t,null,IO);break;case`End`:e.preventDefault(),RO(t,null,LO);break;default:break}},Le=Oe(),[Re,ze]=B_(`root`,{ref:t,className:H(I.root,u),elementType:BO,externalForwardedProps:{...me,...D,component:d},ownerState:F}),[Be,Ve]=B_(`scroller`,{ref:fe,className:I.scroller,elementType:VO,externalForwardedProps:me,ownerState:F,additionalProps:{style:{overflow:le.overflow,[k?`margin${i?`Left`:`Right`}`:`marginBottom`]:E?void 0:-le.scrollbarWidth}}}),[He,Ue]=B_(`list`,{ref:pe,className:H(I.list,I.flexContainer),elementType:HO,externalForwardedProps:me,ownerState:F,getSlotProps:e=>({...e,onKeyDown:t=>{Ie(t),e.onKeyDown?.(t)}})});return(0,V.jsxs)(Re,{...ze,children:[Le.scrollButtonStart,Le.scrollbarSizeListener,(0,V.jsxs)(Be,{...Ve,children:[(0,V.jsx)(He,{"aria-label":a,"aria-labelledby":o,"aria-orientation":h===`vertical`?`vertical`:null,role:`tablist`,...Ue,children:Fe}),R&&Ne]}),Le.scrollButtonEnd]})});function qO(e){return U(`MuiTextField`,e)}W(`MuiTextField`,[`root`]);var JO={standard:Yw,filled:tw,outlined:LE},YO=e=>{let{classes:t}=e;return G({root:[`root`]},qO,t)},XO=q(aw,{name:`MuiTextField`,slot:`Root`,overridesResolver:(e,t)=>t.root})({}),ZO=B.forwardRef(function(e,t){let n=Xg({props:e,name:`MuiTextField`}),{autoComplete:r,autoFocus:i=!1,children:a,className:o,color:s=`primary`,defaultValue:c,disabled:l=!1,error:u=!1,FormHelperTextProps:d,fullWidth:f=!1,helperText:p,id:m,InputLabelProps:h,inputProps:g,InputProps:_,inputRef:v,label:y,maxRows:b,minRows:x,multiline:S=!1,name:C,onBlur:w,onChange:T,onFocus:E,placeholder:D,required:O=!1,rows:k,select:A=!1,SelectProps:j,slots:M={},slotProps:N={},type:P,value:F,variant:I=`outlined`,...L}=n,ee={...n,autoFocus:i,color:s,disabled:l,error:u,fullWidth:f,multiline:S,required:O,select:A,variant:I},R=YO(ee),te=Ri(m),ne=p&&te?`${te}-helper-text`:void 0,re=y&&te?`${te}-label`:void 0,z=JO[I],ie={slots:M,slotProps:{input:_,inputLabel:h,htmlInput:g,formHelperText:d,select:j,...N}},ae={},oe=ie.slotProps.inputLabel;I===`outlined`&&(oe&&oe.shrink!==void 0&&(ae.notched=oe.shrink),ae.label=y),A&&((!j||!j.native)&&(ae.id=void 0),ae[`aria-describedby`]=void 0);let[se,ce]=B_(`root`,{elementType:XO,shouldForwardComponentProp:!0,externalForwardedProps:{...ie,...L},ownerState:ee,className:H(R.root,o),ref:t,additionalProps:{disabled:l,error:u,fullWidth:f,required:O,color:s,variant:I}}),[le,ue]=B_(`input`,{elementType:z,externalForwardedProps:ie,additionalProps:ae,ownerState:ee}),[de,fe]=B_(`inputLabel`,{elementType:$w,externalForwardedProps:ie,ownerState:ee}),[pe,me]=B_(`htmlInput`,{elementType:`input`,externalForwardedProps:ie,ownerState:ee}),[he,ge]=B_(`formHelperText`,{elementType:_w,externalForwardedProps:ie,ownerState:ee}),[_e,ve]=B_(`select`,{elementType:nD,externalForwardedProps:ie,ownerState:ee}),ye=(0,V.jsx)(le,{"aria-describedby":ne,autoComplete:r,autoFocus:i,defaultValue:c,fullWidth:f,multiline:S,name:C,rows:k,maxRows:b,minRows:x,type:P,value:F,id:te,inputRef:v,onBlur:w,onChange:T,onFocus:E,placeholder:D,inputProps:me,slots:{input:M.htmlInput?pe:void 0},...ue});return(0,V.jsxs)(se,{...ce,children:[y!=null&&y!==``&&(0,V.jsx)(de,{htmlFor:te,id:re,...fe,children:y}),A?(0,V.jsx)(_e,{"aria-describedby":ne,id:te,labelId:re,value:F,input:ye,...ve,children:a}):ye,p&&(0,V.jsx)(he,{id:ne,...ge,children:p})]})}),QO=Y((0,V.jsx)(`path`,{d:`M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z`}),`Add`),$O=Y((0,V.jsx)(`path`,{d:`M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z`}),`ArrowBack`),ek=Y((0,V.jsx)(`path`,{d:`m10 17 5-5-5-5z`}),`ArrowRight`),tk=Y((0,V.jsx)(`path`,{d:`M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 11h-3v3.75c0 1.24-1.01 2.25-2.25 2.25S8.5 17.99 8.5 16.75s1.01-2.25 2.25-2.25c.46 0 .89.14 1.25.38V11h4zm-3-4V3.5L18.5 9z`}),`AudioFile`),nk=Y([(0,V.jsx)(`path`,{d:`M16.5 12h-9c-.55 0-1 .45-1 1v1h11v-1c0-.55-.45-1-1-1M7.25 8.5h4v2h-4zm5.5 0h4v2h-4z`},`0`),(0,V.jsx)(`path`,{d:`M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-1 15h-1.5v-1.5h-11V17H5v-3.83c0-.66.25-1.26.65-1.72V9c0-1.1.9-2 2-2H11c.37 0 .72.12 1 .32.28-.2.63-.32 1-.32h3.35c1.1 0 2 .9 2 2v2.45c.4.46.65 1.06.65 1.72z`},`1`)],`BedroomParent`),rk=Y((0,V.jsx)(`path`,{d:`M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2`}),`Bookmark`),ik=Y((0,V.jsx)(`path`,{d:`M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2m0 15-5-2.18L7 18V5h10z`}),`BookmarkBorder`),ak=Y((0,V.jsx)(`path`,{d:`M22 24H2v-4h20zM13.06 5.19l3.75 3.75L7.75 18H4v-3.75zm4.82 2.68-3.75-3.75 1.83-1.83c.39-.39 1.02-.39 1.41 0l2.34 2.34c.39.39.39 1.02 0 1.41z`}),`BorderColor`),ok=Y((0,V.jsx)(`path`,{d:`M20 15.31 23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20zM12 18V6c3.31 0 6 2.69 6 6s-2.69 6-6 6`}),`Brightness6`),sk=Y((0,V.jsx)(`path`,{d:`m22.7 19-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4`}),`Build`),ck=Y((0,V.jsx)(`path`,{d:`M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z`}),`CalendarToday`);Y((0,V.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`}),`Cancel`);var lk=Y((0,V.jsx)(`path`,{d:`M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z`}),`Check`),uk=Y((0,V.jsx)(`path`,{d:`M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z`}),`Close`),dk=Y((0,V.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`}),`Code`),fk=Y((0,V.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`}),`Construction`),pk=Y((0,V.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`}),`ContentCopy`),mk=Y((0,V.jsx)(`path`,{d:`M19 2h-4.18C14.4.84 13.3 0 12 0S9.6.84 9.18 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m7 18H5V4h2v3h10V4h2z`}),`ContentPaste`),hk=Y((0,V.jsx)(`path`,{d:`M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3z`}),`CreateNewFolder`),gk=Y((0,V.jsx)(`path`,{d:`M4 7v2c0 .55-.45 1-1 1H2v4h1c.55 0 1 .45 1 1v2c0 1.65 1.35 3 3 3h3v-2H7c-.55 0-1-.45-1-1v-2c0-1.3-.84-2.42-2-2.83v-.34C5.16 11.42 6 10.3 6 9V7c0-.55.45-1 1-1h3V4H7C5.35 4 4 5.35 4 7m17 3c-.55 0-1-.45-1-1V7c0-1.65-1.35-3-3-3h-3v2h3c.55 0 1 .45 1 1v2c0 1.3.84 2.42 2 2.83v.34c-1.16.41-2 1.52-2 2.83v2c0 .55-.45 1-1 1h-3v2h3c1.65 0 3-1.35 3-3v-2c0-.55.45-1 1-1h1v-4z`}),`DataObject`),_k=Y((0,V.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`}),`Delete`),vk=Y((0,V.jsx)(`path`,{d:`M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z`}),`Description`),yk=Y((0,V.jsx)(`path`,{d:`M18.41 5.8 17.2 4.59c-.78-.78-2.05-.78-2.83 0l-2.68 2.68L3 15.96V20h4.04l8.74-8.74 2.63-2.63c.79-.78.79-2.05 0-2.83M6.21 18H5v-1.21l8.66-8.66 1.21 1.21zM11 20l4-4h6v4z`}),`DriveFileRenameOutline`),bk=Y((0,V.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`}),`Edit`),xk=Y((0,V.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`}),`Error`),Sk=Y((0,V.jsx)(`path`,{d:`M20 19.59V8l-6-6H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c.45 0 .85-.15 1.19-.4l-4.43-4.43c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5c0 1.02-.31 1.96-.83 2.75zM9 13c0 1.66 1.34 3 3 3s3-1.34 3-3-1.34-3-3-3-3 1.34-3 3`}),`FindInPage`),Ck=Y((0,V.jsx)(`path`,{d:`M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m0 12H4V8h16z`}),`FolderOpen`),wk=Y((0,V.jsx)(`path`,{d:`M20 6h-8l-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-2.06 11L15 15.28 12.06 17l.78-3.33-2.59-2.24 3.41-.29L15 8l1.34 3.14 3.41.29-2.59 2.24z`}),`FolderSpecial`),Tk=Y((0,V.jsx)(`path`,{d:`M9.93 13.5h4.14L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-4.05 16.5-1.14-3H9.17l-1.12 3H5.96l5.11-13h1.86l5.11 13z`}),`FontDownload`),Ek=Y((0,V.jsx)(`path`,{d:`M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z`}),`FormatItalic`);Y((0,V.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`}),`Help`);var Dk=Y((0,V.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`}),`Image`),Ok=Y((0,V.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`}),`Info`),kk=Y((0,V.jsx)(`path`,{d:`M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z`}),`InsertDriveFile`),Ak=Y((0,V.jsx)(`path`,{d:`M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z`}),`KeyboardReturn`),jk=Y((0,V.jsx)(`path`,{d:`M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5`}),`Link`),Mk=Y((0,V.jsx)(`path`,{d:`M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z`}),`List`),Nk=Y((0,V.jsx)(`path`,{d:`M19 5v14H5V5zm1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z`}),`ListAlt`),Pk=Y((0,V.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 14h-2V9h-2V7h4z`}),`LooksOne`),Fk=Y((0,V.jsx)(`path`,{d:`M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3z`}),`MusicNote`),Ik=Y((0,V.jsx)(`path`,{d:`M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 10c2.7 0 5.8 1.29 6 2H6c.23-.72 3.31-2 6-2m0-12C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 10c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4`}),`PersonOutlined`),Lk=Y((0,V.jsx)(`path`,{d:`M5 4v2h14V4zm0 10h4v6h6v-6h4l-7-7z`}),`Publish`),Rk=Y((0,V.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`}),`Refresh`),zk=Y((0,V.jsx)(`path`,{d:`m20.2 5.9.8-.8C19.6 3.7 17.8 3 16 3s-3.6.7-5 2.1l.8.8C13 4.8 14.5 4.2 16 4.2s3 .6 4.2 1.7m-.9.8c-.9-.9-2.1-1.4-3.3-1.4s-2.4.5-3.3 1.4l.8.8c.7-.7 1.6-1 2.5-1s1.8.3 2.5 1zM19 13h-2V9h-2v4H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2M8 18H6v-2h2zm3.5 0h-2v-2h2zm3.5 0h-2v-2h2z`}),`Router`),Bk=Y((0,V.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`}),`Save`),Vk=Y((0,V.jsx)(`path`,{d:`M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z`}),`SaveAlt`),Hk=Y((0,V.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`}),`Settings`),Uk=Y((0,V.jsx)(`path`,{d:`M12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m7-7H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-1.75 9c0 .23-.02.46-.05.68l1.48 1.16c.13.11.17.3.08.45l-1.4 2.42c-.09.15-.27.21-.43.15l-1.74-.7c-.36.28-.76.51-1.18.69l-.26 1.85c-.03.17-.18.3-.35.3h-2.8c-.17 0-.32-.13-.35-.29l-.26-1.85c-.43-.18-.82-.41-1.18-.69l-1.74.7c-.16.06-.34 0-.43-.15l-1.4-2.42c-.09-.15-.05-.34.08-.45l1.48-1.16c-.03-.23-.05-.46-.05-.69s.02-.46.05-.68l-1.48-1.16c-.13-.11-.17-.3-.08-.45l1.4-2.42c.09-.15.27-.21.43-.15l1.74.7c.36-.28.76-.51 1.18-.69l.26-1.85c.03-.17.18-.3.35-.3h2.8c.17 0 .32.13.35.29l.26 1.85c.43.18.82.41 1.18.69l1.74-.7c.16-.06.34 0 .43.15l1.4 2.42c.09.15.05.34-.08.45l-1.48 1.16c.03.23.05.46.05.69`}),`SettingsApplications`),Wk=Y((0,V.jsx)(`path`,{d:`m3.5 18.49 6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z`}),`ShowChart`),Gk=Y((0,V.jsx)(`path`,{d:`M11.99 2c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.48-10-10-10m3.61 6.34c1.07 0 1.93.86 1.93 1.93s-.86 1.93-1.93 1.93-1.93-.86-1.93-1.93c-.01-1.07.86-1.93 1.93-1.93m-6-1.58c1.3 0 2.36 1.06 2.36 2.36s-1.06 2.36-2.36 2.36-2.36-1.06-2.36-2.36c0-1.31 1.05-2.36 2.36-2.36m0 9.13v3.75c-2.4-.75-4.3-2.6-5.14-4.96 1.05-1.12 3.67-1.69 5.14-1.69.53 0 1.2.08 1.9.22-1.64.87-1.9 2.02-1.9 2.68M11.99 20c-.27 0-.53-.01-.79-.04v-4.07c0-1.42 2.94-2.13 4.4-2.13 1.07 0 2.92.39 3.84 1.15-1.17 2.97-4.06 5.09-7.45 5.09`}),`SupervisedUserCircle`),Kk=Y((0,V.jsx)(`path`,{d:`M2.5 4v3h5v12h3V7h5V4zm19 5h-9v3h3v7h3v-7h3z`}),`TextFields`),qk=Y((0,V.jsx)(`path`,{d:`M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5zM8 15.01l1.41 1.41L11 14.84V19h2v-4.16l1.59 1.59L16 15.01 12.01 11z`}),`UploadFile`);Y((0,V.jsx)(`path`,{d:`M16 13h-3V3h-2v10H8l4 4zM4 19v2h16v-2z`}),`VerticalAlignBottom`),Y((0,V.jsx)(`path`,{d:`M8 11h3v10h2V11h3l-4-4zM4 3v2h16V3z`}),`VerticalAlignTop`);var Jk=Y((0,V.jsx)(`path`,{d:`M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11z`}),`Videocam`),Yk=Y((0,V.jsx)(`path`,{d:`M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z`}),`ViewColumn`),Xk=Y((0,V.jsx)(`path`,{d:`M14.67 5v6.5H9.33V5zm1 6.5H21V5h-5.33zm-1 7.5v-6.5H9.33V19zm1-6.5V19H21v-6.5zm-7.34 0H3V19h5.33zm0-1V5H3v6.5z`}),`ViewModule`);Y((0,V.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`}),`Visibility`),Y((0,V.jsx)(`path`,{d:`M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z`}),`Warning`);var Zk=Y((0,V.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`}),`Wifi`),Qk=Y((0,V.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`}),`WifiOff`);function $k(){console.log(`
|
|
213
|
+
██╗ ██████╗ ██████╗ ██████╗ ██████╗ ██╗ ██╗███████╗██████╗
|
|
214
|
+
██║██╔═══██╗██╔══██╗██╔══██╗██╔═══██╗██║ ██╔╝██╔════╝██╔══██╗
|
|
215
|
+
██║██║ ██║██████╔╝██████╔╝██║ ██║█████╔╝ █████╗ ██████╔╝
|
|
216
|
+
██║██║ ██║██╔══██╗██╔══██╗██║ ██║██╔═██╗ ██╔══╝ ██╔══██╗
|
|
217
|
+
██║╚██████╔╝██████╔╝██║ ██║╚██████╔╝██║ ██╗███████╗██║ ██║
|
|
218
|
+
╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝
|
|
219
|
+
`),console.log(`Nice to see you here! :) Join our dev community here https://github.com/ioBroker/ioBroker or here https://github.com/iobroker-community-adapters`),console.log(`Help us to create open source project with reactJS!`),console.log(`See you :)`)}function eA(e){let t=e.themeType||`light`,n=e.size||300;return B.createElement(`div`,{style:{width:`100%`,height:`100%`,position:`absolute`,top:0,left:0,backgroundImage:e.backgroundImage&&e.backgroundImage!==`@@loginBackgroundImage@@`?e.backgroundImage:window.loadingBackgroundImage&&window.loadingBackgroundImage!==`@@loginBackgroundImage@@`?`url(${window.loadingBackgroundImage})`:void 0,backgroundColor:e.backgroundColor&&e.backgroundColor!==`@@loginBackgroundColor@@`?e.backgroundColor:window.loadingBackgroundColor&&window.loadingBackgroundColor!==`@@loginBackgroundColor@@`?window.loadingBackgroundColor:t===`dark`?`#000`:`#FFF`,backgroundSize:`cover`}},B.createElement(`div`,{style:{width:n,height:n,position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%,-50%)`,zIndex:2}},B.createElement(`svg`,{viewBox:`0 0 500 500`,xmlns:`http://www.w3.org/2000/svg`,width:`100%`,height:`100%`},B.createElement(`circle`,{strokeWidth:`5`,fill:`none`,stroke:`#01BBF5`,cx:`250`,cy:`250`,r:`200`}),B.createElement(`circle`,{strokeWidth:`5`,fill:`none`,stroke:`#01BBF5`,cx:`250`,cy:`250`,r:`133`}),B.createElement(`circle`,{strokeWidth:`5`,fill:`none`,stroke:`#01BBF5`,cx:`250`,cy:`250`,r:`83`}),B.createElement(`circle`,{strokeWidth:`5`,fill:`none`,stroke:`#01BBF5`,cx:`250`,cy:`250`,r:`66`}),B.createElement(`circle`,{strokeWidth:`15`,fill:`none`,stroke:`#01BBF5`,cx:`250`,cy:`250`,r:`15`}),B.createElement(`g`,null,B.createElement(`line`,{y2:`185`,x2:`250`,y1:`240`,x1:`250`,strokeWidth:`5`,stroke:`#01BBF5`,fill:`none`}),B.createElement(`line`,{y2:`315`,x2:`250`,y1:`260`,x1:`250`,strokeWidth:`5`,stroke:`#01BBF5`,fill:`none`}),B.createElement(`g`,{transform:`rotate(60, 250, 250)`},B.createElement(`line`,{y2:`185`,x2:`250`,y1:`240`,x1:`250`,strokeWidth:`5`,stroke:`#01BBF5`,fill:`none`}),B.createElement(`line`,{y2:`315`,x2:`250`,y1:`260`,x1:`250`,strokeWidth:`5`,stroke:`#01BBF5`,fill:`none`})),B.createElement(`g`,{transform:`rotate(120, 250, 250)`},B.createElement(`line`,{y2:`185`,x2:`250`,y1:`240`,x1:`250`,strokeWidth:`5`,stroke:`#01BBF5`,fill:`none`}),B.createElement(`line`,{y2:`315`,x2:`250`,y1:`260`,x1:`250`,strokeWidth:`5`,stroke:`#01BBF5`,fill:`none`})),[0,15,30,45,60,75,90,105,120,135,150,165,180,195,210,225,240,255,270,285,300,315,330,345].map(e=>B.createElement(`line`,{key:e,transform:`rotate(${e}, 250, 250)`,y2:`250`,x2:`115`,y1:`240`,x1:`135`,strokeWidth:`5`,stroke:`#01BBF5`,fill:`none`})),B.createElement(`animateTransform`,{attributeType:`xml`,attributeName:`transform`,type:`rotate`,from:`0 250 250`,to:`360 250 250`,dur:`10s`,additive:`sum`,repeatCount:`indefinite`})),B.createElement(`path`,{d:`M 56.089 160.250 C 55.077 162.588, 46.037 182.950, 36 205.500 C 25.963 228.050, 16.923 248.412, 15.911 250.750 L 14.071 255 28.286 254.976 L 42.500 254.952 47.931 242.226 C 50.918 235.227, 54.366 227.250, 55.592 224.500 L 57.822 219.500 66.383 237.250 L 74.945 255 88.973 255 C 96.688 255, 103 254.841, 103 254.646 C 103 254.452, 100.043 248.071, 96.430 240.466 L 89.859 226.638 91.603 222.771 C 92.563 220.644, 93.660 218.710, 94.043 218.473 C 94.426 218.237, 108.609 246.609, 125.562 281.522 L 156.384 345 166.071 345 C 175.705 345, 175.763 344.985, 176.856 342.250 C 179.911 334.602, 208 260.765, 208 260.383 C 208 260.138, 202.546 260.065, 195.879 260.219 L 183.759 260.500 174.629 285.244 C 169.608 298.853, 165.254 309.990, 164.952 309.994 C 164.651 309.997, 148.901 277.389, 129.952 237.532 C 111.004 197.674, 95.275 165.057, 95 165.049 C 94.725 165.041, 90.685 172.415, 86.022 181.435 C 81.358 190.455, 77.308 197.689, 77.022 197.510 C 76.735 197.331, 72.675 187.920, 68 176.598 C 63.325 165.275, 59.147 156.008, 58.714 156.005 C 58.282 156.002, 57.101 157.912, 56.089 160.250 M 55.294 168.694 C 52.241 175.842, 52.166 176.323, 53.718 178.692 L 55.349 181.182 56.706 178.591 C 57.453 177.166, 58.406 176, 58.825 176 C 59.244 176, 60.777 178.363, 62.232 181.250 C 64.829 186.403, 64.879 186.440, 64.939 183.250 C 64.973 181.463, 65.422 180, 65.937 180 C 66.724 180, 60.176 162.824, 58.920 161.596 C 58.689 161.370, 57.057 164.564, 55.294 168.694 M 91.698 175.542 C 89.205 180.626, 89.099 181.308, 90.410 183.792 L 91.840 186.500 92.926 183.669 C 94.349 179.961, 96.024 180.653, 98.588 186.009 L 100.676 190.370 101.324 187.132 C 101.832 184.592, 101.217 182.395, 98.473 176.947 C 96.549 173.126, 94.849 170, 94.696 170 C 94.542 170, 93.193 172.494, 91.698 175.542 M 157.005 192.607 C 143.168 197.636, 134.999 209.202, 135.001 223.761 C 135.002 232.756, 138.710 240.755, 145.856 247.180 C 152.159 252.848, 158.121 255, 167.518 255 C 173.509 255, 175.684 254.499, 180.811 251.936 C 200.823 241.936, 205.088 216.155, 189.337 200.403 C 181.479 192.546, 166.868 189.022, 157.005 192.607 M 206 223 L 206 255 215.472 255 L 224.944 255 225.222 241.419 L 225.500 227.837 230.500 234.660 C 233.250 238.412, 238.002 244.636, 241.060 248.491 L 246.620 255.500 253.810 255.168 L 261 254.836 261 222.918 L 261 191 251.528 191 L 242.056 191 241.778 204.552 L 241.500 218.104 231.111 204.552 L 220.722 191 213.361 191 L 206 191 206 223 M 285.821 192.331 C 276.229 195.045, 270.010 202.130, 270.004 210.349 C 269.995 221.957, 275.913 226.925, 295.801 232.006 C 300.753 233.271, 302.228 235.609, 299.412 237.730 C 296.739 239.746, 288.369 238.774, 281.563 235.657 L 276.132 233.171 272.469 239.320 C 268.119 246.621, 268.341 247.287, 276.524 251.500 C 281.399 254.010, 283.761 254.556, 290.977 254.842 C 302.365 255.294, 307.420 253.846, 312.603 248.649 C 317.383 243.855, 319.463 236.989, 318.043 230.693 C 316.210 222.562, 311.258 218.610, 297.878 214.599 C 288.025 211.645, 285.443 209.631, 288.538 207.315 C 291.104 205.394, 302.270 205.946, 306.769 208.217 L 310.039 209.866 313.104 203.794 C 316.516 197.035, 316.622 197.304, 309.167 193.844 C 303.663 191.289, 292.140 190.542, 285.821 192.331 M 322 199 L 322 207 330 207 L 338 207 338 231 L 338 255 347.500 255 L 357 255 357 231.044 L 357 207.088 364.250 206.794 L 371.500 206.500 371.792 198.750 L 372.084 191 347.042 191 L 322 191 322 199 M 379 223 L 379 255 401 255 L 423 255 423 247.500 L 423 240 409.500 240 L 396 240 396 235 L 396 230 407.500 230 L 419 230 419 222 L 419 214 407.500 214 L 396 214 396 210.529 L 396 207.058 409.250 206.779 L 422.500 206.500 422.792 198.750 L 423.084 191 401.042 191 L 379 191 379 223 M 433 223 L 433 255 442 255 L 451 255 451 247 L 451 239 454.800 239 C 458.555 239, 458.645 239.092, 462.469 246.937 L 466.339 254.874 476.172 255.187 C 481.580 255.359, 486.003 255.111, 486.002 254.636 C 486.001 254.160, 483.277 249.264, 479.949 243.754 C 473.914 233.765, 473.903 233.732, 475.836 231.619 C 480.222 226.824, 482.359 220.791, 482.431 213 C 482.512 204.192, 480.272 198.822, 475.031 195.260 C 469.795 191.703, 465.527 191.012, 448.750 191.006 L 433 191 433 223 M 448.210 213.250 L 448.500 221.500 455.338 221.500 C 461.319 221.500, 462.417 221.204, 464.088 219.139 C 465.995 216.785, 466.556 212.613, 465.379 209.545 C 464.356 206.879, 459.449 205, 453.509 205 L 447.919 205 448.210 213.250 M 163.169 209.017 C 156.337 210.583, 151.176 218.533, 152.339 225.701 C 154.672 240.077, 175.040 242.355, 180.446 228.844 C 184.978 217.516, 175.176 206.267, 163.169 209.017 M 216.676 271.715 C 216.037 272.750, 188 344.021, 188 344.612 C 188 344.863, 192.811 344.940, 198.691 344.784 L 209.381 344.500 211.894 336.750 L 214.406 329 226.550 329 L 238.694 329 242.097 336.992 L 245.500 344.983 255.250 344.992 C 262.399 344.998, 264.994 344.667, 264.979 343.750 C 264.968 343.063, 258.477 326.525, 250.555 307 L 236.150 271.500 226.656 271.215 C 221.434 271.058, 216.943 271.283, 216.676 271.715 M 273 307 C 273 326.800, 272.887 343.337, 272.750 343.750 C 272.613 344.163, 277.102 344.628, 282.727 344.785 L 292.954 345.069 293.227 327.379 L 293.500 309.689 307 327.336 L 320.500 344.982 328.262 344.991 L 336.025 345 335.762 308.250 L 335.500 271.500 326.750 271.211 L 318 270.922 317.882 286.711 C 317.816 295.395, 317.816 302.837, 317.882 303.250 C 317.947 303.663, 317.808 304, 317.574 304 C 317.340 304, 310.809 296.575, 303.060 287.500 L 288.971 271 280.985 271 L 273 271 273 307 M 223.254 303.048 L 220.078 312 226.539 312 C 230.093 312, 233 311.861, 233 311.691 C 233 311.257, 226.886 294.553, 226.636 294.302 C 226.522 294.189, 225.001 298.125, 223.254 303.048`,stroke:`none`,fill:e.themeType===`dark`?`#EEE`:`#111`,fillRule:`evenodd`}))))}function tA(e){let t=e.themeType||`dark`,n=e.size||300;return B.createElement(`div`,{style:{width:`100%`,height:`100%`,position:`absolute`,top:0,left:0,backgroundImage:e.backgroundImage&&e.backgroundImage!==`@@loginBackgroundImage@@`?e.backgroundImage:window.loadingBackgroundImage&&window.loadingBackgroundImage!==`@@loginBackgroundImage@@`?`url(${window.loadingBackgroundImage})`:void 0,backgroundColor:e.backgroundColor&&e.backgroundColor!==`@@loginBackgroundColor@@`?e.backgroundColor:window.loadingBackgroundColor&&window.loadingBackgroundColor!==`@@loginBackgroundColor@@`?window.loadingBackgroundColor:t===`dark`?`#000`:`#FFF`,backgroundSize:`cover`}},B.createElement(`div`,{style:{width:n,height:n,position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%,-50%)`,zIndex:2}},B.createElement(`svg`,{viewBox:`0 0 2000 1728`,style:{fillRule:`evenodd`,clipRule:`evenodd`,fill:`#00af78`}},B.createElement(`style`,null,`
|
|
220
|
+
@keyframes jump {
|
|
221
|
+
0% { fill: #00af78; }
|
|
222
|
+
25% { fill: #00af78; }
|
|
223
|
+
25.01% { fill: #00785A; }
|
|
224
|
+
100% { fill: #00785A; }
|
|
225
|
+
}
|
|
226
|
+
.bar { animation: jump 2s linear infinite; }
|
|
227
|
+
.bar.bar1 { animation-delay: 0s; }
|
|
228
|
+
.bar.bar2 { animation-delay: 0.5s; }
|
|
229
|
+
.bar.bar3 { animation-delay: 1s; }
|
|
230
|
+
.bar.bar4 { animation-delay: 1.5s; }
|
|
231
|
+
`),B.createElement(`path`,{d:`M944.5 76.5a852 852 0 0 1 129 6.5 598 598 0 0 1 51 9c19.36 5.344 38.69 10.677 58 16a834 834 0 0 1 117 52 698 698 0 0 1 95 69c2.67 2 5.33 2 8 0a410 410 0 0 1 37-28 18.4 18.4 0 0 1 6-.5q.495 10.51 4.5 20a3200 3200 0 0 0 18 73 3553 3553 0 0 0 19 66 48.8 48.8 0 0 0 2.5 11 4.94 4.94 0 0 1-1 2.5c-2.33.667-4.67.667-7 0a19 19 0 0 0-5-3 209 209 0 0 0-24-7 292 292 0 0 0-20-8c-8.68-2.341-17.34-4.674-26-7a221 221 0 0 0-21-8 337 337 0 0 1-34-11 1272 1272 0 0 1-43-13q-2.91-3.23-1.5-7.5a671 671 0 0 0 42.5-35l-1.5-3a289 289 0 0 0-21.5-18.5c-9.31-6.637-18.65-13.304-28-20a731 731 0 0 1-44-26 175 175 0 0 1-30-15 568 568 0 0 0-50-20 1038 1038 0 0 1-53-16 1070 1070 0 0 0-48-10 1087 1087 0 0 1-55-6 1379 1379 0 0 0-99 1 203.5 203.5 0 0 1-35 5Q629.152 192.558 494 414.5a132 132 0 0 1-10 17 1277 1277 0 0 0-21 43l-11 27a637 637 0 0 1-14 41 8191 8191 0 0 1-16 67 50.7 50.7 0 0 0-1 15 11.3 11.3 0 0 0 1.5 3.5 327 327 0 0 1 40 8q62.273 18.89 115 56 70.252 53.736 113.5 130.5 59.461 114.478 41 243c-.667 1.33-1.333 2.67-2 4a335 335 0 0 1-3 18 507 507 0 0 1-20 53 309 309 0 0 1-10 17c-1.699.91-3.533 1.24-5.5 1 .377-40.1-3.456-79.77-11.5-119l-3-6a154.4 154.4 0 0 0-7-27Q629.1 886.514 525.5 812a44.5 44.5 0 0 1-9.5-5.5l-1.5.5q69.98 79.772 110.5 177.5a684 684 0 0 1 21 74c.389 8.51 1.722 16.84 4 25q1.302 30.765 2.5 61.5-2.217 6.885.5 13.5l17.5 13.5a1597 1597 0 0 0 61 36 3333 3333 0 0 1 61 26q25.04 7.53 50 15a771 771 0 0 0 51 10 526.7 526.7 0 0 0 120 5c15.24-2.5 30.57-4.17 46-5 154.49-25.8 278.99-100.96 373.5-225.5 36-49.308 63.67-102.974 83-161 .29-5.821 1.96-11.154 5-16q7.2-33.086 15-66a343 343 0 0 1 4-30c-5.29 5.217-9.62 11.217-13 18-26.71 37.032-60.54 65.866-101.5 86.5a471 471 0 0 1-27 11 50.1 50.1 0 0 0-17 5q-13.77 1.158-27 5-33 2.977-66 0a153 153 0 0 0-29-5c-52.38-14.072-96.21-41.572-131.5-82.5q-58.935-72.777-58.5-167.5.345-16.269 1.5-32.5 10.89-72.278 57-128c66.33-75.505 149.5-104.339 249.5-86.5a700 700 0 0 1 48 16c4.24 2.853 8.57 5.52 13 8l6 2c20.5 12.068 38.84 26.735 55 44q2.37 1.06 4.5 2.5a442 442 0 0 0 25.5-24.5c2.59-1.601 5.26-1.767 8-.5a1168 1168 0 0 0 25.5 55 1221 1221 0 0 0 16 45c.41 6.057 2.08 11.724 5 17 .58 6.637 2.24 12.97 5 19a778 778 0 0 1 10 55c18.69 162.392-18.64 309.725-112 442-15.67 19-31.33 38-47 57-34.61 35.92-72.44 68.42-113.5 97.5q-16.53 10.545-33 21a516 516 0 0 1-35 18l-3 3c-14.49 6.96-29.16 13.63-44 20-26.02 9.5-52.35 18.17-79 26q-132.478 31.62-267 9a1979 1979 0 0 0-61-14 421 421 0 0 1-25-9c-3.333-.67-6.667-1.33-10-2-20.636-8.65-41.303-17.32-62-26-124.377-64.5-220.21-158.33-287.5-281.5a1010 1010 0 0 1-17-39l-3-4a395 395 0 0 0-15-41 374 374 0 0 1-11-36l-9-39a366 366 0 0 0-6-36 1642 1642 0 0 1-5.5-92.5q5.24-279.871 211-466 61.788-53.755 135-91a1492 1492 0 0 1 47-21l28-10 37-11a1956 1956 0 0 1 46-10 1145 1145 0 0 1 87-10.5m367 359c12.69-.014 25.35.486 38 1.5a399 399 0 0 1 39 10c56.18 22.509 95.34 62.009 117.5 118.5 21.9 63.822 14.57 123.822-22 180-20.98 28.71-47.15 51.21-78.5 67.5-37.69 16.585-77.02 21.585-118 15-69.62-14.983-118.78-54.816-147.5-119.5a284 284 0 0 1-11-39q-15.24-126.17 85.5-201.5c29.7-18.676 62.04-29.509 97-32.5`}),B.createElement(`path`,{d:`M899.5 258.5a2829 2829 0 0 0 135 0c5.33.53 10.66 1.03 16 1.5l1.5 1.5q.255 125.792 1.5 251.5c-.56 6.766-2.73 12.932-6.5 18.5a587 587 0 0 0-9.5 25.5 71.8 71.8 0 0 1-5.5 20.5 575 575 0 0 0-5.5 52.5 587 587 0 0 0 5.5 55.5 515 515 0 0 0 18.5 58.5c-.24.873-.57 1.707-1 2.5a4183 4183 0 0 1-152 .5 11.3 11.3 0 0 1-1.5-3.5 58052 58052 0 0 1 0-482 30 30 0 0 1 3.5-3`}),B.createElement(`path`,{d:`M717.5 423.5q71.002-.25 142 .5l1.5 1.5q.713 154.588.5 309 .27 6.043-2 11.5a2513 2513 0 0 1-141 1 6.98 6.98 0 0 1-3.5-2.5 37080 37080 0 0 1-1.5-314.5q-.099-4.63 4-6.5`}),B.createElement(`path`,{d:`M1360.5 487.5c2.13-.353 3.47.48 4 2.5-.74 4.181-1.57 8.348-2.5 12.5a13569 13569 0 0 1-34 102 27.2 27.2 0 0 0-1 8c1.33 1.838 3.16 2.838 5.5 3a937 937 0 0 1 86 0 4.95 4.95 0 0 1-.5 3 820 820 0 0 0-27 29q-50.445 59.205-100.5 119-5.535 6.54-12 12a3.6 3.6 0 0 1-1.5-1q-1.005-3 0-6a1048 1048 0 0 0 16-61c2.94-5.581 4.6-11.581 5-18l3-6a156.5 156.5 0 0 1 5-24 11.3 11.3 0 0 0-3.5-1.5l-90-1a3.6 3.6 0 0 1-1-1.5c49.72-57.045 99.38-114.045 149-171`},B.createElement(`animate`,{attributeName:`fill`,values:`#00af78;${t===`dark`?`#ffffff`:`#00785A`};#00af78`,dur:`2s`,repeatCount:`indefinite`})),B.createElement(`path`,{className:`bar bar1`,d:`M544.5 537.5q68.283-.426 136.5 1a2379 2379 0 0 1 1.5 96.5l-.5 92.5q-.918 3.798-4.5 2.5-50.249-64.14-122-103-8.75-1.76-14.5-8.5-1-39 0-78a30 30 0 0 1 3.5-3M721.5 777.5q60.628-.732 121 1.5 37.233 79.24 74.5 158.5 1 2 0 4a3116 3116 0 0 1-136.5.5 417 417 0 0 1-8.5-38.5 962 962 0 0 1-15-47 713 713 0 0 0-21-46 732 732 0 0 1-16-27q-1.122-3.51 1.5-6`}),B.createElement(`path`,{className:`bar bar2`,d:`M879.5 777.5q93-.25 186 .5c18.83 33.513 43.5 62.179 74 86a144.6 144.6 0 0 1 23 16q13.5 5.88 25.5 14.5a574 574 0 0 1 22.5 45c-.33 1-.67 2-1 3-84.63-.161-169.3.006-254 .5q-3.752-3.208-6.5-7.5a2804 2804 0 0 1-8-20 252 252 0 0 1-13-24 3463 3463 0 0 0-23-53 1506 1506 0 0 1-27-55q-1.122-3.51 1.5-6`}),B.createElement(`path`,{className:`bar bar3`,d:`M786.5 971.5q68.56.08 137 0a29.2 29.2 0 0 1 7 2.5 9467 9467 0 0 0 68.5 141.5c4 11.67 9.34 22.67 16 33 1.47 4.53-.2 6.87-5 7-86.772-.2-173.606-.37-260.5-.5-1.754-4.38-.921-8.22 2.5-11.5a411 411 0 0 1 10-25 578 578 0 0 0 10-32 99.6 99.6 0 0 1 5-22q2.12-21.06 5-42l1-48q1.478-1.971 3.5-3`}),B.createElement(`path`,{className:`bar bar4`,d:`M970.5 971.5c83.58.74 167.25.74 251 0 2.73.182 5.39.682 8 1.5 18.09 35.51 36.26 71.01 54.5 106.5 7.67 13.67 15.33 27.33 23 41 2.16 3.76 2.82 7.76 2 12-10.9 7.75-22.4 14.59-34.5 20.5-2.92.99-5.92 1.65-9 2-68.48.48-136.82.65-205 .5-4.11-.08-7.28-1.74-9.5-5a3780 3780 0 0 0-67-140 71388 71388 0 0 1-12-28q-5.977-4.855-1.5-11`}),B.createElement(`path`,{d:`M83.5 1377.5a332.5 332.5 0 0 0 50.5 0c3.056.58 6.056 1.24 9 2a31209 31209 0 0 1 126.5 194 3.6 3.6 0 0 0 1.5-1c.652-63.71.652-127.37 0-191 .51-2.76 2.177-4.09 5-4a279.4 279.4 0 0 0 47 0c2.145-.1 3.979.56 5.5 2 .529 54.71.862 109.54 1 164.5l-.5 116.5c-.575 3.3-2.575 4.96-6 5a490 490 0 0 0-52 0q-5.74-1.74-10-6a14653 14653 0 0 0-125.5-193q-2.01 1.785-2 4.5a6168 6168 0 0 1 .5 191.5q-2.794 3.675-7.5 3a219.4 219.4 0 0 0-41 0q-5.057-.81-5.5-6c-.667-93.33-.667-186.67 0-280a19.2 19.2 0 0 0 3.5-2`}),B.createElement(`path`,{d:`M986.5 1377.5c17.32 1.09 34.66 1.25 52 .5 3.23 1.94 5.4 4.78 6.5 8.5 9.36 38.7 18.7 77.37 28 116 3.05 6.64 4.72 13.64 5 21 2.95 5.96 4.62 12.29 5 19 4.15 16.12 8.49 32.12 13 48 2.04-1.08 3.38-2.75 4-5 4.23-19.04 8.56-38.04 13-57 4.55-15.3 8.88-30.64 13-46 .76-4.32 1.43-8.65 2-13 4.33-15.33 8.66-30.66 13-46 2.08-12.15 4.75-24.15 8-36 .85-3.2 2.35-6.03 4.5-8.5 19.85-.22 39.68-.72 59.5-1.5 2.3-.01 4.47.49 6.5 1.5 6.53 21.92 12.37 44.09 17.5 66.5 2.94 6.32 4.61 12.99 5 20 3.56 15.24 7.89 30.24 13 45 2.47 11.74 5.14 23.41 8 35a7.4 7.4 0 0 0 2 3c2.38 11.75 5.04 23.41 8 35 1.33 3.33 3.16 6.33 5.5 9a2872 2872 0 0 1 27.5-111c.39-7.01 2.06-13.68 5-20 .39-7.01 2.06-13.68 5-20 .57-4.35 1.24-8.68 2-13 4.34-16 8.67-32 13-48l1.5-1.5c16.17-.29 32.34-.79 48.5-1.5q5.385-.045 10.5 1.5c.58.89.91 1.89 1 3-2.02 4.57-3.18 9.4-3.5 14.5-2.84 6-4.5 12.34-5 19a351 351 0 0 0-8 25c-2.97 11.6-5.63 23.27-8 35-2.56 8.31-5.23 16.65-8 25-.39 6.38-2.06 12.38-5 18a8809 8809 0 0 1-38 144q-4.725 2.91-10.5 3a410 410 0 0 0-56.5 0c-3.08-.44-5.91-1.44-8.5-3-8.05-31.19-16.88-62.19-26.5-93-.67-4-1.33-8-2-12-9.67-32.85-18.5-65.85-26.5-99-3.92 8.2-6.42 16.87-7.5 26-.72 2.45-1.72 4.78-3 7a2343 2343 0 0 1-28 109c-.72 2.45-1.72 4.78-3 7-4.17 18.07-8.51 36.07-13 54-4.52 3.47-9.69 4.8-15.5 4a685 685 0 0 0-55.5 0c-1.63-.38-3.13-1.04-4.5-2q-6-17.88-10.5-36c-10.91-43.39-21.91-86.73-33-130-2.88-5.97-4.54-12.31-5-19a32 32 0 0 1-3-7 4792 4792 0 0 0-18-75c-3.031-5.25-4.031-10.92-3-17 .995-.57 1.828-1.23 2.5-2`}),B.createElement(`path`,{d:`M1648.5 1406.5c16.35.64 32.68 1.3 49 2 1.4 1.35 2.06 3.02 2 5a255 255 0 0 0-.5 38c.5 1.17 1.33 2 2.5 2.5 16.33.33 32.67.67 49 1 .92.37 1.75.87 2.5 1.5.82 13.58.66 27.08-.5 40.5-17 .33-34 .67-51 1-1.17.5-2 1.33-2.5 2.5-.67 31.33-.67 62.67 0 94 2.29 23.73 15.12 33.23 38.5 28.5 4.85-3.25 10.02-4.08 15.5-2.5.64 13.67.98 27.34 1 41a11.4 11.4 0 0 1-4.5 3.5c-22.63 5.41-45.29 5.75-68 1-13.91-4.18-24.08-12.68-30.5-25.5-4.8-11.14-7.13-22.81-7-35-.65-34.59-.65-69.25 0-104-.32-1.56-1.15-2.73-2.5-3.5-9-.33-18-.67-27-1-.92-.37-1.75-.87-2.5-1.5-.21-11.69-.71-23.36-1.5-35 .19-3.23 1.85-5.06 5-5.5 9-.33 18-.67 27-1l1.5-1.5c.33-14.33.67-28.67 1-43 .98-1.31 2.15-2.31 3.5-3M1807.5 1406.5c9.18.78 18.35.78 27.5 0 7.6.35 15.1 1.18 22.5 2.5a980 980 0 0 1 1.5 43.5l1.5 1.5c15 .33 30 .67 45 1 1.17.5 2 1.33 2.5 2.5-.77 11.49-.61 22.99.5 34.5a23 23 0 0 1-2 5c-15 .33-30 .67-45 1-.92.37-1.75.87-2.5 1.5-.67 32.67-.67 65.33 0 98 1.84 19.84 12.68 28.67 32.5 26.5 4.83-.18 9.33-1.35 13.5-3.5 1.44.06 2.77.39 4 1a673 673 0 0 0 3.5 36c.38 2.82-.62 4.99-3 6.5-23.81 6.5-47.81 7.17-72 2-12.46-5.13-21.63-13.63-27.5-25.5-1.1-4.87-2.77-9.54-5-14-.33-3.33-.67-6.67-1-10-.33-39-.67-78-1-117l-1.5-1.5c-10.43-.05-20.77-.71-31-2-.66-6.59-.99-13.26-1-20 .01-6.74.34-13.41 1-20 10.26-1.26 20.59-1.93 31-2l1.5-1.5c.33-14 .67-28 1-42 .69-1.85 1.86-3.18 3.5-4`}),B.createElement(`path`,{d:`M878.5 1446.5c27.433-1.66 52.433 5.01 75 20 21.826 18.58 34.326 42.24 37.5 71 3.595 25.23 1.262 49.9-7 74-16.274 34.06-43.107 53.89-80.5 59.5q-48.019 5.13-88-21-30.077-28.71-35.5-70.5a400 400 0 0 1 0-40q13.828-84.585 98.5-93m1 47c25.457-.37 42.623 11.3 51.5 35q9.63 36.765-4 72-17.011 26.355-48.5 22.5a61.5 61.5 0 0 0-14-5c-7.087-4.96-12.92-11.13-17.5-18.5a28.9 28.9 0 0 0-5-11c-3.333-19.33-3.333-38.67 0-58 4.098-14.4 12.598-25.23 25.5-32.5q6.626-1.05 12-4.5`}),B.createElement(`path`,{d:`M447.5 1447.5c21.766-2.21 42.766.62 63 8.5 21.067 11.41 35.234 28.57 42.5 51.5q1.39 10.62 4 21a229.3 229.3 0 0 1 1 40c-1.171 1.39-2.671 2.23-4.5 2.5q-65.505.255-131 1.5c-2.062 4.18-2.229 8.51-.5 13 2.366 8.1 5.7 15.77 10 23 15.264 15.93 33.764 20.77 55.5 14.5 3.87-2.52 7.87-4.85 12-7 3.262-2.59 5.762-5.76 7.5-9.5a39.7 39.7 0 0 1 8-7 965 965 0 0 0 21.5 8.5q10.12 1.62 18.5 7.5c.667 1.67.667 3.33 0 5q-9.276 20.79-27.5 34.5c-23.698 14.22-49.365 19.55-77 16-51.283-10.29-80.116-41.45-86.5-93.5-.894-14.71-.56-29.37 1-44a86 86 0 0 0 4-18 125.3 125.3 0 0 1 10.5-23c7.797-11.96 17.464-22.13 29-30.5 12.242-7.13 25.242-11.96 39-14.5m14 42c25.166 1.33 39.166 14.5 42 39.5q-1.824 2.61-5 3a719 719 0 0 1-75-1q2.218-22.395 21-36a123 123 0 0 1 17-5.5`}),B.createElement(`path`,{d:`M1482.5 1447.5c14.73-.22 29.39.61 44 2.5 37.88 7.55 57.72 30.72 59.5 69.5.33 38 .67 76 1 114 1.99 9.92 2.66 19.92 2 30-.75.63-1.58 1.13-2.5 1.5-15.66-.53-31.33-.53-47 0-2.44-2.29-3.94-5.13-4.5-8.5-1.06-4.6-1.73-9.27-2-14a7.2 7.2 0 0 0-2.5-2c-4.34 5.21-9.01 10.04-14 14.5-26.31 16.05-54.31 19.72-84 11q-44.205-19.29-37.5-67.5a124 124 0 0 0 5-17c8.22-13.88 19.38-24.72 33.5-32.5 9.71-4.13 19.71-7.46 30-10 21.1-4.3 42.44-6.63 64-7 1.8-.64 3.14-1.8 4-3.5-1.04-7.84-2.88-15.5-5.5-23a34.4 34.4 0 0 1-6.5-7.5 31.4 31.4 0 0 1-8-5c-6.73-.84-13.4-2.01-20-3.5-5.98 1.27-11.98 2.44-18 3.5q-3.72 4.11-9 6c-1.8 3.1-3.97 5.94-6.5 8.5-1.37 5.77-3.7 11.1-7 16-.8 1.3-1.97 1.97-3.5 2a426 426 0 0 0-34-13.5c-3.12-1.97-6.28-3.81-9.5-5.5-.65-3.09-.32-6.09 1-9 9.52-23.19 26.36-38.35 50.5-45.5a221 221 0 0 1 27-4.5m28 122c6.92-.31 13.76.02 20.5 1 2.47 19.95-4.37 35.78-20.5 47.5-4.04.9-7.7 2.57-11 5q-16.545 4.515-33 0c-16.58-9.72-18.91-22.05-7-37 2.29-1.29 4.29-2.96 6-5 14.59-5.91 29.59-9.74 45-11.5`}),B.createElement(`path`,{d:`M578.5 1454.5q29.139-.72 58 1.5c1.167 1.17 2.333 2.33 3.5 3.5a800 800 0 0 0 34 54c1.667-1.33 3.333-2.67 5-4a337 337 0 0 1 18-30 182 182 0 0 0 16.5-23.5 222 222 0 0 1 29-1.5c8.667.17 17.333.33 26 .5q3.726 3.42.5 7.5a2217 2217 0 0 0-63.5 93.5 103.5 103.5 0 0 0 8.5 15.5 5919 5919 0 0 1 59 85c2.155 3.04 1.988 5.87-.5 8.5a457 457 0 0 0-51 .5q-3.55-.51-7-1.5a728 728 0 0 1-40-60.5c-2.341-1.21-4.507-.88-6.5 1a926 926 0 0 1-28 45 120 120 0 0 1-11.5 14.5l-7.5 1.5c-16.734-.89-33.4-1.23-50-1q-.411-4.725 2-9a2463 2463 0 0 0 67.5-97.5 9.6 9.6 0 0 0-1.5-4.5 1263 1263 0 0 1-46-69l-18-24q-1.615-5.115 3.5-6`}))))}var nA=`
|
|
232
|
+
.logo-background-light, .logo-background-colored {
|
|
233
|
+
background: white;
|
|
234
|
+
}
|
|
235
|
+
.logo-background-dark, .logo-background-blue {
|
|
236
|
+
background: black;
|
|
237
|
+
}
|
|
238
|
+
`;function rA(e){(0,B.useEffect)(()=>{if(!window.document.getElementById(`vendor-iobroker-component`)){let e=window.document.createElement(`style`);e.setAttribute(`id`,`vendor-iobroker-component`),e.innerHTML=nA,window.document.head.appendChild(e)}},[]);let t=e.themeType||e.themeName||`light`;return B.createElement(`div`,{className:`vendor-logo-back logo-background-${t}`,style:{display:`flex`,flexDirection:`column`,height:`100%`,width:`10%`,margin:`auto`,backgroundImage:e.backgroundImage&&e.backgroundImage!==`@@loginBackgroundImage@@`?e.backgroundImage:window.loadingBackgroundImage&&window.loadingBackgroundImage!==`@@loginBackgroundImage@@`?`url(${window.loadingBackgroundImage})`:void 0,backgroundColor:e.backgroundColor&&e.backgroundColor!==`@@loginBackgroundColor@@`?e.backgroundColor:window.loadingBackgroundColor&&window.loadingBackgroundColor!==`@@loginBackgroundColor@@`?window.loadingBackgroundColor:e.themeType===`dark`?`#000`:`#FFF`,backgroundSize:`cover`}},B.createElement(`div`,{style:{flexGrow:1}}),B.createElement(bv,{color:`secondary`,size:e.size||200,thickness:5}),B.createElement(`div`,{style:{flexGrow:1}}))}var iA=`
|
|
239
|
+
/**
|
|
240
|
+
* Copyright 2018-2024 Denis Haev (bluefox) <dogafox@gmail.com>
|
|
241
|
+
*
|
|
242
|
+
* MIT License
|
|
243
|
+
*
|
|
244
|
+
**/
|
|
245
|
+
|
|
246
|
+
.logo-background-light, .logo-background-colored {
|
|
247
|
+
background: white;
|
|
248
|
+
}
|
|
249
|
+
.logo-background-dark, .logo-background-blue {
|
|
250
|
+
background: black;
|
|
251
|
+
}
|
|
252
|
+
.logo-div {
|
|
253
|
+
position: absolute;
|
|
254
|
+
top: 50%;
|
|
255
|
+
left: 50%;
|
|
256
|
+
-ms-transform: translateX(-50%) translateY(-50%);
|
|
257
|
+
-webkit-transform: translate(-50%,-50%);
|
|
258
|
+
transform: translate(-50%,-50%);
|
|
259
|
+
overflow: hidden;
|
|
260
|
+
border-radius: 50%;
|
|
261
|
+
z-index: 2;
|
|
262
|
+
}
|
|
263
|
+
.logo-border {
|
|
264
|
+
/*border-color: #164477;*/
|
|
265
|
+
border-top-color: #3399CC;
|
|
266
|
+
border-left-color: #164477;
|
|
267
|
+
border-bottom-color: #164477;
|
|
268
|
+
border-right-color: #164477;
|
|
269
|
+
border-radius: 50%;
|
|
270
|
+
border-style: solid;
|
|
271
|
+
box-sizing: border-box;
|
|
272
|
+
width: 100%;
|
|
273
|
+
height: 100%;
|
|
274
|
+
position: absolute;
|
|
275
|
+
}
|
|
276
|
+
.logo-top {
|
|
277
|
+
position: absolute;
|
|
278
|
+
width: 4.5%;
|
|
279
|
+
height: 16%;
|
|
280
|
+
top: 0;
|
|
281
|
+
z-index: 2;
|
|
282
|
+
}
|
|
283
|
+
.logo-i {
|
|
284
|
+
position: absolute;
|
|
285
|
+
width: 14.5%;
|
|
286
|
+
height: 60%;
|
|
287
|
+
top: 20%;
|
|
288
|
+
left: 42%;
|
|
289
|
+
background: #3399CC;
|
|
290
|
+
}
|
|
291
|
+
.logo-i-top {
|
|
292
|
+
position: absolute;
|
|
293
|
+
width: 14.5%;
|
|
294
|
+
height: 4%;
|
|
295
|
+
left: 42%;
|
|
296
|
+
background: #3399CC;
|
|
297
|
+
border-radius: 100%;
|
|
298
|
+
}
|
|
299
|
+
.logo-back {
|
|
300
|
+
width: 100%;
|
|
301
|
+
height: 100%;
|
|
302
|
+
z-index: 0;
|
|
303
|
+
overflow: hidden;
|
|
304
|
+
}
|
|
305
|
+
@keyframes logo-grow {
|
|
306
|
+
0% {
|
|
307
|
+
width: 230px;
|
|
308
|
+
height: 230px;
|
|
309
|
+
transform: translate(-50%,-50%) scale(1);
|
|
310
|
+
opacity: 1
|
|
311
|
+
}
|
|
312
|
+
99% {
|
|
313
|
+
width: 230px;
|
|
314
|
+
height: 230px;
|
|
315
|
+
transform: translate(-50%,-50%) scale(10);
|
|
316
|
+
opacity: 0;
|
|
317
|
+
}
|
|
318
|
+
100% {
|
|
319
|
+
width: 0;
|
|
320
|
+
height: 0;
|
|
321
|
+
opacity: 0;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
@keyframes logo-spin { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } }
|
|
325
|
+
@keyframes logo-color-inside-light {
|
|
326
|
+
0% {
|
|
327
|
+
background: #FEFEFE;
|
|
328
|
+
}
|
|
329
|
+
100% {
|
|
330
|
+
background: #3399CC;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
@keyframes logo-color-inside-dark {
|
|
334
|
+
0% {
|
|
335
|
+
background: #030303;
|
|
336
|
+
}
|
|
337
|
+
100% {
|
|
338
|
+
background: #3399CC;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
@keyframes logo-color-inside-colored {
|
|
342
|
+
0% {
|
|
343
|
+
background: #FEFEFE;
|
|
344
|
+
}
|
|
345
|
+
100% {
|
|
346
|
+
background: #3399CC;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
@keyframes logo-color-inside-blue {
|
|
350
|
+
0% {
|
|
351
|
+
background: #030303;
|
|
352
|
+
}
|
|
353
|
+
100% {
|
|
354
|
+
background: #3399CC;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
@keyframes logo-color-outside-light {
|
|
359
|
+
0% {
|
|
360
|
+
border-color: #FEFEFE;
|
|
361
|
+
}
|
|
362
|
+
100% {
|
|
363
|
+
border-top-color: #3399CC;
|
|
364
|
+
border-left-color: #164477;
|
|
365
|
+
border-bottom-color: #164477;
|
|
366
|
+
border-right-color: #164477;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
@keyframes logo-color-outside-dark {
|
|
370
|
+
0% {
|
|
371
|
+
border-color: #040404;
|
|
372
|
+
}
|
|
373
|
+
100% {
|
|
374
|
+
border-top-color: #3399CC;
|
|
375
|
+
border-left-color: #164477;
|
|
376
|
+
border-bottom-color: #164477;
|
|
377
|
+
border-right-color: #164477;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
@keyframes logo-color-outside-colored {
|
|
381
|
+
0% {
|
|
382
|
+
border-color: #FEFEFE;
|
|
383
|
+
}
|
|
384
|
+
100% {
|
|
385
|
+
border-top-color: #3399CC;
|
|
386
|
+
border-left-color: #164477;
|
|
387
|
+
border-bottom-color: #164477;
|
|
388
|
+
border-right-color: #164477;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
@keyframes logo-color-outside-blue {
|
|
392
|
+
0% {
|
|
393
|
+
border-color: #040404;
|
|
394
|
+
}
|
|
395
|
+
100% {
|
|
396
|
+
border-top-color: #3399CC;
|
|
397
|
+
border-left-color: #164477;
|
|
398
|
+
border-bottom-color: #164477;
|
|
399
|
+
border-right-color: #164477;
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.logo-animate-wait {
|
|
404
|
+
animation: logo-color-outside 1.5s, logo-spin 1.5s linear infinite;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.logo-animate-grow-light {
|
|
408
|
+
background: #DDD;
|
|
409
|
+
}
|
|
410
|
+
.logo-animate-grow-dark {
|
|
411
|
+
background: #1d1d1d;
|
|
412
|
+
}
|
|
413
|
+
.logo-animate-grow-colored {
|
|
414
|
+
background: #DDD;
|
|
415
|
+
}
|
|
416
|
+
.logo-animate-grow-blue {
|
|
417
|
+
background: #1d1d1d;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.logo-animate-grow {
|
|
421
|
+
display: inline-block;
|
|
422
|
+
text-align: center;
|
|
423
|
+
z-index: 1;
|
|
424
|
+
top: 50%;
|
|
425
|
+
left: 50%;
|
|
426
|
+
-ms-transform: translateX(-50%) translateY(-50%);
|
|
427
|
+
-webkit-transform: translate(-50%,-50%);
|
|
428
|
+
transform: translate(-50%,-50%);
|
|
429
|
+
width: 245px;
|
|
430
|
+
height: 245px;
|
|
431
|
+
border-radius: 50%;
|
|
432
|
+
position: absolute;
|
|
433
|
+
animation: logo-grow 1s 1 ease forwards;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.logo-animate-color-inside-light {
|
|
437
|
+
animation: logo-color-inside-light 2.5s;
|
|
438
|
+
}
|
|
439
|
+
.logo-animate-color-inside-dark {
|
|
440
|
+
animation: logo-color-inside-dark 2.5s;
|
|
441
|
+
}
|
|
442
|
+
.logo-animate-color-inside-colored {
|
|
443
|
+
animation: logo-color-inside-colored 2.5s;
|
|
444
|
+
}
|
|
445
|
+
.logo-animate-color-inside-blue {
|
|
446
|
+
animation: logo-color-inside-blue 2.5s;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
.logo-animate-color-outside-light {
|
|
450
|
+
animation: logo-color-outside-light 1.5s;
|
|
451
|
+
}
|
|
452
|
+
.logo-animate-color-outside-dark {
|
|
453
|
+
animation: logo-color-outside-dark 1.5s;
|
|
454
|
+
}
|
|
455
|
+
.logo-animate-color-outside-colored {
|
|
456
|
+
animation: logo-color-outside-colored 1.5s;
|
|
457
|
+
}
|
|
458
|
+
.logo-animate-color-outside-blue {
|
|
459
|
+
animation: logo-color-outside-blue 1.5s;
|
|
460
|
+
}
|
|
461
|
+
`;function aA(e){(0,B.useEffect)(()=>{if(!window.document.getElementById(`loader-iobroker-component`)){let e=window.document.createElement(`style`);e.setAttribute(`id`,`loader-iobroker-component`),e.innerHTML=iA,window.document.head.appendChild(e)}},[]);let t=e.size||234,n=e.themeName||e.theme||e.themeType||`light`;return B.createElement(`div`,{className:`logo-back logo-background-${n}`,style:{backgroundImage:e.backgroundImage&&e.backgroundImage!==`@@loginBackgroundImage@@`?e.backgroundImage:window.loadingBackgroundImage&&window.loadingBackgroundImage!==`@@loginBackgroundImage@@`?`url(${window.loadingBackgroundImage})`:void 0,backgroundColor:e.backgroundColor&&e.backgroundColor!==`@@loginBackgroundColor@@`?e.backgroundColor:window.loadingBackgroundColor&&window.loadingBackgroundColor!==`@@loginBackgroundColor@@`?window.loadingBackgroundColor:void 0,backgroundSize:`cover`}},window.loadingHideLogo===`true`?null:B.createElement(B.Fragment,null,B.createElement(`div`,{className:`logo-div`,style:{width:t,height:t}},B.createElement(`div`,{className:`logo-top logo-background-${n}`,style:{left:`37%`}}),B.createElement(`div`,{className:`logo-top logo-background-${n}`,style:{left:`57%`}}),B.createElement(`div`,{className:`logo-border logo-background-${n} logo-animate-wait`,style:{borderWidth:t*.132}}),B.createElement(`div`,{className:`logo-i logo-animate-color-inside-${n}`}),B.createElement(`div`,{className:`logo-i-top logo-animate-color-inside-${n}`,style:{top:`18%`}}),B.createElement(`div`,{className:`logo-i-top logo-animate-color-inside-${n}`,style:{bottom:`18%`}})),B.createElement(`div`,{className:`logo-animate-grow logo-animate-grow-${n}`,style:{width:t+11,height:t+11}})))}var oA=`
|
|
462
|
+
.logo-background-light, .logo-background-colored {
|
|
463
|
+
background: white;
|
|
464
|
+
}
|
|
465
|
+
.logo-background-dark, .logo-background-blue {
|
|
466
|
+
background: black;
|
|
467
|
+
}
|
|
468
|
+
.pt-logo-div {
|
|
469
|
+
position: absolute;
|
|
470
|
+
top: 50%;
|
|
471
|
+
left: 50%;
|
|
472
|
+
-ms-transform: translateX(-50%) translateY(-50%);
|
|
473
|
+
-webkit-transform: translate(-50%,-50%);
|
|
474
|
+
transform: translate(-50%,-50%);
|
|
475
|
+
z-index: 2;
|
|
476
|
+
}
|
|
477
|
+
.pt-logo-border {
|
|
478
|
+
border-style: solid;
|
|
479
|
+
box-sizing: border-box;
|
|
480
|
+
width: 100%;
|
|
481
|
+
height: 100%;
|
|
482
|
+
position: absolute;
|
|
483
|
+
}
|
|
484
|
+
.pt-loader-block {
|
|
485
|
+
height: 65px;
|
|
486
|
+
width: 74px;
|
|
487
|
+
border-radius: 15px;
|
|
488
|
+
position: absolute;
|
|
489
|
+
box-sizing: content-box;
|
|
490
|
+
}
|
|
491
|
+
.pt-loader-blue {
|
|
492
|
+
border: 9px solid #0F99DE;
|
|
493
|
+
transform: rotate(5grad);
|
|
494
|
+
left: 93px;
|
|
495
|
+
top: 0;
|
|
496
|
+
animation: spin-blue 5s ease-in-out infinite;
|
|
497
|
+
}
|
|
498
|
+
.pt-loader-green {
|
|
499
|
+
border: 9px solid #88A536;
|
|
500
|
+
transform: rotate(-6grad);
|
|
501
|
+
left: 70px;
|
|
502
|
+
top: 58px;
|
|
503
|
+
animation: spin-green 5s ease-in-out infinite;
|
|
504
|
+
}
|
|
505
|
+
.pt-loader-red {
|
|
506
|
+
border: 9px solid #BD1B24;
|
|
507
|
+
transform: rotate(-15grad);
|
|
508
|
+
left: 24px;
|
|
509
|
+
top: 100px;
|
|
510
|
+
animation: spin-red 5s ease-in-out infinite;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
@keyframes spin-blue {
|
|
514
|
+
0% {
|
|
515
|
+
transform: rotate(5deg);
|
|
516
|
+
}
|
|
517
|
+
25% {
|
|
518
|
+
transform: rotate(185deg);
|
|
519
|
+
}
|
|
520
|
+
50% {
|
|
521
|
+
transform: rotate(185deg);
|
|
522
|
+
}
|
|
523
|
+
75% {
|
|
524
|
+
transform: rotate(185deg);
|
|
525
|
+
}
|
|
526
|
+
100% {
|
|
527
|
+
transform: rotate(185deg);
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
@keyframes spin-green {
|
|
531
|
+
0% {
|
|
532
|
+
transform: rotate(-6deg);
|
|
533
|
+
}
|
|
534
|
+
25% {
|
|
535
|
+
transform: rotate(-6deg);
|
|
536
|
+
}
|
|
537
|
+
50% {
|
|
538
|
+
transform: rotate(174deg);
|
|
539
|
+
}
|
|
540
|
+
75% {
|
|
541
|
+
transform: rotate(174deg);
|
|
542
|
+
}
|
|
543
|
+
100% {
|
|
544
|
+
transform: rotate(-6deg);
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
@keyframes spin-red {
|
|
548
|
+
0% {
|
|
549
|
+
transform: rotate(-15deg);
|
|
550
|
+
}
|
|
551
|
+
25% {
|
|
552
|
+
transform: rotate(-15deg);
|
|
553
|
+
}
|
|
554
|
+
50% {
|
|
555
|
+
transform: rotate(-15deg);
|
|
556
|
+
}
|
|
557
|
+
75% {
|
|
558
|
+
transform: rotate(165deg);
|
|
559
|
+
}
|
|
560
|
+
100% {
|
|
561
|
+
transform: rotate(165deg);
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
`;function sA(e){let t=e.size||200;(0,B.useEffect)(()=>{if(!window.document.getElementById(`pt-iobroker-component`)){let e=window.document.createElement(`style`);e.setAttribute(`id`,`pt-iobroker-component`),e.innerHTML=oA,window.document.head.appendChild(e)}},[]);let n=e.themeType||e.themeName||`light`;return B.createElement(`div`,{className:`pt-logo-back logo-background-${n}`,style:{backgroundImage:e.backgroundImage&&e.backgroundImage!==`@@loginBackgroundImage@@`?e.backgroundImage:window.loadingBackgroundImage&&window.loadingBackgroundImage!==`@@loginBackgroundImage@@`?`url(${window.loadingBackgroundImage})`:void 0,backgroundColor:e.backgroundColor&&e.backgroundColor!==`@@loginBackgroundColor@@`?e.backgroundColor:window.loadingBackgroundColor&&window.loadingBackgroundColor!==`@@loginBackgroundColor@@`?window.loadingBackgroundColor:e.themeType===`dark`?`#000`:`#FFF`,backgroundSize:`cover`}},B.createElement(`div`,{className:`pt-logo-div`,style:{width:t,height:t}},B.createElement(`div`,{style:{width:200,height:200}},B.createElement(`div`,{className:`pt-loader-blue pt-loader-block`}),B.createElement(`div`,{className:`pt-loader-green pt-loader-block`}),B.createElement(`div`,{className:`pt-loader-red pt-loader-block`}))))}var cA=`loader-ha-spin-keyframes`,lA=`
|
|
565
|
+
@keyframes loaderHA-spin {
|
|
566
|
+
0% { transform: rotate(0deg); }
|
|
567
|
+
100% { transform: rotate(360deg); }
|
|
568
|
+
}`;function uA(e){let t=e.themeType||`dark`,n=e.size||270,r=n*1.5,i=n*14/270,a=n*280/270;return B.useEffect(()=>{if(!window.document.getElementById(cA)){let e=window.document.createElement(`style`);e.setAttribute(`id`,cA),e.innerHTML=lA,window.document.head.appendChild(e)}},[]),B.createElement(`div`,{style:{width:`100%`,height:`100%`,position:`absolute`,top:0,left:0,display:`flex`,alignItems:`center`,justifyContent:`center`,backgroundImage:e.backgroundImage&&e.backgroundImage!==`@@loginBackgroundImage@@`?e.backgroundImage:window.loadingBackgroundImage&&window.loadingBackgroundImage!==`@@loginBackgroundImage@@`?`url(${window.loadingBackgroundImage})`:void 0,backgroundColor:e.backgroundColor&&e.backgroundColor!==`@@loginBackgroundColor@@`?e.backgroundColor:window.loadingBackgroundColor&&window.loadingBackgroundColor!==`@@loginBackgroundColor@@`?window.loadingBackgroundColor:t===`dark`?`#000`:`#FFF`,backgroundSize:`cover`}},B.createElement(`div`,{style:{position:`relative`,width:r,height:r,display:`flex`,justifyContent:`center`,alignItems:`center`}},B.createElement(`div`,{style:{position:`absolute`,top:-i,left:-i,right:-i,bottom:-i,border:`${i}px solid transparent`,borderTop:`${i}px solid rgba(219, 10, 51, 0.50)`,borderRadius:`50%`,animation:`loaderHA-spin 3.6s linear infinite`}}),B.createElement(`div`,{style:{position:`absolute`,width:`100%`,height:`100%`,border:`${i}px solid transparent`,borderTop:`${i}px solid rgba(219, 10, 51, 0.75)`,borderRadius:`50%`,animation:`loaderHA-spin 2.2s linear infinite`}}),B.createElement(`div`,{style:{width:n,height:n,zIndex:1,display:`flex`,justifyContent:`center`,alignItems:`center`}},B.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 69.6 148.1`,style:{width:`100%`,height:`100%`}},B.createElement(`path`,{fill:`#db0a33`,d:`M69.5,100.6c0-.4,0-.8-.2-1.1v-.7c-.2-.4-.3-.8-.5-1.2,0-.2-.2-.5-.3-.7,0,0,0-.2,0-.2,0-.2,0-.3-.2-.5l-.4-.7-.4-.6c-1-1.6-2.4-3-4.2-4.3-.3-.2-.6-.4-.9-.6,0,0-.2,0-.3-.2-.3-.2-.6-.3-.9-.5-.2,0-.3-.2-.5-.3-.3-.2-.6-.3-.9-.5,0,0-.2,0-.3-.2-1-2.7-2.4-4.9-3.8-6.7h0c2.5,0,6.6-.3,7.5-3,3.5-3,2.5-9.7,2.5-10,0-.6-.2-1.1-.4-1.7h0v-.3c.5-3-.4-7.1-.5-7.7h0l-.3-1.1c0-.3-.2-.7-.4-1,0-.4-.3-.7-.4-1,0-.3-.3-.7-.5-1s-.4-.7-.6-1c-.2-.3-.4-.6-.6-.9l-.4-.4-.4-.4-.4-.4c0,0-.3-.3-.5-.4-.3-.2-.6-.4-1-.6-.2,0-.4-.2-.5-.2-.2,0-.4,0-.6-.2-.2,0-.4,0-.6,0h-1.8c-.4,0-.8,0-1.1.2-.4,0-.7.2-1.1.4h0c-1.6-.2-2.6-1-3.1-1.7h0c2-.9,3.5-1.9,4.6-3,2.6-2.2,4-5.1,4.7-7.2,3.4-1.1,5.4-4,5.4-4h0c4.6-5.3,1.2-15.1,1.2-15.1,0,0-.8,4.2-4,5.5,0-.3-.2-.6-.3-1.1s-.3-1.1-.6-1.7c-.2-.7-.5-1.4-.9-2.2-.4-.8-.8-1.6-1.4-2.4-.5-.8-1.2-1.7-1.9-2.5h0C59.2,6.6,49.2.3,49.2.3c0,0,3.3,5.8,1.3,9.9,0,0-3.5-.8-5.7-.8s-2.4.1-3.5.3c-.5.1-1.1.2-1.6.3-.3,0-.5.1-.8.2-.2,0-.5.1-.7.2-.5.1-.9.2-1.3.4-.4.1-.8.3-1.2.4-.4.1-.7.2-1,.3s-.6.2-.9.3h-.2c-2-2.8-3.7-7.5,1.8-11.9,0,0-13,5.3-8.2,17,0,0,0,.2-.1.4h0c-.3.3-.6.7-1,1.3-.3.6-.7,1.3-.9,2.1-.1.4-.2.8-.2,1.3v1.5c-.2-.1-.5-.2-.9-.4-1.7-.8-1.7-2.8-1.7-2.8-1.1,8.3,4.2,13.3,5.2,14.1,0,.4,0,.7-.2,1v.4c-.2,0-.3.3-.4.5-.1.4-.2.7-.3,1.1-.1.7-.1,1.5,0,2.2s.3,1.4.5,2c.3.6.6,1.2.9,1.7,0,0,0,0,.1.2.4.6,1,1.4,2,2h.1c.2,0,.8.5,1.7.7.2.2,1.5,1.7,3.1,2.1-.2,1.1-1,2.8-3.4,3.7,0,0-14.2-.4-13.2,13.5-6.6,8.7-3.8,13.4-3.8,13.4-.9.6-.9,1.9-.5,3,0,0,0,.3.2.5,0,0,0,0,.3.4.3.4.6.7,1,.8,1.1.7,3.1,1.5,6.4,1.1.2.3,1.3,1.8,1.3,2.2.5,2.3,1.2,4.5,1.3,6.8l.2,1.3c-2.2-.2-11-.2-16.6,9.1,0,0-.2.2-.2.4l-.5.9-.6,1.2h0c-.3.7-.7,1.7-1.1,2.8-.5.4-1.2,0-1.7-.3-.4-.4-.7-.7-.9-1.1,0,0,0-.2,0-.3v-.2s0-.2-.2-.2h0c0,0,0,0-.2-.2h-.4s-.2,0-.2,0c-.2,0-.2.2-.3.3,0,0-.1.2-.2.2,0,.2-.2.3-.2.5-.2.6-.4,1.2-.6,1.8-.6,2.4-.6,4.9-.1,7.3.2,1.2.6,2.4,1.1,3.5.5,1.1,1.2,2.1,2,3.1.8.9,1.7,1.8,2.7,2.5s2,1.3,3.1,1.8h0l.6.4-.3-.7c-.2-.4-.3-.9-.5-1.3-.1-.4-.2-.9-.3-1.3-.1-.9-.2-1.8,0-2.7,0-.4.2-.8.4-1.2.2-.4.4-.7.7-1.1.6-.8,1-1.6,1.5-2.5.4-.9.8-1.8,1.1-2.7.1-.5.3-1,.3-1.5v-.9h0c.1-2.3-1.9-3-3-2.9-.9,0-1.7.2-2,.2.7-1.3,1.3-2.4,2-3.4h0c.2-.4.4-.6.6-.9.4-.5.8-1,1.2-1.5.1,0,.2-.3.3-.4h0c.1,0,.2-.2.3-.4.1,0,.2-.3.4-.4,6.5-6.5,12.5-2.9,12.5-2.9,0,0,1.1,3.7,1.6,4.6h0c1,2.3,2.7,4.6,4.1,6.9h0c0,0,0,4.8,2.2,7.2.5.6,1.1,1.3,1.7,2.2.3.5.5,1,.7,1.4.2.3.3.6.4.9.3.4.5.8.8,1.3s.6,1,.8,1.6c.2.5.4,1,.6,1.5,0,0,1,5.1.7,7.4-3.3.9-5.5,2.4-7.4,3.2-1,.3-3.4,2-5.5,1.9h-.5c0,.1-3.6.3-2.7,3.1,0,0,.2,3.6,5.8,2.9,1.8-.1,7.5-.5,9.1-.3,1.6.2,2.8.2,3.7.1,1.3,0,3.8,0,5.3-.4.4,1.8,3.2,2.4,6,1.5,3.6,1.6,13.5,2,15.6-1.6,2.4-4.1-2.4-8.6-4.1-12.6-3.8-9.3-.8-14-1.6-16.8,0-.7-.2-1.8-.4-3.2.8-.4,1.5-.8,2.2-1.3,1-.7,1.7-1.4,2.3-2.1l.2-.2c0,0,.2-.3.3-.4l.6-.9.6-1.2.4-1.1.3-1.2v-.8c0-.3,0-.5,0-.7h0v-2.4h.2ZM52.6,131.9c-.3.4-.7.9-1.2,1.6-1-.6-2.7-2.2-3.3-4.3,0-.2,0-.3-.2-.5-1.1-6.9-2.6-9.7-3.2-10.6-1-3.7-1.7-7.4-1.3-9.6,0,0,3.6,8.2,6.4,10,0,0,3.7,8.5,4.5,9.9.6,1-.9,2.3-1.7,3.5ZM63.6,102.7h0v.2h0v.9c0,0-.3.4-.3.4,0,0,0,.2,0,.3v.2h0v.2h0l-.2.2c-.3.6-.8,1.1-1.3,1.5h0c-.3-2.4-.6-5.1-.8-8.2.2-.5.3-1.1.4-1.7l.2.2c.2.2.4.4.5.6.2.2.3.4.5.7,0,.2.3.4.4.7h0c0,.3.2.5.3.7,0,.2.2.5.2.7h0v.3c0,.2,0,.4,0,.6v.7h0v.7h0Z`}))),B.createElement(`div`,{style:{position:`absolute`,width:a,zIndex:2,top:`57.5%`,left:`50%`,transform:`translate(-50%, -155%)`}},B.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 7152 512`,width:`100%`,height:`auto`},B.createElement(`path`,{fill:`#fff`,d:`M4566 0h1053v5h25c2 5 2 5 1 8h16q3 3 2 7l3 1 4 1 2 7h2l12 1q3 1 2 6v3h7q3 4 2 10v6h3l4 1 1 8 3-1 5 2 1 7 7 1 1 14v2h3q3 0 5 2l1 9v22l3 1 4 1 1 7v41q0 3-3 5l-5 1v26q1 3-2 5h-8l1 2v8l-1 8h-8v16q-3 3-7 2l-1 3-2 5h-6v6l-1 11h-7l-1 8-10 1h-6l-1 3-1 4-7 2v3l-2 4h-16l1 2-2 6h-15v3l-3 6-10 1h-11l-10 2q1 3-2 5l-8 1h-796l-4-1-2-7h-2q-7 0-14-2v-8h-8l-1-7h-3l-4-1q-2-5-2-10v-62l2-6 7-1v-3l2-4h7v-8l5-1h3v-3l1-5q3-2 8-1h57l140-1h602v-3l2-4h7l1-8 8-1v-31l-7-1q-2-2-2-5v-2l-3-1q-5 0-6-4v-5h-3l-11 1-2-2v-7h-917l-1 8-23 1h-14l-5-1v7l-9 3h-7l-1 3-1 4-9 1h-6l-1 3-2 5h-6v3q0 3-2 5l-6 1v3q0 3-4 5h-5v15l-2 2h-7v16h-8v110h8v24h6l3 3v5l3 1q4 0 6 4l-1 5 9 2v6h3q3 0 5 2l1 6h2l5 1q2 4 0 8h2q12-3 23 1l1 5v3l2-1h1069l9 1 1 8h18l7 2 1 6h3q3 0 5 4l1 5h3q3 0 5 4v12l3 1 5 2v21l1 17v3l-1 8-5 3-3 1v8l-2 7h-8l1 2-1 6h-16v5H4571v-5h-42v-8h-16q-2-3-2-7h-7l-4-1q-3 1-5-2v-7l-2 1h-8q-4 0-7-2l-1-8-3 1h-3q-2-1-2-6v-3h-3q-5 1-6-2l1-6h-3l-6-2-1-6h-3q-3 0-5-4v-6l-3 1h-3q-3-4-3-10v-7l-8-1 1-8h-9l-1-7v-2l1-8h-7q-2-3-2-8v-18l-2 1-6-2-1-9v-23h-2q-3 1-5-2V186l1-3h7v-32q3-4 8-3v-19q0-4 3-6h6l-1-2q-1-8 3-14h7v-7q3-2 7-2v-9c1-6 1-6 3-8h6v-3l1-5 7-1 1-3q1-5 3-5l6-1v-3q-1-3 2-5h6v-3q-1-3 2-5l6-1v-2l2-5 7-2 1-6 6-2 2 1v-3q-1-4 2-6l7-1h7v-3l2-4h16V5h34l-1-4zM1620 0h1065v5h23l3 1v6l15 1 2 6-1 2h7q3 3 3 8h3l5 3v7h3l5 1v7h3l5 1v7h3q4 0 6 2l1 6 3 1 5 2v15l8 2v24h7q3 4 2 10v395h-130V169l-7-2q-2-4-2-9v-6l-3-1-5-2v-15l-11 1-2-1-4-2v-7l-3 1h-17l-5-1v-8h-900v7c-4 4-14 2-19 2h-18l-5-1v3q1 5-2 6l-15 1h-4l-5-1v7q-3 3-7 2l-1 3-2 5h-7l1 3-2 5h-8v8l-4 1h-3v9c-1 6-1 6-3 8h-6v21l-1 3-7 1v83l7 1 1 3v22h3l5 1 1 15h3l4 2v7h7q3 4 2 9l9 2v6h3q3-1 5 2l1 6h11q3 0 5 2l1 6h4l12 2 1 7h714l8 2 1 5-1 2h18l8 2-1 6 9 1 1 9 7-1 1 9v3l1 6v7h3l4 2v33l-6 2-2-1v22l-2 4-7 1v3l-1 4h-8v5h-784v-5h-41c-2-5-2-5-1-8h-16q-2-3-2-7h-7l-4-1q-3 0-5-2v-7l-2 1h-4l-3-6v-3h-10q-3 0-7-2v-7h-3l-5-1-1-7h-3q-3 1-5-2l1-6-8-1q-2-5-2-11v-6h-3q-3 1-5-2v-6h-3q-3 1-5-2l-1-6-3-1q-5-1-5-3-2-8 0-14h-7q-2-5-2-10v-7l-2 1-4-1q-4-3-3-7v-18h-2q-3 1-5-2v-41h-7q-2-3-2-8V193q4-2 9-2v-41l5-1h3v-21l1-4 7-1v-10l2-6h7l-1-2q-1-7 2-15l8-1v-3l1-5h7V66q3-4 8-3v-3l3-5 6-1v-3l2-4h7v-7l6-2 2 1v-3q0-5 2-6l10-1h6l-1-2 1-4q4-3 9-2h7v-3q0-3 2-5h15l-1-3 3-5 7-1h25zM4137 0h130v392q1 3-2 5l-6 1v20l-1 4-7 2v2q1 7-2 13l-7 1v4c0 10 0 10-3 13h-6v3q1 3-2 5l-6 1v3l-2 4h-7v3l-2 6h-7v3q1 4-2 6h-6v3q1 3-2 5h-24v3l-1 5h-24l1 2v2q-3 2-6 1H3057v-5h-24l-2-6 1-2h-16l-1-5v-3h-9c-6 0-6 0-8-2l-1-7-3 1-5-3v-7l-2 1-6-2v-7h-7l-2-6 1-2h-3q-4 1-6-2v-6h-3l-4-1q-2-5-2-10v-7h-3q-3 1-5-2v-6h-3q-3 1-5-2l-1-7v-16h-3q-5-1-5-3l-1-7v-17l-2 1-6-2v-77c0-6 0-6 2-8h6v-27q-1-4 2-7l7-1v-11q-1-3 2-5l6-1v-7l1-4 1-5h7v-15q3-4 8-3l1-3 1-4 8-1v-3l1-5h7v-3q-1-4 2-6l6 1v-3q0-4 2-6l6-2v-2l3-5h15v-3q-1-3 2-5h15l-1-2 1-4 3-3h21l1-3q1-5 3-5l14-1h638v-2l2-6h148q3 0 5 2l1 6h13c7 0 7 0 11 2l2 7 7 1v8h7q3 5 2 12v66l-1 8-8 1v7q-3 3-7 2l-1 3-1 4-7 1h-211l-230 1h-333v3l-2 4h-24v7l-6 3q-4 3-4 7l-7 1v3q1 3-2 5h-7v3l-1 5h-7l1 49 6 1 1 5v3h8l1 6v3l-1 7h11q4-1 7 3v6l3-1 12 1q3 2 2 6v3l3-1h993l5 1v-3q-1-4 2-6l6-1v-3q0-3 4-5h6l-1-2 2-6h7v-3l2-14h5zM0 0h126l1 8v144l-1 5h932l106-1 7 1h4q3 0 5 2l2 6h52l5 2v7h9l8 1q2 4 1 8h2q7-2 14 1l1 7h11l5 1q2 4 1 8l3-1 5 3v7h8v16h7l4 8h2l5 3v23h3q3 0 5 2v24h7q3 7 2 14v137l-1 32v16q1 6-2 7h-5v7l-1 3-1 6h-16l1 3-1 2h-79v-4h-7l-3-1-6-1-1-8v-7h-6q-2-4-2-10V338h-3q-3 1-5-2l-1-9v-6h-3l-5-2v-16h-16l-2-6 1-2h-16l-1-1v-7H126l1 2v188c0 11 0 11-3 14h-7v15l-4 1h-12v5H22l-1-3 1-2h-3q-5 1-6-2v-5h-3l-5-2v-7H0zM6537 0h606v5l8 1 1 16v82l-3 4-8 1h-6v3l-1 4q-5 2-10 1h-509v3l-1 5q-13 2-24 0v3q1 5-2 6l-6 1h-4l-5-1v3l-1 5-7 2v8q0 6-2 7l-7 1v210c0 7 0 7-2 10h-7v32q-3 3-8 2v15q-2 3-5 2h-3v2q1 8-2 15l-7 1v7l-1 3-1 6h-7v7l-6 2-2-1v3q1 5-2 6l-9 2h-6v5q-4 3-9 2v3q1 3-2 5h-15l1 3-2 5h-33l1 3-1 2h-589v-5h-8v-8h-7l-3-10v-6l-3-1-4-1-1-7v-48l2-5 7-1v-10q-1-3 2-5 2-2 6-2l1-3 2-5h32v-7q6-3 12-2h498l8 1v-3q0-3 2-5l7-2h8l2-7 7-1v-11q0-3 2-5h6V167l1-8q4-4 8-3v-44l1-5h8V84l1-3h7V66l8-4v-2l3-5 6-1v-9l1-6h8v-8q8-3 15-2l1-3 3-5h6v-3q-1-3 2-5h15v-3q-1-3 2-5h24z`})))))}function dA(e){let t=window.vendorPrefix;return t===`PT`?B.createElement(sA,{themeType:e.themeType}):t===`MV`?B.createElement(eA,{themeType:e.themeType}):t===`NW`?B.createElement(tA,{themeType:`dark`}):t===`HA`?B.createElement(uA,{themeType:`dark`}):t&&t!==`@@vendorPrefix@@`?B.createElement(rA,{themeType:e.themeType}):B.createElement(aA,{themeType:e.themeType})}var fA=class e extends B.Component{onHashChangedBound;constructor(e){super(e),this.onHashChangedBound=this.onHashChanged.bind(this)}componentDidMount(){window.addEventListener(`hashchange`,this.onHashChangedBound)}componentWillUnmount(){window.removeEventListener(`hashchange`,this.onHashChangedBound)}onHashChanged(){}static getLocation(){let e=window.location.hash;e=e.replace(/^#/,``);let t=e.split(`/`).map(e=>{try{return e?decodeURIComponent(e):``}catch{return console.error(`Router: Cannot decode ${e}`),e}});return{tab:t[0]||``,dialog:t[1]||``,id:t[2]||``,arg:t[3]||``}}static doNavigate(t,n,r,i){let a=``,o=e.getLocation();i!==void 0&&!r&&(r=o.id),r&&!n&&(n=o.dialog),(n&&!t||t===null)&&(t=o.tab),t&&(a=`#${t}`,n&&(a+=`/${n}`,r&&(a+=`/${r}`,i!==void 0&&(a+=`/${i}`)))),window.location.hash!==a&&(window.location.hash=a)}};function pA(){let e=document.getSelection();if(!e?.rangeCount)return()=>{};let t=document.activeElement,n=[];for(let t=0;t<e.rangeCount;t++)n.push(e.getRangeAt(t));switch(t?.tagName.toUpperCase()){case`INPUT`:case`TEXTAREA`:t.blur();break;default:t=null;break}return e.removeAllRanges(),()=>{e.type===`Caret`&&e.removeAllRanges(),e.rangeCount||n.forEach(t=>e.addRange(t)),t&&t.focus()}}var mA={"text/plain":`Text`,"text/html":`Url`,default:`Text`},hA=`Copy to clipboard: #{key}, Enter`;function gA(e){let t=`${/mac os x/i.test(navigator.userAgent)?`⌘`:`Ctrl`}+C`;return e.replace(/#{\s*key\s*}/g,t)}function _A(e,t){let n,r,i,a,o=!1;t||={};let s=t.debug||!1;try{if(n=pA(),r=document.createRange(),i=document.getSelection(),a=document.createElement(`span`),a.textContent=e,a.ariaHidden=`true`,a.style.all=`unset`,a.style.position=`fixed`,a.style.top=`0px`,a.style.clip=`rect(0, 0, 0, 0)`,a.style.whiteSpace=`pre`,a.style.userSelect=`text`,a.addEventListener(`copy`,n=>{if(n.stopPropagation(),t?.format)if(n.preventDefault(),n.clipboardData===void 0){s&&console.warn(`unable to use e.clipboardData`),s&&console.warn(`trying IE specific stuff`),window.clipboardData?.clearData();let n=mA[t.format]||mA.default;window.clipboardData?.setData(n,e)}else n.clipboardData?.clearData(),n.clipboardData?.setData(t.format,e)}),document.body.appendChild(a),r.selectNodeContents(a),i?.addRange(r),!document.execCommand(`copy`))throw Error(`copy command was unsuccessful`);o=!0}catch(n){s&&console.error(`unable to copy using execCommand: `,n),s&&console.warn(`trying IE specific stuff`);try{window.clipboardData.setData(t.format||`text`,e),o=!0}catch(n){s&&console.error(`unable to copy using clipboardData: `,n),s&&console.error(`falling back to prompt`);let r=gA(`message`in t?t.message||``:hA);window.prompt(r,e)}}finally{i&&(r&&typeof i.removeRange==`function`?i.removeRange(r):i.removeAllRanges()),a&&document.body.removeChild(a),n&&n()}return o}var vA=class e{static translations={};static unknownTranslations=[];static lang=window.sysLang||`en`;static _disableWarning=!1;static setLanguage(t){t&&(e.lang=t)}static extendTranslations(t,n){if(t.prefix){let e=t;if(typeof e.prefix==`string`){let n=e.prefix;delete e.prefix,Object.keys(e).forEach(r=>{let i=r,a={},o=e[i];Object.keys(o).forEach(e=>{e&&o&&(e.startsWith(n)?a[e]=o[e]:a[`${n}${e}`]=o[e])}),t[i]=a})}else console.warn(`Found prefix in translations, but it is not a string`)}try{if(!n)t.en&&t.de&&t.ru?Object.keys(t).forEach(n=>{let r=n;e.translations[r]||={},Object.assign(e.translations[r],t[r])}):Object.keys(t).forEach(n=>{let r=t[n];Object.keys(r).forEach(t=>{let i=t,a=e.translations[i];a?a[n]?a[n]!==r[i]&&console.warn(`Translation for word "${n}" in "${i}" was ignored: existing = "${a[n]}", new = ${r[i]}`):a[n]=r[i]:console.warn(`Used unknown language: ${i}`)})});else{e.translations[n]||console.warn(`Used unknown language: ${n}`),e.translations[n]||={};let r=e.translations[n];Object.keys(t).forEach(e=>{r[e]?r[e]!==t[e]&&console.warn(`Translation for word "${e}" in "${n}" was ignored: existing = "${r[e]}", new = ${t[e]}`):r[e]=t[e]})}}catch(e){console.error(`Cannot apply translations: ${e}`)}}static setTranslations(t){t&&(e.translations=t)}static getLanguage(){return e.lang}static t(t,...n){let r=e.translations[e.lang];if(r){let n=r[t];if(n)t=n;else if(e.unknownTranslations.includes(t)||(e.unknownTranslations.push(t),!e._disableWarning&&console.log(`Translate: ${t}`)),e.lang!==`en`&&e.translations.en){let n=e.translations.en[t];n&&(t=n)}}for(let e of n)t=t.replace(`%s`,e);return t}static i18nShow(t){let n={};t?typeof t==`string`?(e.unknownTranslations.forEach(e=>{e.startsWith(t)&&(n[e]=e.replace(t,``))}),console.log(JSON.stringify(n,null,2))):t&&typeof t==`object`&&(e.unknownTranslations.forEach(e=>{t.test(e)&&(n[e]=e)}),console.log(JSON.stringify(n,null,2))):(e.unknownTranslations.forEach(e=>n[e]=e),console.log(JSON.stringify(n,null,2)))}static disableWarning(t){e._disableWarning=!!t}};window.i18nShow=vA.i18nShow,window.i18nDisableWarning=vA.disableWarning;var yA=`material`,bA=[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],xA=[`Jan`,`Feb`,`Mar`,`Apr`,`Mai`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],SA={0:`0x00 - good`,1:`0x01 - general problem`,2:`0x02 - no connection problem`,16:`0x10 - substitute value from controller`,32:`0x20 - substitute initial value`,64:`0x40 - substitute value from device or instance`,128:`0x80 - substitute value from sensor`,17:`0x11 - general problem by instance`,65:`0x41 - general problem by device`,129:`0x81 - general problem by sensor`,18:`0x12 - instance not connected`,66:`0x42 - device not connected`,130:`0x82 - sensor not connected`,68:`0x44 - device reports error`,132:`0x84 - sensor reports error`},CA={JVBERi0:`pdf`,R0lGODdh:`gif`,R0lGODlh:`gif`,iVBORw0KGgo:`png`,"/9j/":`jpg`,PHN2Zw:`svg`,Qk1:`bmp`,AAABAA:`ico`},wA=class e{static namespace=yA;static INSTANCES=`instances`;static dateFormat=[`DD`,`MM`];static FORBIDDEN_CHARS=/[^._\-/ :!#$%&()+=@^{}|~\p{Ll}\p{Lu}\p{Nd}]+/gu;static CapitalWords(e){return(e||``).split(/[\s_]/).filter(e=>e).map(e=>e?e[0].toUpperCase()+e.substring(1).toLowerCase():``).join(` `)}static formatSeconds(e){let t=Math.floor(e/(3600*24));e%=3600*24;let n=Math.floor(e/3600).toString().padStart(2,`0`);e%=3600;let r=Math.floor(e/60).toString().padStart(2,`0`);e%=60;let i=Math.floor(e).toString().padStart(2,`0`),a=``;return t&&(a+=`${t} ${vA.t(`ra_daysShortText`)} `),a+=`${n}:${r}:${i}`,a}static getObjectName(t,n,r,i,a){let o=t[n],s;if(typeof r==`string`&&!i&&(i={language:r},r=null),i||={},i.language||=t[`system.config`]&&t[`system.config`].common&&t[`system.config`].common.language||window.sysLang||`en`,r?.name){let e=r.name;s=typeof e==`object`?i.language&&e[i.language]||e.en:e}else if(a&&o?.common?.desc){let e=o.common.desc;s=typeof e==`object`?i.language&&e[i.language]||e.en||e.de||e.ru||``:e,s=(s||``).toString().replace(/[_.]/g,` `),s===s.toUpperCase()&&(s=s[0]+s.substring(1).toLowerCase())}else if(!a&&o?.common){let e=o.common.name||o.common.desc;s=e&&typeof e==`object`?i.language&&e[i.language]||e.en||e.de||e.ru||``:e,s=(s||``).toString().replace(/[_.]/g,` `),s===s.toUpperCase()&&(s=s[0]+s.substring(1).toLowerCase())}else{let t=n.lastIndexOf(`.`);s=n.substring(t+1).replace(/[_.]/g,` `),s=e.CapitalWords(s)}return s?.trim()||``}static getObjectNameFromObj(e,t,n,r,i){let a=e,o=e?._id||``;if(typeof t==`string`&&!n&&(n={language:t},t=null),n||={},t?.name){let e=t.name;o=typeof e==`object`?n.language&&e[n.language]||e.en:e}else if(r&&a?.common?.desc){let e=a.common.desc;o=typeof e==`object`?n.language&&e[n.language]||e.en:e,o=(o||``).toString().replace(/[_.]/g,` `),o===o.toUpperCase()&&(o=o[0]+o.substring(1).toLowerCase())}else if(!r&&a?.common?.name){let e=a.common.name;!e&&a.common.desc&&(e=a.common.desc),o=typeof e==`object`?n.language&&e[n.language]||e.en:e,o=(o||``).toString().replace(/[_.]/g,` `),o===o.toUpperCase()&&(o=o[0]+o.substring(1).toLowerCase())}return i?o:o.trim()}static getSettingsOrder(e,t,n){let r;r=e&&Object.prototype.hasOwnProperty.call(e,`common`)?e.common:e;let i;if(r?.custom){i=r.custom[yA];let e=n.user||`admin`;if(i&&i[e]){if(t){if(i[e].subOrder&&i[e].subOrder[t])return JSON.parse(JSON.stringify(i[e].subOrder[t]))}else if(i[e].order)return JSON.parse(JSON.stringify(i[e].order))}}return null}static getSettingsCustomURLs(e,t,n){let r;r=e&&Object.prototype.hasOwnProperty.call(e,`common`)?e.common:e;let i;if(r?.custom){i=r.custom[yA];let e=n.user||`admin`;if(i&&i[e]){if(t){if(i[e].subURLs&&i[e].subURLs[t])return JSON.parse(JSON.stringify(i[e].subURLs[t]))}else if(i[e].URLs)return JSON.parse(JSON.stringify(i[e].URLs))}}return null}static reorder(e,t,n){let r=Array.from(e),[i]=r.splice(t,1);return r.splice(n,0,i),r}static getSettings(t,n,r){let i,a=t?._id||n?.id,o;if(o=t&&Object.prototype.hasOwnProperty.call(t,`common`)?t.common:t,o?.custom?(i=o.custom,i=i[yA]&&i[yA][n.user||`admin`]?JSON.parse(JSON.stringify(i[yA][n.user||`admin`])):{enabled:!0}):i={enabled:r===void 0?!0:r,useCustom:!1},Object.prototype.hasOwnProperty.call(i,`enabled`)||(i.enabled=r===void 0?!0:r),n&&(!i.name&&n.name&&(i.name=n.name),!i.icon&&n.icon&&(i.icon=n.icon),!i.color&&n.color&&(i.color=n.color)),o&&(!i.color&&o.color&&(i.color=o.color),!i.icon&&o.icon&&(i.icon=o.icon),!i.name&&o.name&&(i.name=o.name)),typeof i.name==`object`&&(i.name=n.language&&i.name[n.language]||i.name.en,i.name=(i.name||``).toString().replace(/_/g,` `),i.name===i.name.toUpperCase()&&(i.name=i.name[0]+i.name.substring(1).toLowerCase())),!i.name&&a){let t=a.lastIndexOf(`.`);i.name=a.substring(t+1).replace(/[_.]/g,` `),i.name=(i.name||``).toString().replace(/_/g,` `),i.name=e.CapitalWords(i.name)}return i}static setSettings(e,t,n){if(e){e.common=e.common||{},e.common.custom=e.common.custom||{},e.common.custom[yA]=e.common.custom[yA]||{},e.common.custom[yA][n.user||`admin`]=t;let r=e.common.custom[yA][n.user||`admin`];return r.useCommon&&(r.color!==void 0&&(e.common.color=r.color,delete r.color),r.icon!==void 0&&(e.common.icon=r.icon,delete r.icon),r.name!==void 0&&(typeof e.common.name!=`object`&&n.language?e.common.name={[n.language]:r.name}:typeof e.common.name==`object`&&n.language&&(e.common.name[n.language]=r.name),delete r.name)),!0}return!1}static getIcon(e,t){return e?.icon?e.icon.length<=2?B.createElement(`span`,{style:t||{}},e.icon):e.icon.startsWith(`data:image`)?B.createElement(`img`,{alt:e.name,src:e.icon,style:t||{}}):B.createElement(`img`,{alt:e.name,src:(e.prefix||``)+e.icon,style:t}):null}static getObjectIcon(e,t){if(typeof e==`object`&&(t=e,e=t?._id),t?.common?.icon){let n=t.common.icon;if(typeof n==`string`&&n.length<=2||n.startsWith(`data:image`))return n;let r=e.split(`.`);return n=r[0]===`system`?`adapter/${r[2]}${n.startsWith(`/`)?``:`/`}${n}`:`adapter/${r[0]}${n.startsWith(`/`)?``:`/`}${n}`,window.location.pathname.match(/adapter\/[^/]+\/[^/]+\.html/)||window.location.pathname.match(/material\/[.\d]+/)?n=`../../${n}`:window.location.pathname.match(/material\//)&&(n=`../${n}`),n}return null}static splitCamelCase(t){return t?e.CapitalWords(t):``}static isUseBright(e,t){if(!e)return t===void 0?!0:t;e=e.toString(),e.startsWith(`#`)&&(e=e.slice(1));let n,r,i,a=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(a&&a.length===4)n=parseInt(a[1],10),r=parseInt(a[2],10),i=parseInt(a[3],10);else{if(e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),e.length===8)e=e.substring(0,6);else if(e.length!==6)return!1;n=parseInt(e.slice(0,2),16),r=parseInt(e.slice(2,4),16),i=parseInt(e.slice(4,6),16)}return n*.299+r*.587+i*.114<=186}static getTimeString(e){if(e=parseFloat(e),Number.isNaN(e))return`--:--`;let t=Math.floor(e/3600),n=Math.floor(e%3600/60).toString().padStart(2,`0`),r=(e%60).toString().padStart(2,`0`);return t?`${t}:${n}:${r}`:`${n}:${r}`}static getWindDirection(e){return e>=0&&e<11.25?`N`:e>=11.25&&e<33.75?`NNE`:e>=33.75&&e<56.25?`NE`:e>=56.25&&e<78.75?`ENE`:e>=78.75&&e<101.25?`E`:e>=101.25&&e<123.75?`ESE`:e>=123.75&&e<146.25?`SE`:e>=146.25&&e<168.75?`SSE`:e>=168.75&&e<191.25?`S`:e>=191.25&&e<213.75?`SSW`:e>=213.75&&e<236.25?`SW`:e>=236.25&&e<258.75?`WSW`:e>=258.75&&e<281.25?`W`:e>=281.25&&e<303.75?`WNW`:e>=303.75&&e<326.25?`NW`:e>=326.25&&e<348.75?`NNW`:`N`}static padding(e){return typeof e==`string`?e.length<2?`0${e}`:e:e<10?`0${e}`:e.toString()}static setDataFormat(t){t&&(e.dateFormat=t.toUpperCase().split(/[.-/]/),e.dateFormat.splice(e.dateFormat.indexOf(`YYYY`),1))}static date2string(t){if(typeof t==`string`){if(t=t.trim(),!t)return``;if(t.match(/^[\w\s]+$/))return t;let n=t.match(/(\d{1,4})[-./](\d{1,2})[-./](\d{1,4})/);if(n){let r=[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10)],i=r.find(e=>e>31);if(i!==void 0){r.splice(r.indexOf(i),1);let n=r.find(e=>e>12);n?(r.splice(r.indexOf(n),1),t=new Date(i,r[0]-1,n)):e.dateFormat[0][0]===`M`&&e.dateFormat[1][0]===`D`?(t=new Date(i,r[0]-1,r[1]),Math.abs(t.getTime()-Date.now())>36e5*24*10&&(t=new Date(i,r[1]-1,r[0]))):e.dateFormat[0][0]===`D`&&e.dateFormat[1][0]===`M`?(t=new Date(i,r[1]-1,r[0]),Math.abs(t.getTime()-Date.now())>36e5*24*10&&(t=new Date(i,r[0]-1,r[1]))):t=new Date(t)}else t=new Date(t)}else t=new Date(t)}else t=new Date(t);let n=vA.t(`ra_dow_${bA[t.getDay()]}`).replace(`ra_dow_`,``);return n+=`. ${t.getDate()} ${vA.t(`ra_month_${xA[t.getMonth()]}`).replace(`ra_month_`,``)}`,n}static renderTextWithA(e){let t=e.match(/<a [^<]+<\/a>|<br\s?\/?>|<b>[^<]+<\/b>|<i>[^<]+<\/i>/);if(t){let n=[],r=1;do{let i=e.substring(0,t.index);if(e=e.substring((t.index||0)+t[0].length),i&&n.push(B.createElement(`span`,{key:`a${r++}`},i)),t[0].startsWith(`<b>`))n.push(B.createElement(`b`,{key:`a${r++}`},t[0].substring(3,t[0].length-4)));else if(t[0].startsWith(`<i>`))n.push(B.createElement(`i`,{key:`a${r++}`},t[0].substring(3,t[0].length-4)));else if(t[0].startsWith(`<br`))n.push(B.createElement(`br`,{key:`a${r++}`}));else{let e=t[0].match(/href="([^"]+)"/)||t[0].match(/href='([^']+)'/),i=t[0].match(/target="([^"]+)"/)||t[0].match(/target='([^']+)'/),a=t[0].match(/rel="([^"]+)"/)||t[0].match(/rel='([^']+)'/),o=t[0].match(/>([^<]*)</);n.push(B.createElement(`a`,{key:`a${r++}`,href:e?e[1]:``,target:i?i[1]:`_blank`,rel:a?a[1]:`noreferrer`,style:{color:`inherit`}},o?o[1]:``))}t=e?e.match(/<a [^<]+<\/a>|<br\s?\/?>|<b>[^<]+<\/b>|<i>[^<]+<\/i>/):null,!t&&e&&n.push(B.createElement(`span`,{key:`a${r++}`},e))}while(t);return n}return e}static getSmartName(e,t,n,r){if(!t){if(!r)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;let t=e;return t?.common?.custom&&t.common.custom[n]?t.common.custom[n].smartName:void 0}if(!r)return e[t].common.smartName;let i=e[t];return i?.common?.custom&&i.common.custom[n]&&i.common.custom[n].smartName||null}static getSmartNameFromObj(e,t,n){if(!n)return!e.common||e&&!e.common?e.smartName:e.common.smartName;if(e&&!e.common)return e.smartName;let r=e?.common?.custom?.[t];return r?r.smartName:void 0}static enableSmartName(e,t,n){let r=e;n?(r.common.custom||={},r.common.custom[t]||={},r.common.custom[t].smartName={}):r.common.smartName={}}static removeSmartName(e,t,n){let r=e;n?r?.common?.custom?.[t]&&(r.common.custom[t]=null):r.common.smartName=null}static updateSmartName(e,t,n,r,i,a){let o=vA.getLanguage(),s=e;if(typeof s.common.smartName==`string`){let e=s.common.smartName;s.common.smartName={},s.common.smartName[o]=e}if(s.native?.byON){delete s.native.byON;let e=s.common.smartName;e&&typeof e!=`object`&&(e={en:e,[o]:e}),s.common.smartName=e}if(r!==void 0&&(a?(s.common.custom||={},s.common.custom[i]||={},s.common.custom[i].smartName||={},r?s.common.custom[i].smartName.smartType=r:delete s.common.custom[i].smartName.smartType):(s.common.smartName||={},r?s.common.smartName.smartType=r:delete s.common.smartName.smartType)),n!==void 0&&(a?(s.common.custom||={},s.common.custom[i]||={},s.common.custom[i].smartName||={},s.common.custom[i].smartName.byON=n):(s.common.smartName||={},s.common.smartName.byON=n)),t!==void 0){let e;if(a?(s.common.custom||={},s.common.custom[i]||={},s.common.custom[i].smartName||={},e=s.common.custom[i].smartName):(s.common.smartName||={},e=s.common.smartName),e[o]=t,e&&(!e[o]||e[o]===s.common.name&&!s.common.role)){delete e[o];let t=!0;for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){t=!1;break}if(t)if(a&&s.common.custom?.[i])s.common.custom[i].smartName.byON===void 0?delete s.common.custom[i]:(delete s.common.custom[i].en,delete s.common.custom[i].de,delete s.common.custom[i].ru,delete s.common.custom[i].nl,delete s.common.custom[i].pl,delete s.common.custom[i].it,delete s.common.custom[i].fr,delete s.common.custom[i].pt,delete s.common.custom[i].es,delete s.common.custom[i].uk,delete s.common.custom[i][`zh-cn`]);else if(s.common.smartName&&s.common.smartName.byON!==void 0){let e=s.common.smartName;delete e.en,delete e.de,delete e.ru,delete e.nl,delete e.pl,delete e.it,delete e.fr,delete e.pt,delete e.es,delete e.uk,delete e[`zh-cn`]}else s.common.smartName=null}}}static updateSmartNameEx(e,t){let n=vA.getLanguage(),r=e;if(typeof r.common.smartName==`string`){let e=r.common.smartName;r.common.smartName={},r.common.smartName[n]=e}if(r.native?.byON){delete r.native.byON;let e=r.common.smartName;e&&typeof e!=`object`&&(e={en:e,[n]:e}),r.common.smartName=e}if(t.smartType!==void 0&&(t.noCommon?(r.common.custom||={},r.common.custom[t.instanceId]||={},r.common.custom[t.instanceId].smartName||={},t.smartType?r.common.custom[t.instanceId].smartName.smartType=t.smartType:delete r.common.custom[t.instanceId].smartName.smartType):(r.common.smartName||={},t.smartType?r.common.smartName.smartType=t.smartType:delete r.common.smartName.smartType)),t.byON!==void 0&&(t.noCommon?(r.common.custom||={},r.common.custom[t.instanceId]||={},r.common.custom[t.instanceId].smartName||={},r.common.custom[t.instanceId].smartName.byON=t.byON):(r.common.smartName||={},r.common.smartName.byON=t.byON)),t.noAutoDetect!==void 0&&(t.noCommon?t.noAutoDetect?(r.common.custom||={},r.common.custom[t.instanceId]||={},r.common.custom[t.instanceId].smartName||={},r.common.custom[t.instanceId].smartName.noAutoDetect=t.noAutoDetect):r.common.custom?.[t.instanceId]?.smartName&&delete r.common.custom[t.instanceId].smartName.noAutoDetect:!t.noAutoDetect&&r.common.smartName?delete r.common.smartName.noAutoDetect:(r.common.smartName||={},r.common.smartName.noAutoDetect=t.noAutoDetect)),t.smartName!==void 0){let e;if(t.noCommon?(r.common.custom||={},r.common.custom[t.instanceId]||={},r.common.custom[t.instanceId].smartName||={},e=r.common.custom[t.instanceId].smartName):(r.common.smartName||={},e=r.common.smartName),e[n]=t.smartName,e&&(!e[n]||e[n]===r.common.name&&!r.common.role)){delete e[n];let i=!0;for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){i=!1;break}if(i)if(t.noCommon&&r.common.custom?.[t.instanceId])r.common.custom[t.instanceId].smartName.byON===void 0?delete r.common.custom[t.instanceId]:(delete r.common.custom[t.instanceId].en,delete r.common.custom[t.instanceId].de,delete r.common.custom[t.instanceId].ru,delete r.common.custom[t.instanceId].nl,delete r.common.custom[t.instanceId].pl,delete r.common.custom[t.instanceId].it,delete r.common.custom[t.instanceId].fr,delete r.common.custom[t.instanceId].pt,delete r.common.custom[t.instanceId].es,delete r.common.custom[t.instanceId].uk,delete r.common.custom[t.instanceId][`zh-cn`]);else if(r.common.smartName&&r.common.smartName.byON!==void 0){let e=r.common.smartName;delete e.en,delete e.de,delete e.ru,delete e.nl,delete e.pl,delete e.it,delete e.fr,delete e.pt,delete e.es,delete e.uk,delete e[`zh-cn`]}else r.common.smartName=null}}}static disableSmartName(e,t,n){let r=e;n?(r.common.custom||={},r.common.custom[t]||={},r.common.custom[t].smartName=!1):r.common.smartName=!1}static copyToClipboard(e,t){return t&&(t.stopPropagation(),t.preventDefault()),_A(e)}static getFileExtension(e){let t=(e||``).lastIndexOf(`.`);return t===-1?null:e.substring(t+1).toLowerCase()}static formatBytes(e){if(Math.abs(e)<1024)return`${e} B`;let t=[`KB`,`MB`,`GB`],n=-1;do e/=1024,++n;while(Math.abs(e)>=1024&&n<t.length-1);return`${e.toFixed(1)} ${t[n]}`}static getInvertedColor(t,n,r){if(!t)return;let i=e.invertColor(t,!0);if(i===`#FFFFFF`&&(n===`dark`||r&&n===`light`))return`#DDD`;if(i===`#000000`&&(n===`light`||r&&n===`dark`))return`#222`}static invertColor(e,t){if(!e||typeof e!=`string`)return``;if(e.startsWith(`rgba`)){let t=e.match(/rgba?\((\d+),\s*(\d+),\s*(\d+),\s*([.\d]+)\)/);t&&(e=parseInt(t[1],10).toString(16).padStart(2,`0`)+parseInt(t[2],10).toString(16).padStart(2,`0`)+parseInt(t[2],10).toString(16).padStart(2,`0`))}else if(e.startsWith(`rgb`)){let t=e.match(/rgb?\((\d+),\s*(\d+),\s*(\d+)\)/);t&&(e=parseInt(t[1],10).toString(16).padStart(2,`0`)+parseInt(t[2],10).toString(16).padStart(2,`0`)+parseInt(t[2],10).toString(16).padStart(2,`0`))}else e.startsWith(`#`)&&(e=e.slice(1));e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);let n=null;if(e.length===8)n=e.substring(6,8),e=e.substring(0,6);else if(e.length!==6)return console.warn(`Cannot invert color: ${e}`),e;let r=parseInt(e.slice(0,2),16),i=parseInt(e.slice(2,4),16),a=parseInt(e.slice(4,6),16);if(t)return r*.299+i*.587+a*.114>186?`#000000${n||``}`:`#FFFFFF${n||``}`;let o=(255-r).toString(16),s=(255-i).toString(16),c=(255-a).toString(16);return`#${o.padStart(2,`0`)}${s.padStart(2,`0`)}${c.padStart(2,`0`)}${n||``}`}static color2rgb(e){if(e==null||e===``||typeof e!=`string`)return!1;if(e.startsWith(`rgba`)){let t=e.match(/rgba?\((\d+),\s*(\d+),\s*(\d+),\s*([.\d]+)\)/);t&&(e=parseInt(t[1],10).toString(16).padStart(2,`0`)+parseInt(t[2],10).toString(16).padStart(2,`0`)+parseInt(t[2],10).toString(16).padStart(2,`0`))}else if(e.startsWith(`rgb`)){let t=e.match(/rgb?\((\d+),\s*(\d+),\s*(\d+)\)/);t&&(e=parseInt(t[1],10).toString(16).padStart(2,`0`)+parseInt(t[2],10).toString(16).padStart(2,`0`)+parseInt(t[2],10).toString(16).padStart(2,`0`))}else e.startsWith(`#`)&&(e=e.slice(1));return e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),e.length!==6&&e.length!==8?(console.warn(`Cannot invert color: ${e}`),!1):[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16)]}static rgb2lab(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;let i=(t*.4124+n*.3576+r*.1805)/.95047,a=t*.2126+n*.7152+r*.0722,o=(t*.0193+n*.1192+r*.9505)/1.08883;return i=i>.008856?i**.33333333:7.787*i+.137931,a=a>.008856?a**.33333333:7.787*a+.137931,o=o>.008856?o**.33333333:7.787*o+.137931,[116*a-16,500*(i-a),200*(a-o)]}static colorDistance(t,n){let r=e.color2rgb(t),i=e.color2rgb(n);if(!r||!i)return 0;let a=e.rgb2lab(r),o=e.rgb2lab(i),s=a[0]-o[0],c=a[1]-o[1],l=a[2]-o[2],u=Math.sqrt(a[1]*a[1]+a[2]*a[2]),d=u-Math.sqrt(o[1]*o[1]+o[2]*o[2]),f=c*c+l*l-d*d;f=f<0?0:Math.sqrt(f);let p=1+.045*u,m=1+.015*u,h=s,g=d/p,_=f/m,v=h*h+g*g+_*_;return v<0?0:v}static _toVal(t){let n,r=``;if(typeof t==`string`||typeof t==`number`)r+=t;else if(typeof t==`object`)if(Array.isArray(t))for(let i=0;i<t.length;i++)t[i]&&(n=e._toVal(t[i]),n&&(r&&(r+=` `),r+=n));else for(let e in t)t[e]&&(r&&(r+=` `),r+=e);return r}static clsx(...t){let n=0,r,i,a=``;for(;n<t.length;)r=t[n++],r&&(i=e._toVal(r),i&&(a&&(a+=` `),a+=i));return a}static getThemeName(e){return window.vendorPrefix&&window.vendorPrefix!==`@@vendorPrefix@@`&&window.vendorPrefix!==`MV`?window.vendorPrefix:e===`auto`?window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:(e||=(window._localStorage||window.localStorage).getItem(`App.themeName`),e&&e!==`auto`?e:window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`)}static getThemeType(t){return window.vendorPrefix===`HA`||window.vendorPrefix===`NW`?`dark`:window.vendorPrefix&&window.vendorPrefix!==`@@vendorPrefix@@`?`light`:(t||=e.getThemeName(),t===`dark`||t===`blue`?`dark`:`light`)}static setThemeName(e){let t=window.vendorPrefix;t&&t!==`@@vendorPrefix@@`&&t!==`MV`||((window._localStorage||window.localStorage).setItem(`App.themeName`,e),(window._localStorage||window.localStorage).setItem(`App.theme`,e===`dark`||e===`blue`?`dark`:`light`))}static toggleTheme(t){if(window.vendorPrefix&&window.vendorPrefix!==`@@vendorPrefix@@`&&window.vendorPrefix!==`MV`)return window.vendorPrefix;t=t||(window._localStorage||window.localStorage).getItem(`App.themeName`)||`light`;let n=e.getThemeNames(),r=t?n.indexOf(t):-1,i;return i=r===-1?n[0]:n[(r+1)%n.length],e.setThemeName(i),i}static getThemeNames(){return window.vendorPrefix&&window.vendorPrefix!==`@@vendorPrefix@@`&&window.vendorPrefix!==`MV`?[window.vendorPrefix]:[`light`,`dark`]}static parseQuery(e){e=(e||``).toString().replace(/^\?/,``);let t={};return e.split(`&`).forEach(e=>{if(e=e.trim(),e){let n=e.split(`=`),r=decodeURIComponent(n[0]).trim();if(n.length>1){let e=decodeURIComponent(n[1]);if(e===`true`)t[r]=!0;else if(e===`false`)t[r]=!1;else{let n=parseFloat(e);n.toString()===e?t[r]=n:t[r]=e}}else t[r]=!0}}),t}static getParentId(e){let t=(e||``).toString().split(`.`);return t.length>1?(t.pop(),t.join(`.`)):null}static formatDate(e,t){if(!e)return``;let n,r=(e.getMonth()+1).toString().padStart(2,`0`),i=e.getDate().toString().padStart(2,`0`);return n=t===`MM/DD/YYYY`?`${r}/${i}/${e.getFullYear()}`:`${e.getFullYear()}-${r}-${i}`,n+=` ${e.getHours().toString().padStart(2,`0`)}:${e.getMinutes().toString().padStart(2,`0`)}:${e.getSeconds().toString().padStart(2,`0`)}.${e.getMilliseconds().toString().padStart(3,`0`)}`,n}static formatTime(e){if(e){e=Math.round(e);let t=Math.floor(e/(3600*24)),n=Math.floor(e%(3600*24)/3600),r=Math.floor(e%3600/60),i=e%60;return t?`${t}.${n.toString().padStart(2,`0`)}:${r.toString().padStart(2,`0`)}:${i.toString().padStart(2,`0`)}`:n?`${n}:${r.toString().padStart(2,`0`)}:${i.toString().padStart(2,`0`)}`:`0:${r.toString().padStart(2,`0`)}:${i.toString().padStart(2,`0`)}`}return`0:00:00`}static MDtext2link(e){let t=e.match(/\d+\.\)\s/);return t&&(e=e.replace(t[0],t[0].replace(/\s/,` `))),e.replace(/[^a-zA-Zа-яА-Я0-9]/g,``).trim().replace(/\s/g,``).toLowerCase()}static openLink(e,t){e=e.replace(/\/\/([0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*)(:\d+)?\//i,`//[$1]$2/`),t===`this`?window.location.href=e:window.open(e,t||`_blank`)}static MDgetTitle(t){let n=e.MDextractHeader(t),r=n.header,i=n.body;if(!r.title){i=i.replace(/{[^}]*}/g,``),i=i.trim();let e=i.replace(/\r/g,``).split(`
|
|
569
|
+
`);for(let t=0;t<e.length;t++)if(e[t].startsWith(`# `))return e[t].substring(2).trim();return``}return r.title?.toString()||``}static MDextractHeader(e){let t={};if(e.substring(0,3)===`---`){let n=e.substring(3).indexOf(`
|
|
570
|
+
---`);n!==-1&&(e.substring(3,n+3).replace(/\r/g,``).split(`
|
|
571
|
+
`).forEach(e=>{if(!e.trim())return;let n=e.indexOf(`:`);if(n!==-1){let r=e.substring(0,n).trim(),i=e.substring(n+1).trim();i=i.replace(/^['"]|['"]$/g,``),i===`true`?t[r]=!0:i===`false`?t[r]=!1:parseFloat(i).toString()===t[r]?t[r]=parseFloat(i):t[r]=i}else t[e.trim()]=!0}),e=e.substring(n+7))}return{header:t,body:e}}static MDremoveDocsify(e){let t=e.match(/{docsify-[^}]*}/g);return t&&t.forEach(t=>e=e.replace(t,``)),e}static generateFile(e,t){let n=document.createElement(`a`);n.setAttribute(`href`,`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(t,null,2))}`),n.setAttribute(`download`,e),n.style.display=`none`,document.body.appendChild(n),n.click(),document.body.removeChild(n)}static quality2text(e){let t=e&4294901760,n=SA[e],r;return r=n?[n]:e&1?[SA[1],`0x${(e&65534).toString(16)}`]:e&2?[SA[2],`0x${(e&65533).toString(16)}`]:[`0x${e.toString(16)}`],t&&r.push(`0x${(t>>16).toString(16).toUpperCase()}`),r}static clone(e){return JSON.parse(JSON.stringify(e))}static getStates(e){let t=e?.common?.states,n;if(t)if(typeof t==`string`&&t[0]===`{`)try{n=JSON.parse(t)}catch{console.error(`Cannot parse states: ${t}`),n=null}else if(typeof t==`string`){let e=t.split(`;`);n={};for(let t=0;t<e.length;t++){let r=e[t].split(`:`);n[r[0]]=r[1]}}else Array.isArray(t)?(n={},e?.common.type===`number`?t.forEach((e,t)=>n[t]=e):e?.common.type===`string`?t.forEach(e=>n[e]=e):e?.common.type===`boolean`&&(n.false=t[0],n.true=t[1])):typeof t==`object`&&(n=t);return n||null}static async getSvg(e){let t=await(await fetch(e)).blob();return new Promise(e=>{let n=new FileReader;n.onload=()=>e(n.result?.toString()||``),n.readAsDataURL(t)})}static detectMimeType(e){let t=Object.keys(CA).find(t=>e.startsWith(t));return t?CA[t]:null}static isStableRepository(e){return!!(typeof e==`string`&&e.toLowerCase().startsWith(`stable`)||e&&typeof e!=`string`&&e.find(e=>e.toLowerCase().startsWith(`stable`)))}static isStringInteger(e){return typeof e==`number`?Math.round(e)===e:parseInt(e,10).toString()===e}static isValidDate(e){return e instanceof Date&&!isNaN(e)}static getStyle(e,...t){let n={};for(let r=0;r<t.length;r++)typeof t[r]==`function`?Object.assign(n,t[r](e)):t[r]&&typeof t[r]==`object`&&Object.keys(t[r]).forEach(i=>{if(typeof t[r][i]==`function`)n[i]=t[r][i](e);else if(typeof t[r][i]==`object`){let a=t[r][i];n[i]={},Object.keys(a).forEach(t=>{typeof a[t]==`function`?n[i][t]=a(e):(a[t]||a[t]===0)&&(n[i][t]=a[t])})}else (t[r][i]||t[r][i]===0)&&(n[i]=t[r][i])});return n}},TA={buttonIcon:{marginRight:8}},EA=class extends B.Component{isIFrame;constructor(e){super(e);let t=e.newReact===void 0?!0:e.newReact;if(e.isIFrame!==void 0)this.isIFrame=e.isIFrame;else try{this.isIFrame=!t&&window.self!==window.top}catch{this.isIFrame=!t}}render(){let e=this.props.noTextOnButtons,t={borderRadius:this.props.theme.saveToolbar.button.borderRadius||3,height:this.props.theme.saveToolbar.button.height||32},n={bottom:this.isIFrame?38:0,left:this.props.paddingLeft||0,right:0,position:`absolute`,background:this.props.theme.saveToolbar.background};return this.props.dense&&(n.minHeight=48),this.props.error&&(t.border=`1px solid red`),B.createElement(gO,{style:n},B.createElement(ZC,{variant:`extended`,"aria-label":`Save`,disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!1),style:t},B.createElement(Bk,{style:e?void 0:TA.buttonIcon}),!e&&vA.t(`ra_Save`)),B.createElement(ZC,{variant:`extended`,"aria-label":`Save and close`,disabled:!this.props.changed||this.props.error,onClick:()=>this.props.onSave(!0),style:{...t,marginLeft:10}},B.createElement(Bk,{style:e?void 0:TA.buttonIcon}),e?`+`:vA.t(`ra_Save and close`),e&&B.createElement(uk,null)),B.createElement(`div`,{style:{flexGrow:1}}),B.createElement(ZC,{variant:`extended`,"aria-label":`Close`,onClick:()=>this.props.onClose(),style:t},B.createElement(uk,{style:e?void 0:TA.buttonIcon}),!e&&vA.t(`ra_Close`)))}},DA={suppress:{fontSize:12},suppressRoot:{marginTop:`16px`}},OA=class extends B.Component{constructor(e){if(super(e),!this.props.dialogName&&this.props.suppressQuestionMinutes)throw Error(`dialogName required if suppressQuestionMinutes used`);let t=!1;this.props.suppressQuestionMinutes&&(t=parseInt((window._localStorage||window.localStorage).getItem(this.props.dialogName),10)||0,t?Date.now()>t&&((window._localStorage||window.localStorage).removeItem(this.props.dialogName),t=!1):t=!1),this.state={suppress:t}}handleOk(){this.state.suppress&&(window._localStorage||window.localStorage).setItem(this.props.dialogName,Date.now()+(this.props.suppressQuestionMinutes||2)*6e4),this.props.onClose&&this.props.onClose(!0)}handleCancel(){this.props.onClose&&this.props.onClose(!1)}render(){return typeof this.state.suppress==`number`?(setTimeout(()=>this.props.onClose&&this.props.onClose(!0),100),null):B.createElement(CC,{open:!0,maxWidth:`md`,fullWidth:this.props.fullWidth===void 0?!0:this.props.fullWidth,onClose:(e,t)=>{t!==`backdropClick`&&t!==`escapeKeyDown`&&this.handleCancel()},"aria-labelledby":`ar_confirmation_dialog_title`,"aria-describedby":`ar_confirmation_dialog_description`},B.createElement(BC,{id:`ar_confirmation_dialog_title`},this.props.title||vA.t(`ra_Are you sure?`)),B.createElement(NC,null,B.createElement(LC,{id:`ar_confirmation_dialog_description`},this.props.icon||null,this.props.text,this.props.suppressQuestionMinutes?B.createElement(`br`,null):null,this.props.suppressQuestionMinutes?B.createElement(dw,{sx:{"& .FormControlLabel-label":DA.suppress,"&.FormControlLabel-root":DA.suppressRoot},control:B.createElement(zS,{id:`ar_dialog_confirm_suppress_${this.props.dialogName||``}`,checked:!!this.state.suppress,onChange:()=>this.setState({suppress:!this.state.suppress})}),label:this.props.suppressText||vA.t(`ra_Suppress question for next %s minutes`,(this.props.suppressQuestionMinutes||2).toString())}):null)),B.createElement(DC,null,B.createElement(CS,{id:`ar_dialog_confirm_ok_${this.props.dialogName||``}`,variant:`contained`,onClick:()=>this.handleOk(),color:`primary`,autoFocus:!0,startIcon:B.createElement(lk,null)},this.props.ok||vA.t(`ra_Ok`)),B.createElement(CS,{id:`ar_dialog_confirm_cancel_${this.props.dialogName||``}`,variant:`contained`,onClick:()=>this.handleCancel(),color:`grey`,startIcon:B.createElement(uk,null)},this.props.cancel||vA.t(`ra_Cancel`))))}},kA=class extends B.Component{handleOk(){this.props.onClose&&this.props.onClose()}render(){return B.createElement(CC,{open:!0,maxWidth:`sm`,fullWidth:this.props.fullWidth===void 0?!0:this.props.fullWidth,onClose:()=>this.handleOk(),"aria-labelledby":`alert-dialog-title`,"aria-describedby":`alert-dialog-description`},B.createElement(BC,{id:`ar_alert_dialog_title`},this.props.title||vA.t(`ra_Error`)),B.createElement(NC,null,B.createElement(LC,{id:`ar_alert_dialog_description`},this.props.text||vA.t(`ra_Unknown error!`))),B.createElement(DC,null,B.createElement(CS,{id:`ar_dialog_error_ok`,variant:`contained`,onClick:()=>this.handleOk(),color:`primary`,autoFocus:!0,startIcon:B.createElement(lk,null)},vA.t(`ra_Ok`))))}},AA={en:{"ra_%s links from aliases":`%s links from aliases`,"ra_%s object(s) processed":`%s object(s) processed`,"ra_%s was imported":`%s was imported`,"ra_Accept license":`Accept license`,ra_Actions:`Actions`,"ra_Add new child object to selected parent":`Add new child object to selected parent`,"ra_Add objects tree from JSON file":`Add objects tree from JSON file`,"ra_Add row":`Add row`,"ra_Advanced options":`Advanced options`,"ra_All items are filtered out":`All items are filtered out`,"ra_All objects":`All objects`,ra_Append:`Append`,"ra_Append %s entries or replace existing?":`Append %s entries or replace existing?`,"ra_Append or replace?":`Append or replace?`,"ra_Are you sure?":`Are you sure?`,"ra_Auto (no custom columns)":`Auto (no custom columns)`,"ra_Back to %s":`Back to %s`,"ra_Background image":`Background image`,ra_Cancel:`Cancel`,"ra_Cannot add items with set filter":`Cannot add items with set filter`,"ra_Cannot decode license":`Cannot decode license`,"ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":`Cannot determine position: System settings are empty and GPS detection is disabled in browser`,'ra_Cannot find "%s"':`Cannot find "%s"`,'ra_Cannot read "%s"':`Cannot read "%s"`,"ra_Cannot read licenses: %s":`Cannot read licenses: %s`,"ra_Cannot retrieve options, as instance is offline":`Cannot retrieve options, as instance is offline`,"ra_Cannot update attribute, because not found in the object":`Cannot update attribute, because not found in the object`,"ra_Cannot upload":`Cannot upload`,ra_Categories:`Categories`,"ra_Chained certificate":`Chained certificate`,"ra_Change color theme":`Change color theme`,"ra_Changed from":`Changed from`,"ra_Channel → State":`Channel → State`,"ra_Check license":`Check license`,ra_Checked:`Checked`,ra_Clear:`Delete`,"ra_Clear filter":`Clear filter`,"ra_Clear icon":`Clear icon`,"ra_Click to see in full size":`Click to see in full size`,"ra_Click to show":`Click to show`,"ra_Clone current row":`Clone current row`,ra_Close:`Close`,"ra_Collapse all nodes":`Collapse all nodes`,"ra_Collapse one step node":`Collapse one level`,ra_Commercial:`Commercial`,ra_Configure:`Configure`,"ra_Configure visible columns":`Configure visible columns`,"ra_Confirm deletion of %s":`Confirm deletion of %s`,ra_Connected:`Connected`,ra_Continue:`Continue`,ra_Copied:`Copied`,"ra_Copied %s":`Copied "%s"`,"ra_Copy content":`Copy content`,ra_Create:`Create`,"ra_Create alias":`Create alias`,"ra_Create folder":`Create folder`,"ra_Create new folder in %s":`Create new folder in %s`,ra_Crop:`Crop`,"ra_Define CRON...":`Define CRON...`,"ra_Define functions":`Define functions`,"ra_Define rooms":`Define rooms`,"ra_Define schedule":`Define schedule`,"ra_Define schedule...":`Define schedule...`,ra_Del:`Delete`,ra_Delete:`Delete`,"ra_Delete current row":`Delete current row`,"ra_Deselect all":`Unselect all`,"ra_Device → Channel → State":`Device → Channel → State`,"ra_Disable/Enable translation":`Disable/Enable translation`,ra_Discard:`Discard`,ra_Disconnected:`Disconnected`,"ra_Do not ask for next 2 hours in this session":`Do not ask for next 2 hours in this session`,"ra_Do not export values of states":`Do not export values of states`,"ra_Do not use let's encrypt":`Do not use let's encrypt`,"ra_Docker is not available":`Docker is not available`,"ra_Docker is not installed or not running":`Docker is not installed or not running`,"ra_Double click to reset table layout":`Double click to reset table layout`,"ra_Drag 'n' drop some files here, or click to select files":`Drag 'n' drop some files here, or click to select files`,"ra_Drop file here":`Drop file here`,"ra_Drop the files here...":`Drop the file here...`,"ra_Duplicate name":`Duplicate name`,"ra_Edit ACL":`Edit ACL`,"ra_Edit alias":`Edit alias`,"ra_Edit custom config":`Edit custom config`,"ra_Edit full path":`Edit full path`,"ra_Edit function":`Edit function`,"ra_Edit object field":`Edit object field`,"ra_Edit role":`Edit role`,"ra_Edit room":`Edit room`,"ra_Edit value":`Edit value`,"ra_Enter the code from that page here":`Enter the code from that page here`,ra_Error:`Error`,"ra_Expand all nodes":`Expand all nodes`,"ra_Expand one step node":`Expand one level`,"ra_Expand/Collapse card":`Expand/Collapse card`,"ra_Export configuration section":`Export configuration section`,"ra_Export data to %s file":`Export data to %s file`,"ra_Failed to open JSON File":`Failed to open JSON File`,"ra_Fallback custom certificates":`Fallback custom certificates`,"ra_File is too big. Max %sk allowed. Try use SVG.":`File is too big. Max %sk allowed. Try use SVG.`,ra_Filter:`Filter`,"ra_Filter and Data Actions":`Filter and Data Actions`,"ra_Filter files":`Filter files`,"ra_Folder name":`Folder name`,"ra_Folder → Channel → State":`Folder → Channel → State`,"ra_Folder → Device → Channel → State":`Folder → Device → Channel → State`,"ra_Folder → State":`Folder → State`,"ra_Folders always first":`Folders always first`,ra_Friday:`Friday`,"ra_From file":`From file`,"ra_From text":`From text`,"ra_Get %s access":`Get %s access`,"ra_Good luck":`Good luck`,"ra_Hide empty folders":`Hide empty folders`,"ra_If no file will be created in the folder, it will disappear after the browser closed":`If no file will be created in the folder, it will disappear after the browser closed`,"ra_If the button above does not work, you can authorize manually this app by visiting this url":`If the button above does not work, you can authorize manually this app by visiting this url`,"ra_Import and add configuration section":`Import and add configuration section`,"ra_Import and replace configuration section":`Import and replace configuration section`,"ra_Import data from %s file":`Import data from %s file`,"ra_Import from %s":`Import from %s`,"ra_Instance %s is alive":`Instance %s is alive`,"ra_Instance %s is not alive":`Instance %s is not alive`,"ra_Instance is not alive":`Instance is not alive`,"ra_Invalid CRON":`Invalid CRON`,"ra_Invalid JSON":`Invalid JSON`,"ra_Invalid JSON file.":`Invalid JSON file.`,"ra_Invalid JSON format. Expected an array.":`Invalid JSON format. Expected an array.`,"ra_Invalid answer from server":`Invalid answer from server`,"ra_Invalid parent folder!":`Invalid parent folder!`,"ra_Invalid structure":`Invalid structure`,"ra_JSON editor":`JSON editor`,"ra_Last change":`Last change`,ra_Latitude:`Latitude`,"ra_License %s":`License %s`,"ra_License agreement":`License agreement`,"ra_License does not exist":`License does not exist`,"ra_License expired on %s":`License expired on %s`,'ra_License for other product "%s"':`License for other product "%s"`,"ra_License is for version %s, but required version is %s.":`License is for version %s, but required version is %s.`,"ra_License must be converted":`License must be converted to newer version. You can do it in your iobroker.net profile.`,"ra_License not found in license manager. Do you want to read licenses from iobroker.net?":`License not found in the license manager. Do you want to update licenses from iobroker.net?`,"ra_Listen on all IPs":`Listen on all IPs`,"ra_Load configuration from file":`Load configuration from file`,ra_Logout:`Logout`,ra_Longitude:`Longitude`,'ra_May not trigger "updateLicenses"':`May not trigger "updateLicenses"`,ra_Message:`Message`,ra_Monday:`Monday`,"ra_Move down":`Move down`,"ra_Move up":`Move up`,ra_Name:`Name`,"ra_No data found in file":`No data found in file`,"ra_No one license found in license manager":`No one license found in license manager`,"ra_No response from admin":`No response from admin`,"ra_No response from the backend":`No response from the backend`,'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':`Non-experts may create new objects only in "0_userdata.0" or "alias.0".`,"ra_Not a number":`Not a number`,"ra_OAuth Client ID":`OAuth Client ID`,"ra_OAuth Client secret":`OAuth Client secret`,ra_Objects:`Objects`,ra_Ok:`Ok`,"ra_On weekdays":`On weekdays`,"ra_Only following structures of objects are available:":`Only following structures of objects are available:`,"ra_Only selected":`Only selected`,"ra_Owner group":`Owner group`,"ra_Owner user":`Owner user`,"ra_Passwords are not equal!":`Passwords are not equal!`,"ra_Place your files here or click here to open the browse dialog":`Place your files here or click here to open the browse dialog`,"ra_Please allow popups in your browser for this page!":`Please allow popups in your browser for this page!`,"ra_Please confirm":`Please confirm`,"ra_Please create license":`Please create license`,"ra_Please enter the license":`Please enter the license`,"ra_Please select file...":`Please select file...`,"ra_Please select object ID...":`Please select object ID...`,"ra_Port could be used by %s":`Port could be used by %s`,"ra_Port is already used by %s":`Port is already used by %s`,"ra_Press ENTER Key to add new item":`Press ENTER Key to add new item`,"ra_Private certificate":`Private certificate`,ra_Product:`Product`,"ra_Public certificate":`Public certificate`,"ra_Quality code":`Quality`,"ra_Refresh tree":`Refresh tree`,"ra_Reload files":`Reload files`,ra_Rename_Move_Copy:`Rename/Move/Copy`,"ra_Renew %s access":`Renew %s access`,ra_Repeat:`Repeat`,ra_Replace:`Replace`,"ra_Request timed out":`Request timed out`,"ra_Restrict to folder":`Restrict to folder`,ra_Root:`Root`,ra_Saturday:`Saturday`,ra_Save:`Save`,"ra_Save and close":`Save and close`,"ra_Save configuration to file":`Save configuration to file`,"ra_Save objects tree as JSON file":`Save objects tree as JSON file`,"ra_Select all":`Select all`,"ra_Select color":`Select color`,"ra_Select predefined icon":`Select predefined icon`,"ra_Select type of export":`Select type of export`,ra_Selected:`Selected`,"ra_Selected %s object(s)":`Selected %s object(s)`,"ra_Serial number (UUID)":`Serial number (UUID)`,'ra_Serial number (UUID) "%s" in license is for other device.':`Serial number (UUID) "%s" in license is for other device.`,"ra_Session will expire in %s seconds. Continue?":`Session will expire in %s seconds. Continue?`,"ra_Show all folders":`Show all folders`,"ra_Show lines between rows":`Show lines between rows`,"ra_Show/Hide object descriptions":`Show/Hide object descriptions`,"ra_Show/hide filter input":`Show/hide filter input`,"ra_Some data are not stored. Discard?":`Some data are not stored. Discard?`,ra_States:`States`,"ra_Successfully authorized. Token valid till %s and will be automatically renewed.":`Successfully authorized. Token valid till %s and will be automatically renewed.`,"ra_Successfully authorized. Token valid till %s but it can expire as the instance is not running.":`Successfully authorized. Token valid till %s but it can expire as the instance is not running.`,"ra_Suitable license not found in license manager":`Suitable license not found in license manager`,ra_Sunday:`Sunday`,"ra_Suppress question for next %s minutes":`Suppress question for next %s minutes`,"ra_System language":`System language`,"ra_Take browser position":`Take position from browser`,"ra_Take position from system settings":`Take position from system settings`,'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':`The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").`,"ra_The page you are looking for was not found":`The page you are looking for was not found`,"ra_The schedule will be executed every minute. Are you sure?":`The schedule will be executed every minute. Are you sure?`,"ra_The schedule will be executed every second. Are you sure?":`The schedule will be executed every second. Are you sure?`,ra_Thursday:`Thursday`,ra_Timestamp:`Timestamp`,"ra_Toggle expert mode":`Toggle expert mode`,"ra_Toggle the states view":`Toggle the states view`,"ra_Toggle view mode":`Toggle view mode`,"ra_Too big":`Too big`,"ra_Too small":`Too small`,"ra_Transparent dialog":`Transparent dialog`,ra_Tuesday:`Tuesday`,"ra_Unknown error":`Unknown error`,"ra_Unknown error!":`Unknown error!`,ra_Update:`Update`,"ra_Upload file":`Upload file`,"ra_Use all available let's encrypt certificates":`Use all available let's encrypt certificates`,"ra_Use iobroker.acme adapter for letsencrypt certificates":`Use iobroker.acme adapter for letsencrypt certificates`,"ra_Use system settings for position":`Use system settings for position`,"ra_Used system settings":`Used system settings`,"ra_User files":`User files`,ra_ValidTill:`Valid till`,ra_Value:`Value`,ra_Version:`Version`,"ra_View file":`View file`,"ra_View: %s":`View: %s`,ra_Wednesday:`Wednesday`,ra_Width:`Width`,"ra_YAML editor":`YAML editor`,ra_Yes:`Yes`,"ra_You can export all objects or just the selected branch.":`You can export all objects or just the selected branch.`,"ra_You can filter entries by entering here some text":`You can filter entries by entering here some text`,"ra_You can use * as wildcard":`You can use * as wildcard`,ra___different__:`different`,ra_aclEveryone_read_object:`Everyone can read object`,ra_aclEveryone_read_state:`Everyone can read state`,ra_aclEveryone_write_object:`Everyone can write object`,ra_aclEveryone_write_state:`Everyone can write state`,ra_aclGroup_read_object:`Group can read object`,ra_aclGroup_read_state:`Group can read state`,ra_aclGroup_write_object:`Group can write object`,ra_aclGroup_write_state:`Group can write state`,ra_aclOwner_read_object:`Owner can read object`,ra_aclOwner_read_state:`Owner can read state`,ra_aclOwner_write_object:`Owner can write object`,ra_aclOwner_write_state:`Owner can write state`,ra_buttons:`Buttons`,ra_changedFrom:`Changed from`,ra_close:`close`,ra_create_boolean_state:`Create boolean state`,ra_create_channel:`Create channel`,ra_create_device:`Create device`,ra_create_number_state:`Create number state`,ra_create_state:`Create state`,ra_create_string_state:`Create string state`,ra_daysShortText:`days`,ra_dow_Fr:`Fr`,ra_dow_Mo:`Mo`,ra_dow_Sa:`Sa`,ra_dow_Su:`Su`,ra_dow_Th:`Th`,ra_dow_Tu:`Tu`,ra_dow_We:`We`,ra_expertMode:`Expert mode`,ra_false:`FALSE`,ra_fileType_all:`All files`,ra_fileType_audio:`Audio`,ra_fileType_code:`Code/JSON`,ra_fileType_images:`Images`,ra_fileType_txt:`Text`,ra_fileType_video:`Video`,"ra_fileType_video,":`Video`,ra_filter_customs:`Settings`,ra_filter_customs_without:`without`,ra_filter_func:`Function`,ra_filter_id:`ID`,ra_filter_name:`Name`,ra_filter_role:`Role`,ra_filter_room:`Room`,ra_filter_type:`Type`,"ra_import data from %s file":`Import data from %s file`,ra_invalidConfig:`Invalid settings`,ra_lastChange:`Last change`,ra_locally:`locally`,ra_month_Apr:`Apr`,ra_month_Aug:`Aug`,ra_month_Dec:`Dec`,ra_month_Feb:`Feb`,ra_month_Jan:`Jan`,ra_month_Jul:`Jul`,ra_month_Jun:`Jun`,ra_month_Mai:`Mai`,ra_month_Mar:`Mar`,ra_month_Nov:`Nov`,ra_month_Oct:`Oct`,ra_month_Sep:`Sep`,ra_months_Apr:`Apr`,ra_months_Aug:`Aug`,ra_months_Dec:`Dec`,ra_months_Feb:`Feb`,ra_months_Jan:`Jan`,ra_months_Jul:`Jul`,ra_months_Jun:`Jun`,ra_months_Mai:`Mai`,ra_months_Mar:`Mar`,ra_months_Nov:`Nov`,ra_months_Oct:`Oct`,ra_months_Sep:`Sep`,"ra_no confirm for 5 mins":`no confirm for 5 mins`,ra_none:`none`,ra_object_changed_by:`Object changed by`,ra_object_changed_by_user:`Object last changed at`,ra_otherConfig:`Settings from other adapter %s`,ra_qualityCode:`Quality code`,ra_repeat:`repeat`,ra_select_folder_hint:`To select folder, just hold the key "shift" by clicking the folder.`,ra_show_all:`Show all`,ra_state_changed_by:`State changed by`,ra_state_changed_from:`Object changed from`,ra_timestamp:`Timestamp`,ra_tooltip_ack:`Acknowledged`,ra_tooltip_comment:`Comment`,ra_tooltip_copyState:`Copy the state value`,ra_tooltip_ctrlForLink:`Hold Cltr/⌘ key to open the link`,ra_tooltip_customConfig:`Custom settings`,ra_tooltip_deleteObject:`Delete object`,ra_tooltip_editObject:`Edit object`,ra_tooltip_editState:`Edit the state value`,ra_tooltip_expire:`Expires in`,ra_tooltip_from:`From`,ra_tooltip_lc:`Last changed`,ra_tooltip_quality:`Quality`,ra_tooltip_ts:`Time stamp`,ra_tooltip_user:`User`,ra_tooltip_value:`Value`,ra_true:`TRUE`,"ra_use seconds":`use seconds`,ra_val:`Value`,"ra_via internet":`via internet`,ra_warning_every_minute:`Warning: The CRON job will run every minute during the specified period!`,ra_warning_every_second:`Warning: The CRON job will run every second during the specified period!`,sc_cron:`CRON`,sc_date:`Date`,sc_dates:`Dates`,sc_dow:`Day`,sc_dows:`Day of week`,sc_every:`Every`,sc_everyN_dates:`every N days`,sc_everyN_dow:`every Nth day of the week`,sc_everyN_dows:`every N day of week`,sc_everyN_hours:`every N hours`,sc_everyN_minutes:`every N minutes`,sc_everyN_months:`every N months`,sc_everyN_seconds:`every N seconds`,sc_every_dates:`every day`,sc_every_dow:`every day of the week`,sc_every_dows:`every day of the week`,sc_every_hours:`every hour`,sc_every_minutes:`every minute`,sc_every_months:`every month`,sc_every_seconds:`every second`,sc_from:`From`,sc_hours:`Hours`,sc_interval:`Interval`,sc_intervalBetween:`Interval between`,sc_invalid_cron:`Invalid CRON`,sc_minutes:`Minutes`,sc_months:`months`,sc_once:`Once`,sc_period:`Period`,sc_seconds:`Seconds`,sc_simple:`Simple`,sc_specific:`Specific time`,sc_specific_dates:`specific dates`,sc_specific_dow:`specific day(s) of the week`,sc_specific_dows:`specific day of weeks`,sc_specific_hours:`specific hours`,sc_specific_minutes:`specific minutes`,sc_specific_months:`specific months`,sc_specific_seconds:`specific seconds`,sc_time:`Time`,sc_to:`To`,sc_wizard:`Wizard`,sch_all:`all`,sch_astroDay:`Astro day`,sch_astroNight:`Astro night`,sch_astro_dawn:`Dawn`,sch_astro_dusk:`Dusk`,sch_astro_goldenHour:`Golden hour`,sch_astro_goldenHourEnd:`Golden hour end`,sch_astro_nadir:`Nadir`,sch_astro_nauticalDawn:`Nautical dawn`,sch_astro_nauticalDusk:`Nautical dusk`,sch_astro_night:`Night`,sch_astro_nightEnd:`Night end`,sch_astro_solarNoon:`Solar noon`,sch_astro_sunrise:`Sunrise`,sch_astro_sunriseEnd:`Sunrise end`,sch_astro_sunset:`Sunset`,sch_astro_sunsetStart:`Sunset start`,sch_at:`at`,sch_desc_atTime:`at %s`,sch_desc_everyDay:`every day`,sch_desc_everyHour:`every hour`,sch_desc_everyMinute:`every minute`,sch_desc_everyMonth:`every month`,sch_desc_everyNDay:`every %s day`,sch_desc_everyNHours:`every %s hours`,sch_desc_everyNMinutes:`every %s minutes`,sch_desc_everyNMonths:`every %s months`,sch_desc_everyNWeeks:`every %s weeks`,sch_desc_everyNYears:`every %s years`,sch_desc_everyWeek:`every week`,sch_desc_everyYear:`every year`,sch_desc_intervalFromTo:`from %s to %s`,sch_desc_never:`never`,sch_desc_onDate:`on %s of %s`,sch_desc_onDates:`on %s and %s of`,sch_desc_onEveryDate:`on every date of`,sch_desc_onMonth:`%s`,sch_desc_onMonths:`%s and %s`,sch_desc_onWeekday:`on %s`,sch_desc_onWeekdays:`on %s and %s`,sch_desc_onWeekends:`on weekends`,sch_desc_onWorkdays:`on working days`,sch_desc_onceInPast:`will ne be not executed any more, because start is in the past`,sch_desc_once_on:`on %s`,sch_desc_validFrom:`from %s`,sch_desc_validFromTo:`Execute from to`,sch_desc_validTo:`to %s`,sch_every:`every`,sch_exactTime:`Specific time`,sch_from:`from`,sch_fromTo:`From-to`,sch_intervalTime:`Interval time`,sch_invert:`invert`,sch_no_one:`none`,sch_on:`on`,sch_period:`Period`,sch_periodDaily:`Daily`,sch_periodDates:`Dates`,sch_periodDay:`Day`,sch_periodEvery:`Every`,sch_periodEveryDay:`Every day`,sch_periodEveryMonth:`Every month`,sch_periodEveryWeek:`Every week`,sch_periodEveryYear:`Every year`,sch_periodHours:`Hours`,sch_periodMinutes:`Minutes`,sch_periodMonth:`month`,sch_periodMonthly:`Monthly`,sch_periodOnce:`Once`,sch_periodSpecificMonths:`Specific months`,sch_periodWeek:`Week`,sch_periodWeekdays:`Weekdays`,sch_periodWeekend:`Weekend`,sch_periodWeekly:`Weekly`,sch_periodWorkdays:`Workdays`,sch_periodYear:`Year`,sch_periodYearly:`Yearly`,sch_specificTime:`Specific time`,sch_time:`Time`,sch_to:`to`,sch_valid:`Valid`,sch_validFrom:`from`,sch_validTo:`to`,sch_wholeDay:`Whole day`,sch_yearEveryMonth:`every month`},de:{"ra_%s links from aliases":`%s Links von Aliasen`,"ra_%s object(s) processed":`%s Objekt(e) verarbeitet`,"ra_%s was imported":`%s wurde importiert`,"ra_Accept license":`Lizenz akzeptieren`,ra_Actions:`Aktionen`,"ra_Add new child object to selected parent":`Dem ausgewählten übergeordneten Objekt ein neues untergeordnetes Objekt hinzufügen`,"ra_Add objects tree from JSON file":`Objektbaum aus JSON-Datei hinzufügen`,"ra_Add row":`Zeile hinzufügen`,"ra_Advanced options":`Erweiterte Optionen`,"ra_All items are filtered out":`Alle Elemente sind herausgefiltert`,"ra_All objects":`Alle Objekte`,ra_Append:`Anhängen`,"ra_Append %s entries or replace existing?":`%s Einträge anhängen oder vorhandene ersetzen?`,"ra_Append or replace?":`Anhängen oder ersetzen?`,"ra_Are you sure?":`Bist du sicher?`,"ra_Auto (no custom columns)":`Auto (keine benutzerdefinierten Spalten)`,"ra_Back to %s":`Zurück zu %s`,"ra_Background image":`Hintergrundbild`,ra_Cancel:`Abbrechen`,"ra_Cannot add items with set filter":`Elemente mit festgelegtem Filter können nicht hinzugefügt werden`,"ra_Cannot decode license":`Lizenz kann nicht entschlüsselt werden`,"ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":`Position kann nicht bestimmt werden: Die Systemeinstellungen sind leer und die GPS-Erkennung ist im Browser deaktiviert`,'ra_Cannot find "%s"':`Kann "%s" nicht finden`,'ra_Cannot read "%s"':`"%s" kann nicht gelesen werden`,"ra_Cannot read licenses: %s":`Lizenzen können nicht gelesen werden: %s`,"ra_Cannot retrieve options, as instance is offline":`Optionen können nicht abgerufen werden, da die Instanz offline ist`,"ra_Cannot update attribute, because not found in the object":`Attribut kann nicht aktualisiert werden, da es nicht im Objekt gefunden wurde`,"ra_Cannot upload":`Kann nicht hochladen`,ra_Categories:`Kategorien`,"ra_Chained certificate":`Chained Zertifikat`,"ra_Change color theme":`Farbthema ändern`,"ra_Changed from":`Geändert von`,"ra_Channel → State":`Kanal → Zustand`,"ra_Check license":`Lizenz prüfen`,ra_Checked:`Geprüft`,ra_Clear:`Löschen`,"ra_Clear filter":`Filter löschen`,"ra_Clear icon":`Symbol löschen`,"ra_Click to see in full size":`Klicken Sie hier, um die Vollbildansicht zu öffnen.`,"ra_Click to show":`Zum Anzeigen klicken`,"ra_Clone current row":`Aktuelle Zeile klonen`,ra_Close:`Schließen`,"ra_Collapse all nodes":`Alle Knoten zuklappen`,"ra_Collapse one step node":`Eine Ebene zuklappen`,ra_Commercial:`Kommerziell`,ra_Configure:`Konfigurieren`,"ra_Configure visible columns":`Spalten Konfigurieren`,"ra_Confirm deletion of %s":`Das Löschen von %s bestätigen`,ra_Connected:`Verbunden`,ra_Continue:`Weitermachen`,ra_Copied:`Kopiert`,"ra_Copied %s":`"%s" kopiert`,"ra_Copy content":`Inhalte kopieren`,ra_Create:`Erstellen`,"ra_Create alias":`Alias erstellen`,"ra_Create folder":`Ordner erstellen`,"ra_Create new folder in %s":`Neuen Ordner in "%s" erstellen`,ra_Crop:`Ernte`,"ra_Define CRON...":`Definieren Sie CRON ...`,"ra_Define functions":`Funktionen definieren`,"ra_Define rooms":`Räume definieren`,"ra_Define schedule":`Zeitplan definieren`,"ra_Define schedule...":`Zeitplan definieren ...`,ra_Del:`Entf`,ra_Delete:`Löschen`,"ra_Delete current row":`Aktuelle Zeile löschen`,"ra_Deselect all":`Alles abwählen`,"ra_Device → Channel → State":`Gerät → Kanal → Zustand`,"ra_Disable/Enable translation":`Übersetzung deaktivieren/aktivieren`,ra_Discard:`Verwerfen`,ra_Disconnected:`Getrennt`,"ra_Do not ask for next 2 hours in this session":`Fragen Sie nicht nach den nächsten 2 Stunden in dieser Sitzung`,"ra_Do not export values of states":`Keine Zustandswerte exportieren`,"ra_Do not use let's encrypt":`Let's encrypt nicht verwenden`,"ra_Docker is not available":`Docker ist nicht verfügbar`,"ra_Docker is not installed or not running":`Docker ist nicht installiert oder läuft nicht`,"ra_Double click to reset table layout":`Doppelklicken, um das Tabellenlayout zurückzusetzen`,"ra_Drag 'n' drop some files here, or click to select files":`Die Datei hierher ziehen und ablegen, oder klicken, um die Datei auszuwählen`,"ra_Drop file here":`Datei hier ablegen`,"ra_Drop the files here...":`Datei hier ablegen...`,"ra_Duplicate name":`Doppelter Name`,"ra_Edit ACL":`ACL bearbeiten`,"ra_Edit alias":`Alias bearbeiten`,"ra_Edit custom config":`Bearbeite Benutzerdefinierte Konfiguration`,"ra_Edit full path":`Vollständigen Pfad bearbeiten`,"ra_Edit function":`Funktion bearbeiten`,"ra_Edit object field":`Objektfeld bearbeiten`,"ra_Edit role":`Rolle bearbeiten`,"ra_Edit room":`Raum bearbeiten`,"ra_Edit value":`Wert bearbeiten`,"ra_Enter the code from that page here":`Geben Sie den Code von dieser Seite hier ein`,ra_Error:`Fehler`,"ra_Expand all nodes":`Alle Knoten aufklappen`,"ra_Expand one step node":`Eine Ebene aufklappen`,"ra_Expand/Collapse card":`Karte ein-/ausklappen`,"ra_Export configuration section":`Konfigurationsabschnitt exportieren`,"ra_Export data to %s file":`Daten in %s-Datei exportieren`,"ra_Failed to open JSON File":`Fehler beim Öffnen der JSON-Datei`,"ra_Fallback custom certificates":`Benutzerdefinierte Fallback-Zertifikate`,"ra_File is too big. Max %sk allowed. Try use SVG.":`Datei ist zu groß. Max %sk erlaubt. Versuchen Sie, SVG zu verwenden.`,ra_Filter:`Filter`,"ra_Filter and Data Actions":`Filter- und Datenaktionen`,"ra_Filter files":`Dateien filtern`,"ra_Folder name":`Ordnernamen`,"ra_Folder → Channel → State":`Ordner → Kanal → Zustand`,"ra_Folder → Device → Channel → State":`Ordner → Gerät → Kanal → Zustand`,"ra_Folder → State":`Ordner → Zustand`,"ra_Folders always first":`Ordner immer zuerst`,ra_Friday:`Freitag`,"ra_From file":`Aus der Datei`,"ra_From text":`Aus dem Text`,"ra_Get %s access":`%s Zugriff erhalten`,"ra_Good luck":`Viel Glück`,"ra_Hide empty folders":`Leere Ordner ausblenden`,"ra_If no file will be created in the folder, it will disappear after the browser closed":`Wenn im Ordner keine Datei erstellt wird, verschwindet dieser nach dem Schließen des Browsers`,"ra_If the button above does not work, you can authorize manually this app by visiting this url":`Wenn die Schaltfläche oben nicht funktioniert, können Sie diese App manuell autorisieren, indem Sie diese URL besuchen`,"ra_Import and add configuration section":`Konfigurationsabschnitt importieren und hinzufügen`,"ra_Import and replace configuration section":`Konfigurationsabschnitt importieren und ersetzen`,"ra_Import data from %s file":`Daten aus %s-Datei importieren`,"ra_Import from %s":`Von %s importieren`,"ra_Instance %s is alive":`Instanz %s ist aktiv`,"ra_Instance %s is not alive":`Instanz %s ist nicht aktiv`,"ra_Instance is not alive":`Instanz ist nicht am Leben`,"ra_Invalid CRON":`Ungültiger CRON`,"ra_Invalid JSON":`Ungültiges JSON`,"ra_Invalid JSON file.":`Ungültige JSON-Datei.`,"ra_Invalid JSON format. Expected an array.":`Ungültiges JSON-Format. Array erwartet.`,"ra_Invalid answer from server":`Ungültige Antwort vom Server`,"ra_Invalid parent folder!":`Ungültiger übergeordneter Ordner!`,"ra_Invalid structure":`Ungültige Struktur`,"ra_JSON editor":`JSON-Editor`,"ra_Last change":`Letzte Änderung`,ra_Latitude:`Breite`,"ra_License %s":`Lizenz %s`,"ra_License agreement":`Lizenzvereinbarung`,"ra_License does not exist":`Lizenz existiert nicht`,"ra_License expired on %s":`Lizenz am %s abgelaufen`,'ra_License for other product "%s"':`Lizenz für anderes Produkt „%s“`,"ra_License is for version %s, but required version is %s.":`Lizenz ist für Version %s, aber erforderliche Version ist %s.`,"ra_License must be converted":`Die Lizenz muss auf eine neuere Version konvertiert werden. Sie können dies in Ihrem iobroker.net-Profil tun.`,"ra_License not found in license manager. Do you want to read licenses from iobroker.net?":`Lizenz im Lizenzmanager nicht gefunden. Möchten Sie Lizenzen von iobroker.net aktualisieren?`,"ra_Listen on all IPs":`Zugriff von allen IPs zulassen`,"ra_Load configuration from file":`Konfiguration aus Datei laden`,ra_Logout:`Ausloggen`,ra_Longitude:`Längengrad`,'ra_May not trigger "updateLicenses"':`Löst möglicherweise nicht „updateLicenses“ aus`,ra_Message:`Meldung`,ra_Monday:`Montag`,"ra_Move down":`Nach unten`,"ra_Move up":`Nach oben`,ra_Name:`Name`,"ra_No data found in file":`Keine Daten in der Datei gefunden`,"ra_No one license found in license manager":`Im Lizenzmanager wurde keine Lizenz gefunden`,"ra_No response from admin":`Keine Antwort vom Administrator`,"ra_No response from the backend":`Keine Antwort vom Backend`,'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':`Nicht-Experten dürfen neue Objekte nur in "0_userdata.0" oder "alias.0" erstellen.`,"ra_Not a number":`Keine Nummer`,"ra_OAuth Client ID":`OAuth-Client-ID`,"ra_OAuth Client secret":`OAuth-Client-Secret`,ra_Objects:`Objekte`,ra_Ok:`OK`,"ra_On weekdays":`An Wochentagen`,"ra_Only following structures of objects are available:":`Es stehen nur folgende Objektstrukturen zur Verfügung:`,"ra_Only selected":`Nur ausgewählt`,"ra_Owner group":`Besitzergruppe`,"ra_Owner user":`Besitzer Benutzer`,"ra_Passwords are not equal!":`Passwörter sind nicht gleich!`,"ra_Place your files here or click here to open the browse dialog":`Die Dateien hier platzieren oder hier klicken, um den Suchdialog zu öffnen`,"ra_Please allow popups in your browser for this page!":`Bitte lassen Sie Popups für diese Seite in Ihrem Browser zu!`,"ra_Please confirm":`Bitte bestätigen`,"ra_Please create license":`Bitte erstellen Sie eine Lizenz`,"ra_Please enter the license":`Bitte die Lizenz eingeben`,"ra_Please select file...":`Bitte Datei auswählen...`,"ra_Please select object ID...":`Bitte Objekt-ID auswählen...`,"ra_Port could be used by %s":`Port könnte von %s verwendet werden`,"ra_Port is already used by %s":`Port wird bereits von %s verwendet`,"ra_Press ENTER Key to add new item":`Die Eingabetaste drücken, um ein neues Element hinzuzufügen`,"ra_Private certificate":`Privates Zertifikat`,ra_Product:`Produkt`,"ra_Public certificate":`Öffentliches Zertifikat`,"ra_Quality code":`Qualität`,"ra_Refresh tree":`Baum aktualisieren`,"ra_Reload files":`Dateien neu laden`,ra_Rename_Move_Copy:`Umbenennen/Verschieben/Kopieren`,"ra_Renew %s access":`%s Zugriff erneuern`,ra_Repeat:`Wiederholen`,ra_Replace:`Ersetzen`,"ra_Request timed out":`Zeitüberschreitung der Anforderung`,"ra_Restrict to folder":`Auf Ordner beschränken`,ra_Root:`Anfang`,ra_Saturday:`Samstag`,ra_Save:`Speichern`,"ra_Save and close":`Speichern und schließen`,"ra_Save configuration to file":`Konfiguration in Datei speichern`,"ra_Save objects tree as JSON file":`Objektbaum als JSON-Datei speichern`,"ra_Select all":`Alle auswählen`,"ra_Select color":`Wähle Farbe`,"ra_Select predefined icon":`Vordefiniertes Symbol auswählen`,"ra_Select type of export":`Die Art des Exports auswählen `,ra_Selected:`Ausgewählt`,"ra_Selected %s object(s)":`Ausgewählt %s Objekt(en)`,"ra_Serial number (UUID)":`Seriennummer (UUID)`,'ra_Serial number (UUID) "%s" in license is for other device.':`Seriennummer (UUID) „%s“ in der Lizenz gilt für ein anderes Gerät.`,"ra_Session will expire in %s seconds. Continue?":`Die Sitzung läuft in %s Sekunden ab. Fortfahren?`,"ra_Show all folders":`Alle Ordner anzeigen`,"ra_Show lines between rows":`Linien zwischen Zeilen anzeigen`,"ra_Show/Hide object descriptions":`Objektbeschreibungen ein-/ausblenden`,"ra_Show/hide filter input":`Filtereingabe ein-/ausblenden`,"ra_Some data are not stored. Discard?":`Einige Daten werden nicht gespeichert. Verwerfen?`,ra_States:`Zustände`,"ra_Successfully authorized. Token valid till %s and will be automatically renewed.":`Erfolgreich autorisiert. Token gültig bis %s und wird automatisch erneuert.`,"ra_Successfully authorized. Token valid till %s but it can expire as the instance is not running.":`Erfolgreich autorisiert. Token gültig bis %s, kann aber ablaufen, da die Instanz nicht ausgeführt wird.`,"ra_Suitable license not found in license manager":`Passende Lizenz im Lizenzmanager nicht gefunden`,ra_Sunday:`Sonntag`,"ra_Suppress question for next %s minutes":`Frage für die nächsten %s Minuten unterdrücken`,"ra_System language":`Systemsprache`,"ra_Take browser position":`Position vom Browser einnehmen`,"ra_Take position from system settings":`Position aus den Systemeinstellungen übernehmen`,'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':`Die Experten können Objekte überall erstellen, außer auf der zweiten Ebene (z. B. "vis.0" oder "javascript.0").`,"ra_The page you are looking for was not found":`Die gesuchte Seite wurde nicht gefunden`,"ra_The schedule will be executed every minute. Are you sure?":`Der Zeitplan wird jede Minute ausgeführt. Sind Sie sicher?`,"ra_The schedule will be executed every second. Are you sure?":`Der Zeitplan wird jede Sekunde ausgeführt. Sind Sie sicher?`,ra_Thursday:`Donnerstag`,ra_Timestamp:`Zeitstempel`,"ra_Toggle expert mode":`Expertenmodus umschalten`,"ra_Toggle the states view":`Statusansicht umschalten`,"ra_Toggle view mode":`Ansichtsmodus umschalten`,"ra_Too big":`Zu groß`,"ra_Too small":`Zu klein`,"ra_Transparent dialog":`Transparenter Dialog`,ra_Tuesday:`Dienstag`,"ra_Unknown error":`Unbekannter Fehler`,"ra_Unknown error!":`Unbekannter Fehler!`,ra_Update:`Aktualisieren`,"ra_Upload file":`Datei hochladen`,"ra_Use all available let's encrypt certificates":`Alle verfügbaren Zertifikate von Let's encrypt benutzen`,"ra_Use iobroker.acme adapter for letsencrypt certificates":`ioBroker.acme-Adapter für letsencrypt-Zertifikate verwenden`,"ra_Use system settings for position":`Systemeinstellungen für die Position verwenden`,"ra_Used system settings":`Systemeinstellungen`,"ra_User files":`Benutzerdaten`,ra_ValidTill:`Gültig bis`,ra_Value:`Wert`,ra_Version:`Ausführung`,"ra_View file":`Datei ansehen`,"ra_View: %s":`Anschauen: %s`,ra_Wednesday:`Mittwoch`,ra_Width:`Breite`,"ra_YAML editor":`YAML-Editor`,ra_Yes:`Ja`,"ra_You can export all objects or just the selected branch.":`Sie können alle Objekte oder nur den ausgewählten Zweig exportieren.`,"ra_You can filter entries by entering here some text":`Sie können Einträge filtern, indem Sie hier Text eingeben`,"ra_You can use * as wildcard":`Sie können * als Platzhalter verwenden`,ra___different__:`unterschiedlich`,ra_aclEveryone_read_object:`Jeder kann Objekt lesen`,ra_aclEveryone_read_state:`Jeder kann Zustand lesen`,ra_aclEveryone_write_object:`Jeder kann ein Objekt schreiben`,ra_aclEveryone_write_state:`Jeder kann Zustand schreiben`,ra_aclGroup_read_object:`Gruppe kann Objekt lesen`,ra_aclGroup_read_state:`Gruppe kann Status lesen`,ra_aclGroup_write_object:`Gruppe kann Objekt schreiben`,ra_aclGroup_write_state:`Gruppe kann Status schreiben`,ra_aclOwner_read_object:`Besitzer kann Objekt lesen`,ra_aclOwner_read_state:`Besitzer kann Zustand lesen`,ra_aclOwner_write_object:`Besitzer kann Objekt schreiben`,ra_aclOwner_write_state:`Besitzer kann Zustand schreiben`,ra_buttons:`Tasten`,ra_changedFrom:`Geändert von`,ra_close:`Schließen`,ra_create_boolean_state:`Booleschen Zustand erstellen`,ra_create_channel:`Kanal erstellen`,ra_create_device:`Gerät erstellen`,ra_create_number_state:`Nummern-Zustand erstellen`,ra_create_state:`Zustand erstellen`,ra_create_string_state:`String-Zustand erstellen`,ra_daysShortText:`T.`,ra_dow_Fr:`Fr`,ra_dow_Mo:`Mo`,ra_dow_Sa:`Sa`,ra_dow_Su:`So`,ra_dow_Th:`Do`,ra_dow_Tu:`Di`,ra_dow_We:`Mi`,ra_expertMode:`Expertenmodus`,ra_false:`FALSCH`,ra_fileType_all:`Alle Dateien`,ra_fileType_audio:`Audio`,ra_fileType_code:`Code/JSON`,ra_fileType_images:`Bilder`,ra_fileType_txt:`Text`,ra_fileType_video:`Video`,"ra_fileType_video,":`Video`,ra_filter_customs:`Einstellungen`,ra_filter_customs_without:`ohne`,ra_filter_func:`Funktion`,ra_filter_id:`ID`,ra_filter_name:`Name`,ra_filter_role:`Rolle`,ra_filter_room:`Raum`,ra_filter_type:`Typ`,"ra_import data from %s file":`Daten aus %s-Datei importieren`,ra_invalidConfig:`Ungültige Einstellungen`,ra_lastChange:`Letzte Änderung`,ra_locally:`örtlich`,ra_month_Apr:`Apr`,ra_month_Aug:`Aug`,ra_month_Dec:`Dez`,ra_month_Feb:`Feb`,ra_month_Jan:`Jan`,ra_month_Jul:`Jul`,ra_month_Jun:`Jun`,ra_month_Mai:`Mai`,ra_month_Mar:`Mär`,ra_month_Nov:`Nov`,ra_month_Oct:`Okt`,ra_month_Sep:`Sep`,ra_months_Apr:`Apr`,ra_months_Aug:`Aug`,ra_months_Dec:`Dez`,ra_months_Feb:`Feb`,ra_months_Jan:`Jan`,ra_months_Jul:`Jul`,ra_months_Jun:`Jun`,ra_months_Mai:`Mai`,ra_months_Mar:`Mär`,ra_months_Nov:`Nov`,ra_months_Oct:`Okt`,ra_months_Sep:`Sep`,"ra_no confirm for 5 mins":`5 Minuten lang keine Bestätigung`,ra_none:`kein`,ra_object_changed_by:`Objekt geändert von`,ra_object_changed_by_user:`Objekt zuletzt geändert um`,ra_otherConfig:`Einstellungen von anderen Adaptern %s`,ra_qualityCode:`Qualitätscode`,ra_repeat:`wiederholen`,ra_select_folder_hint:`Um einen Ordner auszuwählen, halten Sie einfach die Taste "Shift" gedrückt, indem Sie auf den Ordner klicken.`,ra_show_all:`Alle anzeigen`,ra_state_changed_by:`Zustand geändert durch`,ra_state_changed_from:`Objekt geändert von`,ra_timestamp:`Zeitstempel`,ra_tooltip_ack:`Bestätigt`,ra_tooltip_comment:`Kommentar`,ra_tooltip_copyState:`Statuswert kopieren`,ra_tooltip_ctrlForLink:`Strg/⌘-Taste gedrückt halten, um den Link zu öffnen`,ra_tooltip_customConfig:`Benutzerdefinierte Einstellungen`,ra_tooltip_deleteObject:`Objekt löschen`,ra_tooltip_editObject:`Objekt bearbeiten`,ra_tooltip_editState:`Statuswert bearbeiten`,ra_tooltip_expire:`Läuft ab in`,ra_tooltip_from:`Von`,ra_tooltip_lc:`Zuletzt geändert`,ra_tooltip_quality:`Qualität`,ra_tooltip_ts:`Zeitstempel`,ra_tooltip_user:`Benutzer`,ra_tooltip_value:`Wert`,ra_true:`WAHR`,"ra_use seconds":`Sekunden benutzen`,ra_val:`Wert`,"ra_via internet":`übers Internet`,ra_warning_every_minute:`Achtung: Der CRON-Job wird im angegebenen Zeitraum jede Minute ausgeführt!`,ra_warning_every_second:`Achtung: Der CRON-Job wird im angegebenen Zeitraum jede Sekunde ausgeführt!`,sc_cron:`CRON`,sc_date:`Datum`,sc_dates:`Tage`,sc_dow:`Tag`,sc_dows:`Wochentage`,sc_every:`Jeden`,sc_everyN_dates:`alle N Tage`,sc_everyN_dow:`jeden x-ten Tag der Woche`,sc_everyN_dows:`alle N Wochentage`,sc_everyN_hours:`alle N Stunden`,sc_everyN_minutes:`alle N Minuten`,sc_everyN_months:`alle N Monate`,sc_everyN_seconds:`alle N Sekunden`,sc_every_dates:`jeden Tag`,sc_every_dow:`jeden Tag der Woche`,sc_every_dows:`jeden Tag der Woche`,sc_every_hours:`jede Stunde`,sc_every_minutes:`jede Minute`,sc_every_months:`jeden Monat`,sc_every_seconds:`jede Sekunde`,sc_from:`Von`,sc_hours:`Stunden`,sc_interval:`Intervall`,sc_intervalBetween:`Intervall zwischen`,sc_invalid_cron:`Ungültiger CRON`,sc_minutes:`Minuten`,sc_months:`Monate`,sc_once:`Einmal`,sc_period:`Zeitraum`,sc_seconds:`Sekunden`,sc_simple:`Einfach`,sc_specific:`Bestimmte Zeit`,sc_specific_dates:`bestimmte Tage`,sc_specific_dow:`bestimmte(r) Tag(e) der Woche`,sc_specific_dows:`bestimmten Wochentag`,sc_specific_hours:`bestimmte Stunden`,sc_specific_minutes:`bestimmte Minuten`,sc_specific_months:`bestimmte Monate`,sc_specific_seconds:`bestimmte Sekunden`,sc_time:`Zeit`,sc_to:`Bis`,sc_wizard:`Wizard`,sch_all:`alle`,sch_astroDay:`Astronomischer Tag`,sch_astroNight:`Astronomische Nacht`,sch_astro_dawn:`Morgendämmerung`,sch_astro_dusk:`Abenddämmerung`,sch_astro_goldenHour:`Goldene Stunde`,sch_astro_goldenHourEnd:`Goldene Stundenende`,sch_astro_nadir:`Nadir`,sch_astro_nauticalDawn:`Nautische Morgendämmerung`,sch_astro_nauticalDusk:`Nautische Abenddämmerung`,sch_astro_night:`Nacht`,sch_astro_nightEnd:`Nachtende`,sch_astro_solarNoon:`Sonnenmittag`,sch_astro_sunrise:`Sonnenaufgang`,sch_astro_sunriseEnd:`Sonnenaufgangende`,sch_astro_sunset:`Sonnenuntergang`,sch_astro_sunsetStart:`Sonnenuntergangstart`,sch_at:`am`,sch_desc_atTime:`um %s`,sch_desc_everyDay:`jeden Tag`,sch_desc_everyHour:`jede Stunde`,sch_desc_everyMinute:`jede Minute`,sch_desc_everyMonth:`jeden Monat`,sch_desc_everyNDay:`jeden %s Tag`,sch_desc_everyNHours:`alle %s Stunden`,sch_desc_everyNMinutes:`alle %s Minuten`,sch_desc_everyNMonths:`alle %s Monate`,sch_desc_everyNWeeks:`alle %s Wochen`,sch_desc_everyNYears:`alle %s Jahre`,sch_desc_everyWeek:`jede Woche`,sch_desc_everyYear:`jedes Jahr`,sch_desc_intervalFromTo:`von %s bis %s`,sch_desc_never:`noch nie`,sch_desc_onDate:`am %s von %s`,sch_desc_onDates:`am %s und %s von`,sch_desc_onEveryDate:`an jedem Datum von`,sch_desc_onMonth:`%s`,sch_desc_onMonths:`%s und %s`,sch_desc_onWeekday:`auf %s`,sch_desc_onWeekdays:`auf %s und %s`,sch_desc_onWeekends:`an Wochenenden`,sch_desc_onWorkdays:`an Werktagen`,sch_desc_onceInPast:`wird nicht mehr ausgeführt, weil der Start in der Vergangenheit ist`,sch_desc_once_on:`auf %s`,sch_desc_validFrom:`von %s`,sch_desc_validFromTo:`Ausführen von bis`,sch_desc_validTo:`bis %s`,sch_every:`jeden`,sch_exactTime:`Bestimmte Zeit`,sch_from:`von`,sch_fromTo:`Von bis`,sch_intervalTime:`Zeitintervall`,sch_invert:`umkehren`,sch_no_one:`keiner`,sch_on:`am`,sch_period:`Zeitraum`,sch_periodDaily:`Täglich`,sch_periodDates:`Daten`,sch_periodDay:`Tag`,sch_periodEvery:`Jeden`,sch_periodEveryDay:`Jeden Tag`,sch_periodEveryMonth:`Jeden Monat`,sch_periodEveryWeek:`Jede Woche`,sch_periodEveryYear:`Jedes Jahr`,sch_periodHours:`Stunden`,sch_periodMinutes:`Minuten`,sch_periodMonth:`Monat`,sch_periodMonthly:`Monatlich`,sch_periodOnce:`Einmal`,sch_periodSpecificMonths:`Bestimmte Monate`,sch_periodWeek:`Woche`,sch_periodWeekdays:`Wochentage`,sch_periodWeekend:`Wochenende`,sch_periodWeekly:`Wöchentlich`,sch_periodWorkdays:`Arbeitstage`,sch_periodYear:`Jahr`,sch_periodYearly:`Jährlich`,sch_specificTime:`Bestimmte Zeit`,sch_time:`Zeit`,sch_to:`zu`,sch_valid:`Gültigkeit`,sch_validFrom:`von`,sch_validTo:`bis`,sch_wholeDay:`Ganzer Tag`,sch_yearEveryMonth:`jeden Monat`},ru:{"ra_%s links from aliases":`%s ссылок из псевдонимов`,"ra_%s object(s) processed":`Объектов обработано: %s`,"ra_%s was imported":`%s был импортирован`,"ra_Accept license":`Принять лицензию`,ra_Actions:`Действия`,"ra_Add new child object to selected parent":`Добавить новый дочерний объект к выбранному родительскому объекту`,"ra_Add objects tree from JSON file":`Добавить дерево объектов из файла JSON`,"ra_Add row":`Добавить ряд`,"ra_Advanced options":`Расширенные настройки`,"ra_All items are filtered out":`Все элементы отфильтрованы`,"ra_All objects":`Все объекты`,ra_Append:`Добавить`,"ra_Append %s entries or replace existing?":`Добавить записи %s или заменить существующие?`,"ra_Append or replace?":`Дополнить или заменить?`,"ra_Are you sure?":`Вы уверены?`,"ra_Auto (no custom columns)":`Авто (без настраиваемых столбцов)`,"ra_Back to %s":`Вернуться к %s`,"ra_Background image":`Фоновая картинка`,ra_Cancel:`Отмена`,"ra_Cannot add items with set filter":`Невозможно добавить элементы с установленным фильтром`,"ra_Cannot decode license":`Не могу декодировать лицензию`,"ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":`Невозможно определить местоположение: системные настройки пусты, а обнаружение GPS отключено в браузере.`,'ra_Cannot find "%s"':`Не могу найти "%s"`,'ra_Cannot read "%s"':`Не могу прочитать "%s"`,"ra_Cannot read licenses: %s":`Невозможно прочитать лицензии: %s`,"ra_Cannot retrieve options, as instance is offline":`Невозможно получить параметры, так как экземпляр находится в автономном режиме.`,"ra_Cannot update attribute, because not found in the object":`Невозможно обновить атрибут, потому что он не найден в объекте`,"ra_Cannot upload":`Невозможно загрузить`,ra_Categories:`Категории`,"ra_Chained certificate":`Chained сертификат`,"ra_Change color theme":`Изменить цветовую тему`,"ra_Changed from":`Изменено`,"ra_Channel → State":`Канал → Состояние`,"ra_Check license":`Проверить лицензию`,ra_Checked:`Проверено`,ra_Clear:`Удалить`,"ra_Clear filter":`Очистить фильтр`,"ra_Clear icon":`Очистить значок`,"ra_Click to see in full size":`Нажмите, чтобы посмотреть в полном размере`,"ra_Click to show":`Нажмите, чтобы показать`,"ra_Clone current row":`Клонировать текущую строку`,ra_Close:`Закрыть`,"ra_Collapse all nodes":`Свернуть все узлы`,"ra_Collapse one step node":`Свернуть один уровень`,ra_Commercial:`Коммерческая`,ra_Configure:`Настроить`,"ra_Configure visible columns":`Настроить видимые столбцы`,"ra_Confirm deletion of %s":`Подтвердите удаление %s`,ra_Connected:`Соединение установлено`,ra_Continue:`Продолжать`,ra_Copied:`скопировано`,"ra_Copied %s":`Скопировано "%s"`,"ra_Copy content":`Копировать содержимое`,ra_Create:`Создать`,"ra_Create alias":`Создать псевдоним`,"ra_Create folder":`Создать папку`,"ra_Create new folder in %s":`Создать новую папку в %s`,ra_Crop:`Обрезать`,"ra_Define CRON...":`Определите CRON...`,"ra_Define functions":`Задать функции`,"ra_Define rooms":`Задать комнаты`,"ra_Define schedule":`Задать расписание`,"ra_Define schedule...":`Определить расписание ...`,ra_Del:`Delete`,ra_Delete:`Удалить`,"ra_Delete current row":`Удалить текущую строку`,"ra_Deselect all":`Убрать выбор везде`,"ra_Device → Channel → State":`Устройство → Канал → Состояние`,"ra_Disable/Enable translation":`Включить/отключить перевод`,ra_Discard:`Отказаться`,ra_Disconnected:`Отключено`,"ra_Do not ask for next 2 hours in this session":`Не спрашивайте о следующих 2 часах в этом сеансе`,"ra_Do not export values of states":`Не экспортировать значения состояний`,"ra_Do not use let's encrypt":`Не использовать Let’s Encrypt`,"ra_Docker is not available":`Докер недоступен`,"ra_Docker is not installed or not running":`Docker не установлен или не запущен`,"ra_Double click to reset table layout":`Дважды щелкните, чтобы сбросить макет таблицы`,"ra_Drag 'n' drop some files here, or click to select files":`Перетащите сюда несколько файлов или щелкните, чтобы выбрать файлы`,"ra_Drop file here":`Перетащите файл сюда`,"ra_Drop the files here...":`Перетащите файл сюда ...`,"ra_Duplicate name":`Повторяющееся имя`,"ra_Edit ACL":`Изменить ACL-список`,"ra_Edit alias":`Изменить псевдоним`,"ra_Edit custom config":`Редактировать настраиваемую конфигурацию`,"ra_Edit full path":`Изменить полный путь`,"ra_Edit function":`Изменить функцию`,"ra_Edit object field":`Поле редактирования объекта`,"ra_Edit role":`Изменить роль`,"ra_Edit room":`Редактировать комнату`,"ra_Edit value":`Изменить значение`,"ra_Enter the code from that page here":`Введите код с этой страницы здесь`,ra_Error:`Ошибка`,"ra_Expand all nodes":`Развернуть все узлы`,"ra_Expand one step node":`Открыть один уровень`,"ra_Expand/Collapse card":`Развернуть/Свернуть карточку`,"ra_Export configuration section":`Раздел конфигурации экспорта`,"ra_Export data to %s file":`Экспорт данных в файл %s`,"ra_Failed to open JSON File":`Не удалось открыть файл JSON`,"ra_Fallback custom certificates":`Резервные пользовательские сертификаты`,"ra_File is too big. Max %sk allowed. Try use SVG.":`Файл слишком большой. Разрешено максимальное количество %sk. Попробуйте использовать SVG.`,ra_Filter:`Фильтр`,"ra_Filter and Data Actions":`Фильтрация и действия с данными`,"ra_Filter files":`Фильтровать файлы`,"ra_Folder name":`Имя папки`,"ra_Folder → Channel → State":`Папка → Канал → Состояние`,"ra_Folder → Device → Channel → State":`Папка → Устройство → Канал → Состояние`,"ra_Folder → State":`Папка → Состояние`,"ra_Folders always first":`Папки всегда на первом месте`,ra_Friday:`Пятница`,"ra_From file":`Из файла`,"ra_From text":`Из текста`,"ra_Get %s access":`Получить %s доступ`,"ra_Good luck":`Удачи`,"ra_Hide empty folders":`Скрыть пустые папки`,"ra_If no file will be created in the folder, it will disappear after the browser closed":`Если в папке не будет создан файл, он исчезнет после закрытия браузера.`,"ra_If the button above does not work, you can authorize manually this app by visiting this url":`Если кнопка выше не работает, вы можете вручную авторизовать это приложение, перейдя по этой ссылке.`,"ra_Import and add configuration section":`Импорт и добавление раздела конфигурации`,"ra_Import and replace configuration section":`Импорт и замена раздела конфигурации`,"ra_Import data from %s file":`Импорт данных из файла %s`,"ra_Import from %s":`Импорт из %s`,"ra_Instance %s is alive":`Экземпляр %s работает`,"ra_Instance %s is not alive":`Экземпляр %s не работает`,"ra_Instance is not alive":`Экземпляр не живой`,"ra_Invalid CRON":`Неверный CRON`,"ra_Invalid JSON":`Неверный JSON`,"ra_Invalid JSON file.":`Неверный файл JSON.`,"ra_Invalid JSON format. Expected an array.":`Недопустимый формат JSON. Ожидается массив.`,"ra_Invalid answer from server":`Неверный ответ от сервера`,"ra_Invalid parent folder!":`Неверная родительская папка!`,"ra_Invalid structure":`Неверная структура`,"ra_JSON editor":`Редактор JSON`,"ra_Last change":`Последнее изменение`,ra_Latitude:`Широта`,"ra_License %s":`Лицензия %s`,"ra_License agreement":`Лицензионное соглашение`,"ra_License does not exist":`Лицензия не существует`,"ra_License expired on %s":`Срок действия лицензии истек %s`,'ra_License for other product "%s"':`Лицензия на другой продукт "%s"`,"ra_License is for version %s, but required version is %s.":`Лицензия предназначена для версии %s, но необходима версия %s.`,"ra_License must be converted":`Лицензия должна быть преобразована в более новую версию. Вы можете сделать это в своем профиле на iobroker.net.`,"ra_License not found in license manager. Do you want to read licenses from iobroker.net?":`Лицензия не найдена в диспетчере лицензий. Вы хотите обновить лицензии от iobroker.net?`,"ra_Listen on all IPs":`Слушать на всех IP`,"ra_Load configuration from file":`Загрузить конфигурацию из файла`,ra_Logout:`Выйти`,ra_Longitude:`Долгота`,'ra_May not trigger "updateLicenses"':`Не может запускать «updateLicenses»`,ra_Message:`Сообщение`,ra_Monday:`Понедельник`,"ra_Move down":`Вниз`,"ra_Move up":`Вверх`,ra_Name:`Имя`,"ra_No data found in file":`Данные в файле не найдены`,"ra_No one license found in license manager":`В менеджере лицензий не найдена ни одна лицензия`,"ra_No response from admin":`Нет ответа от администратора`,"ra_No response from the backend":`Нет ответа от бэкэнда`,'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':`Не-эксперты могут создавать новые объекты только в «0_userdata.0» или «alias.0».`,"ra_Not a number":`Не число`,"ra_OAuth Client ID":`Идентификатор клиента OAuth`,"ra_OAuth Client secret":`Секрет клиента OAuth`,ra_Objects:`Объекты`,ra_Ok:`Ok`,"ra_On weekdays":`На выходных`,"ra_Only following structures of objects are available:":`Доступны только следующие структуры объектов:`,"ra_Only selected":`Только выбранные`,"ra_Owner group":`Группа владельцев`,"ra_Owner user":`Пользователь-владелец`,"ra_Passwords are not equal!":`Пароли не равны!`,"ra_Place your files here or click here to open the browse dialog":`Поместите свои файлы сюда или щелкните здесь, чтобы открыть диалоговое окно выбора`,"ra_Please allow popups in your browser for this page!":`Пожалуйста, разрешите всплывающие окна в вашем браузере для этой страницы!`,"ra_Please confirm":`Пожалуйста подтвердите`,"ra_Please create license":`Пожалуйста, создайте лицензию`,"ra_Please enter the license":`Пожалуйста, введите лицензию`,"ra_Please select file...":`Пожалуйста, выберите файл...`,"ra_Please select object ID...":`Пожалуйста, выберите идентификатор объекта ...`,"ra_Port could be used by %s":`Порт может использоваться %s`,"ra_Port is already used by %s":`Порт уже используется %s`,"ra_Press ENTER Key to add new item":`Нажмите клавишу ENTER, чтобы добавить новый элемент.`,"ra_Private certificate":`Частный сертификат`,ra_Product:`Продукт`,"ra_Public certificate":`Публичный сертификат`,"ra_Quality code":`Валидность`,"ra_Refresh tree":`Обновить дерево`,"ra_Reload files":`Обновить`,ra_Rename_Move_Copy:`Переименовать/Переместить/Копировать`,"ra_Renew %s access":`Продлить доступ %s`,ra_Repeat:`Повторение`,ra_Replace:`Заменять`,"ra_Request timed out":`Истекло время запроса`,"ra_Restrict to folder":`Ограничить папкой`,ra_Root:`Начало`,ra_Saturday:`Суббота`,ra_Save:`Сохранить`,"ra_Save and close":`Сохранить и закрыть`,"ra_Save configuration to file":`Сохранить конфигурацию в файл`,"ra_Save objects tree as JSON file":`Сохранить дерево объектов как файл JSON`,"ra_Select all":`Выбрать все`,"ra_Select color":`Выберите цвет`,"ra_Select predefined icon":`Выберите предопределенный значок`,"ra_Select type of export":`Выберите тип экспорта`,ra_Selected:`выбранный`,"ra_Selected %s object(s)":`Объектов: %s`,"ra_Serial number (UUID)":`Серийный номер (UUID)`,'ra_Serial number (UUID) "%s" in license is for other device.':`Серийный номер (UUID) «%s» в лицензии предназначен для другого устройства.`,"ra_Session will expire in %s seconds. Continue?":`Сессия истечет через %s секунд. Продолжить?`,"ra_Show all folders":`Показать все папки`,"ra_Show lines between rows":`Показать линии между строками`,"ra_Show/Hide object descriptions":`Показать/скрыть описания объектов`,"ra_Show/hide filter input":`Показать/скрыть ввод фильтра`,"ra_Some data are not stored. Discard?":`Некоторые данные не сохранились. Отказаться?`,ra_States:`Состояния`,"ra_Successfully authorized. Token valid till %s and will be automatically renewed.":`Авторизация выполнена успешно. Токен действителен до %s и будет автоматически продлен.`,"ra_Successfully authorized. Token valid till %s but it can expire as the instance is not running.":`Авторизация выполнена успешно. Токен действителен до %s, но его срок действия может истечь, так как экземпляр не запущен.`,"ra_Suitable license not found in license manager":`Подходящая лицензия не найдена в менеджере лицензий`,ra_Sunday:`Воскресенье`,"ra_Suppress question for next %s minutes":`Скрыть вопрос на следующие %s минут(ы)`,"ra_System language":`Язык системы`,"ra_Take browser position":`Взять позицию из браузера`,"ra_Take position from system settings":`Занять позицию из системных настроек`,'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':`Эксперты могут создавать объекты везде, кроме второго уровня (например, «vis.0» или «javascript.0»).`,"ra_The page you are looking for was not found":`Страница, которую вы ищете, не найдена`,"ra_The schedule will be executed every minute. Are you sure?":`Расписание будет выполняться каждую минуту. Вы уверены?`,"ra_The schedule will be executed every second. Are you sure?":`Расписание будет выполняться каждую секунду. Вы уверены?`,ra_Thursday:`Четверг`,ra_Timestamp:`Времени`,"ra_Toggle expert mode":`Переключить экспертный режим`,"ra_Toggle the states view":`Переключить режим просмотра состояний`,"ra_Toggle view mode":`Переключить режим просмотра`,"ra_Too big":`Слишком большое`,"ra_Too small":`Слишком маленькое`,"ra_Transparent dialog":`Прозрачный диалог`,ra_Tuesday:`Вторник`,"ra_Unknown error":`Неизвестная ошибка`,"ra_Unknown error!":`Неизвестная ошибка!`,ra_Update:`Обновить`,"ra_Upload file":`Загрузить файл`,"ra_Use all available let's encrypt certificates":`Использовать все доступные сертификаты Let’s encrypt`,"ra_Use iobroker.acme adapter for letsencrypt certificates":`Используйте адаптер iobroker.acme для сертификатов letsencrypt`,"ra_Use system settings for position":`Использовать системные настройки для позиции`,"ra_Used system settings":`Системные настройки`,"ra_User files":`Файлы пользователя`,ra_ValidTill:`Годен до`,ra_Value:`Значение`,ra_Version:`Версия`,"ra_View file":`Посмотреть файл`,"ra_View: %s":`Просмотр: %s`,ra_Wednesday:`Среда`,ra_Width:`Ширина`,"ra_YAML editor":`Редактор YAML`,ra_Yes:`Да`,"ra_You can export all objects or just the selected branch.":`Вы можете экспортировать все объекты или только выбранную ветвь.`,"ra_You can filter entries by entering here some text":`Вы можете отфильтровать записи, введя здесь текст`,"ra_You can use * as wildcard":`Вы можете использовать * в качестве подстановочного знака`,ra___different__:`разное`,ra_aclEveryone_read_object:`Каждый может читать объект`,ra_aclEveryone_read_state:`Каждый может читать состояние`,ra_aclEveryone_write_object:`Каждый может написать объект`,ra_aclEveryone_write_state:`Каждый может написать состояние`,ra_aclGroup_read_object:`Группа может читать объект`,ra_aclGroup_read_state:`Группа может читать состояние`,ra_aclGroup_write_object:`Группа может писать объект`,ra_aclGroup_write_state:`Группа может записывать состояние`,ra_aclOwner_read_object:`Владелец может читать объект`,ra_aclOwner_read_state:`Владелец может читать состояние`,ra_aclOwner_write_object:`Владелец может писать объект`,ra_aclOwner_write_state:`Владелец может писать состояние`,ra_buttons:`Кнопки`,ra_changedFrom:`Изменено с`,ra_close:`Закрыть`,ra_create_boolean_state:`Создать логическое состояние`,ra_create_channel:`Создать канал`,ra_create_device:`Создать устройство`,ra_create_number_state:`Создать состояние номера`,ra_create_state:`Создать состояние`,ra_create_string_state:`Создать состояние строки`,ra_daysShortText:`д.`,ra_dow_Fr:`Пт`,ra_dow_Mo:`Пн`,ra_dow_Sa:`Сб`,ra_dow_Su:`Вс`,ra_dow_Th:`Чт`,ra_dow_Tu:`Вт`,ra_dow_We:`Ср`,ra_expertMode:`Экспертный режим`,ra_false:`ЛОЖЬ`,ra_fileType_all:`Все файлы`,ra_fileType_audio:`Аудио`,ra_fileType_code:`Код/JSON`,ra_fileType_images:`Картинки`,ra_fileType_txt:`Текст`,ra_fileType_video:`видео`,"ra_fileType_video,":`видео`,ra_filter_customs:`настройки`,ra_filter_customs_without:`без`,ra_filter_func:`функция`,ra_filter_id:`ID`,ra_filter_name:`Имя`,ra_filter_role:`роль`,ra_filter_room:`комната`,ra_filter_type:`Тип`,"ra_import data from %s file":`Импортировать данные из файла %s`,ra_invalidConfig:`Неверные настройки`,ra_lastChange:`Последнее изменение`,ra_locally:`локально`,ra_month_Apr:`Апр`,ra_month_Aug:`Авг`,ra_month_Dec:`Дек`,ra_month_Feb:`Фев`,ra_month_Jan:`Янв`,ra_month_Jul:`Июл`,ra_month_Jun:`Июн`,ra_month_Mai:`Май`,ra_month_Mar:`Мрт`,ra_month_Nov:`Ноя`,ra_month_Oct:`Окт`,ra_month_Sep:`Сен`,ra_months_Apr:`Апр`,ra_months_Aug:`Авг`,ra_months_Dec:`Дек`,ra_months_Feb:`Фев`,ra_months_Jan:`Янв`,ra_months_Jul:`Июнь`,ra_months_Jun:`Июль`,ra_months_Mai:`Май`,ra_months_Mar:`Март`,ra_months_Nov:`Ноя`,ra_months_Oct:`Окт`,ra_months_Sep:`Сен`,"ra_no confirm for 5 mins":`не спрашивать подтверждения в течение 5 минут`,ra_none:`ничего`,ra_object_changed_by:`Объект изменен`,ra_object_changed_by_user:`Последний раз объект изменен в`,ra_otherConfig:`Настройки из другого адаптера %s`,ra_qualityCode:`Код качества`,ra_repeat:`повтор`,ra_select_folder_hint:`Чтобы выбрать папку, просто удерживайте клавишу «Shift», щелкнув папку.`,ra_show_all:`Показать все`,ra_state_changed_by:`Состояние изменено`,ra_state_changed_from:`Объект изменен с`,ra_timestamp:`Отметка времени`,ra_tooltip_ack:`Подтверждено`,ra_tooltip_comment:`Комментарий`,ra_tooltip_copyState:`Скопируйте значение состояния`,ra_tooltip_ctrlForLink:`Удерживайте клавишу Cltr/⌘, чтобы открыть ссылку`,ra_tooltip_customConfig:`Пользовательские настройки`,ra_tooltip_deleteObject:`Удалить объект`,ra_tooltip_editObject:`Редактировать объект`,ra_tooltip_editState:`Изменить значение состояния`,ra_tooltip_expire:`Истекает через`,ra_tooltip_from:`От`,ra_tooltip_lc:`Последнее изменение`,ra_tooltip_quality:`Качество`,ra_tooltip_ts:`Отметка времени`,ra_tooltip_user:`пользователь`,ra_tooltip_value:`Значение`,ra_true:`истинный`,"ra_use seconds":`секунды`,ra_val:`Значение`,"ra_via internet":`через интернет`,ra_warning_every_minute:`Внимание: задание CRON будет запускаться каждую минуту в течение указанного периода!`,ra_warning_every_second:`Внимание: задание CRON будет выполняться каждую секунду в течение указанного периода!`,sc_cron:`CRON`,sc_date:`Дата`,sc_dates:`Даты`,sc_dow:`День`,sc_dows:`День недели`,sc_every:`каждый(ую/ые)`,sc_everyN_dates:`каждый N день`,sc_everyN_dow:`каждый N-й день недели`,sc_everyN_dows:`каждый N день недели`,sc_everyN_hours:`каждые N часов`,sc_everyN_minutes:`каждые N минут`,sc_everyN_months:`каждые N месяцев`,sc_everyN_seconds:`каждые N секунд`,sc_every_dates:`каждый день`,sc_every_dow:`Каждый день недели`,sc_every_dows:`каждый день недели`,sc_every_hours:`каждый час`,sc_every_minutes:`каждую минуту`,sc_every_months:`каждый месяц`,sc_every_seconds:`каждую секунду`,sc_from:`От`,sc_hours:`часы`,sc_interval:`Интервал`,sc_intervalBetween:`Интервал между`,sc_invalid_cron:`Неверный CRON`,sc_minutes:`минуты`,sc_months:`Месяцы`,sc_once:`один раз`,sc_period:`Период`,sc_seconds:`секунды`,sc_simple:`Просто`,sc_specific:`Конкретное время`,sc_specific_dates:`конкретные даты`,sc_specific_dow:`конкретный день(а) недели`,sc_specific_dows:`конкретный день недели`,sc_specific_hours:`конкретные часы`,sc_specific_minutes:`конкретные минуты`,sc_specific_months:`конкретные месяцы`,sc_specific_seconds:`конкретные секунды`,sc_time:`Время`,sc_to:`До`,sc_wizard:`Форма`,sch_all:`все`,sch_astroDay:`днём`,sch_astroNight:`ночью`,sch_astro_dawn:`Рассвет`,sch_astro_dusk:`Сумерки`,sch_astro_goldenHour:`Золотой час`,sch_astro_goldenHourEnd:`Конец золотого часа`,sch_astro_nadir:`Надир`,sch_astro_nauticalDawn:`Морской рассвет`,sch_astro_nauticalDusk:`Морские сумерки`,sch_astro_night:`Ночь`,sch_astro_nightEnd:`Конец ночи`,sch_astro_solarNoon:`Солнечный полдень`,sch_astro_sunrise:`Восход`,sch_astro_sunriseEnd:`Восход солнца`,sch_astro_sunset:`Заход солнца`,sch_astro_sunsetStart:`Начало заката`,sch_at:`дата`,sch_desc_atTime:`в %s`,sch_desc_everyDay:`каждый день`,sch_desc_everyHour:`каждый час`,sch_desc_everyMinute:`каждую минуту`,sch_desc_everyMonth:`каждый месяц`,sch_desc_everyNDay:`каждый %s день`,sch_desc_everyNHours:`каждый %s часов`,sch_desc_everyNMinutes:`каждые %s минут`,sch_desc_everyNMonths:`каждые %s месяцев`,sch_desc_everyNWeeks:`каждые %s недель`,sch_desc_everyNYears:`каждые %s лет`,sch_desc_everyWeek:`каждую неделю`,sch_desc_everyYear:`каждый год`,sch_desc_intervalFromTo:`от %s до %s`,sch_desc_never:`никогда`,sch_desc_onDate:`%s %s`,sch_desc_onDates:`%s и %s`,sch_desc_onEveryDate:`в каждый день`,sch_desc_onMonth:`%s`,sch_desc_onMonths:`%s и %s`,sch_desc_onWeekday:`%s`,sch_desc_onWeekdays:`%s и %s`,sch_desc_onWeekends:`на выходных`,sch_desc_onWorkdays:`в рабочие дни`,sch_desc_onceInPast:`не будет больше выполняться, потому что начало в прошлом`,sch_desc_once_on:`%s`,sch_desc_validFrom:`%s`,sch_desc_validFromTo:`Выполнить с`,sch_desc_validTo:`%s`,sch_every:`каждый`,sch_exactTime:`Конкретное время`,sch_from:`от`,sch_fromTo:`От и до`,sch_intervalTime:`Интервал времени`,sch_invert:`инвертировать`,sch_no_one:`никакой`,sch_on:`на`,sch_period:`период`,sch_periodDaily:`Ежедневно`,sch_periodDates:`Даты`,sch_periodDay:`День`,sch_periodEvery:`каждый`,sch_periodEveryDay:`Каждый день`,sch_periodEveryMonth:`Каждый месяц`,sch_periodEveryWeek:`Каждую неделю`,sch_periodEveryYear:`Каждый год`,sch_periodHours:`часов`,sch_periodMinutes:`минут`,sch_periodMonth:`месяц`,sch_periodMonthly:`ежемесячно`,sch_periodOnce:`однажды`,sch_periodSpecificMonths:`Конкретные месяцы`,sch_periodWeek:`Неделю`,sch_periodWeekdays:`Будние дни`,sch_periodWeekend:`выходные`,sch_periodWeekly:`еженедельно`,sch_periodWorkdays:`Рабочие дни`,sch_periodYear:`Год`,sch_periodYearly:`каждый год`,sch_specificTime:`Конкретное время`,sch_time:`Время`,sch_to:`в`,sch_valid:`действительный`,sch_validFrom:`от`,sch_validTo:`в`,sch_wholeDay:`Весь день`,sch_yearEveryMonth:`каждый месяц`},pt:{"ra_%s links from aliases":`%s links de aliases`,"ra_%s object(s) processed":`%s objeto(s) processado(s)`,"ra_%s was imported":`%s foi importado`,"ra_Accept license":`Aceitar licença`,ra_Actions:`Ações`,"ra_Add new child object to selected parent":`Adicionar novo objeto filho ao pai selecionado`,"ra_Add objects tree from JSON file":`Adicionar árvore de objetos do arquivo JSON`,"ra_Add row":`Adicionar linha`,"ra_Advanced options":`Opções avançadas`,"ra_All items are filtered out":`Todos os itens são filtrados`,"ra_All objects":`Todos os objetos`,ra_Append:`Acrescentar`,"ra_Append %s entries or replace existing?":`Acrescentar %s entradas ou substituir as existentes?`,"ra_Append or replace?":`Acrescentar ou substituir?`,"ra_Are you sure?":`Você tem certeza?`,"ra_Auto (no custom columns)":`Auto (sem colunas personalizadas)`,"ra_Back to %s":`Voltar para %s`,"ra_Background image":`Imagem de fundo`,ra_Cancel:`Cancelar`,"ra_Cannot add items with set filter":`Não é possível adicionar itens com filtro definido`,"ra_Cannot decode license":`Não é possível decodificar a licença`,"ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":`Não é possível determinar a posição: as configurações do sistema estão vazias e a detecção de GPS está desativada no navegador`,'ra_Cannot find "%s"':`Não foi possível encontrar "%s"`,'ra_Cannot read "%s"':`Não é possível ler "%s"`,"ra_Cannot read licenses: %s":`Não é possível ler licenças: %s`,"ra_Cannot retrieve options, as instance is offline":`Não é possível recuperar opções, pois a instância está off-line`,"ra_Cannot update attribute, because not found in the object":`Não é possível atualizar o atributo, porque não foi encontrado no objeto`,"ra_Cannot upload":`Não é possível fazer upload`,ra_Categories:`Categorias`,"ra_Chained certificate":`certificado encadeado`,"ra_Change color theme":`Alterar tema de cores`,"ra_Changed from":`Mudou de`,"ra_Channel → State":`Canal → Estado`,"ra_Check license":`Verifique a licença`,ra_Checked:`Verificado`,ra_Clear:`Excluir`,"ra_Clear filter":`Filtro limpo`,"ra_Clear icon":`Ícone de limpeza`,"ra_Click to see in full size":`Clique para ver em tamanho real.`,"ra_Click to show":`Clique para mostrar`,"ra_Clone current row":`Clonar linha atual`,ra_Close:`Perto`,"ra_Collapse all nodes":`Recolher todos os nós`,"ra_Collapse one step node":`Recolher um nível`,ra_Commercial:`Comercial`,ra_Configure:`Configurar`,"ra_Configure visible columns":`Configurar colunas visíveis`,"ra_Confirm deletion of %s":`Confirme a exclusão de %s`,ra_Connected:`Conectado`,ra_Continue:`Continuar`,ra_Copied:`Copiado`,"ra_Copied %s":`"%s" copiado`,"ra_Copy content":`Copiar conteúdo`,ra_Create:`Crio`,"ra_Create alias":`Criar alias`,"ra_Create folder":`Criar pasta`,"ra_Create new folder in %s":`Crie uma nova pasta em %s`,ra_Crop:`Colheita`,"ra_Define CRON...":`Defina CRON...`,"ra_Define functions":`Definir funções`,"ra_Define rooms":`Definir quartos`,"ra_Define schedule":`Definir cronograma`,"ra_Define schedule...":`Definir programação ...`,ra_Del:`Delete`,ra_Delete:`Excluir`,"ra_Delete current row":`Excluir linha atual`,"ra_Deselect all":`Desmarque todos`,"ra_Device → Channel → State":`Dispositivo → Canal → Estado`,"ra_Disable/Enable translation":`Desativar/Ativar tradução`,ra_Discard:`Descartar`,ra_Disconnected:`Desconectado`,"ra_Do not ask for next 2 hours in this session":`Não peça as próximas 2 horas nesta sessão`,"ra_Do not export values of states":`Não exporte valores de estados`,"ra_Do not use let's encrypt":`Não use vamos criptografar`,"ra_Docker is not available":`O Docker não está disponível`,"ra_Docker is not installed or not running":`O Docker não está instalado ou não está em execução`,"ra_Double click to reset table layout":`Clique duas vezes para redefinir o layout da tabela`,"ra_Drag 'n' drop some files here, or click to select files":`Arraste e solte alguns arquivos aqui ou clique para selecionar arquivos`,"ra_Drop file here":`Solte o arquivo aqui`,"ra_Drop the files here...":`Solte o arquivo aqui ...`,"ra_Duplicate name":`Nome duplicado`,"ra_Edit ACL":`Editar ACL`,"ra_Edit alias":`Editar alias`,"ra_Edit custom config":`Editar configuração personalizada`,"ra_Edit full path":`Editar caminho completo`,"ra_Edit function":`Função de edição`,"ra_Edit object field":`Editar campo de objeto`,"ra_Edit role":`Editar papel`,"ra_Edit room":`Sala de edição`,"ra_Edit value":`Editar valor`,"ra_Enter the code from that page here":`Digite o código dessa página aqui`,ra_Error:`Erro`,"ra_Expand all nodes":`Expanda todos os nós`,"ra_Expand one step node":`Expanda um nível`,"ra_Expand/Collapse card":`Expandir/Recolher cartão`,"ra_Export configuration section":`Seção de configuração de exportação`,"ra_Export data to %s file":`Exportar dados para o arquivo %s`,"ra_Failed to open JSON File":`Falha ao abrir arquivo JSON`,"ra_Fallback custom certificates":`Certificados personalizados alternativos`,"ra_File is too big. Max %sk allowed. Try use SVG.":`O arquivo é muito grande. Max %sk permitido. Tente usar SVG.`,ra_Filter:`Filtro`,"ra_Filter and Data Actions":`Ações de filtro e dados`,"ra_Filter files":`Filtrar arquivos`,"ra_Folder name":`Nome da pasta`,"ra_Folder → Channel → State":`Pasta → Canal → Estado`,"ra_Folder → Device → Channel → State":`Pasta → Dispositivo → Canal → Estado`,"ra_Folder → State":`Pasta → Estado`,"ra_Folders always first":`Pastas sempre primeiro`,ra_Friday:`Sexta-feira`,"ra_From file":`Do arquivo`,"ra_From text":`Do texto`,"ra_Get %s access":`Obtenha acesso %s`,"ra_Good luck":`Boa sorte`,"ra_Hide empty folders":`Esconder pastas vazias`,"ra_If no file will be created in the folder, it will disappear after the browser closed":`Se nenhum arquivo for criado na pasta, ele desaparecerá depois que o navegador for fechado`,"ra_If the button above does not work, you can authorize manually this app by visiting this url":`Se o botão acima não funcionar, você pode autorizar manualmente este aplicativo visitando esta url`,"ra_Import and add configuration section":`Seção de importação e adição de configuração`,"ra_Import and replace configuration section":`Seção de configuração de importação e substituição`,"ra_Import data from %s file":`Importar dados do arquivo %s`,"ra_Import from %s":`Importar de %s`,"ra_Instance %s is alive":`O %s da instância está ativo`,"ra_Instance %s is not alive":`O %s da instância não está ativo`,"ra_Instance is not alive":`A instância não está ativa`,"ra_Invalid CRON":`CRON inválido`,"ra_Invalid JSON":`JSON inválido`,"ra_Invalid JSON file.":`Arquivo JSON inválido.`,"ra_Invalid JSON format. Expected an array.":`Formato JSON inválido. Esperava-se uma matriz.`,"ra_Invalid answer from server":`Resposta inválida do servidor`,"ra_Invalid parent folder!":`Pasta pai inválida!`,"ra_Invalid structure":`Estrutura inválida`,"ra_JSON editor":`Editor JSON`,"ra_Last change":`Última mudança`,ra_Latitude:`Latitude`,"ra_License %s":`Licença %s`,"ra_License agreement":`Contrato de licença`,"ra_License does not exist":`A licença não existe`,"ra_License expired on %s":`A licença expirou em %s`,'ra_License for other product "%s"':`Licença para outro produto "%s"`,"ra_License is for version %s, but required version is %s.":`A licença é para a versão %s, mas a versão necessária é %s.`,"ra_License must be converted":`A licença deve ser convertida para uma versão mais recente. Você pode fazê-lo em seu perfil iobroker.net.`,"ra_License not found in license manager. Do you want to read licenses from iobroker.net?":`Licença não encontrada no gerenciador de licenças. Deseja atualizar as licenças do iobroker.net?`,"ra_Listen on all IPs":`Ouça em todos os IPs`,"ra_Load configuration from file":`Carregar configuração do arquivo`,ra_Logout:`Sair`,ra_Longitude:`Longitude`,'ra_May not trigger "updateLicenses"':`Pode não acionar "updateLicenses"`,ra_Message:`mensagem`,ra_Monday:`Segunda-feira`,"ra_Move down":`Mover para baixo`,"ra_Move up":`Subir`,ra_Name:`Nome`,"ra_No data found in file":`Nenhum dado encontrado no arquivo`,"ra_No one license found in license manager":`Nenhuma licença encontrada no gerenciador de licenças`,"ra_No response from admin":`Nenhuma resposta do administrador`,"ra_No response from the backend":`Nenhuma resposta do backend`,'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':`Os não especialistas podem criar novos objetos apenas em "0_userdata.0" ou "alias.0".`,"ra_Not a number":`Não é um número`,"ra_OAuth Client ID":`ID do cliente OAuth`,"ra_OAuth Client secret":`Segredo do cliente OAuth`,ra_Objects:`Objetos`,ra_Ok:`Está bem`,"ra_On weekdays":`Nos dias úteis`,"ra_Only following structures of objects are available:":`Apenas as seguintes estruturas de objetos estão disponíveis:`,"ra_Only selected":`Apenas selecionado`,"ra_Owner group":`Grupo proprietário`,"ra_Owner user":`Usuário proprietário`,"ra_Passwords are not equal!":`As senhas não são iguais!`,"ra_Place your files here or click here to open the browse dialog":`Coloque seus arquivos aqui ou clique aqui para abrir a janela de navegação`,"ra_Please allow popups in your browser for this page!":`Por favor, permita pop-ups no seu navegador para esta página!`,"ra_Please confirm":`Por favor confirme`,"ra_Please create license":`Crie uma licença`,"ra_Please enter the license":`Por favor, insira a licença`,"ra_Please select file...":`Selecione o arquivo...`,"ra_Please select object ID...":`Selecione o ID do objeto ...`,"ra_Port could be used by %s":`A porta pode ser usada por %s`,"ra_Port is already used by %s":`A porta já está sendo usada por %s`,"ra_Press ENTER Key to add new item":`Pressione a tecla ENTER para adicionar um novo item`,"ra_Private certificate":`certificado privado`,ra_Product:`produtos`,"ra_Public certificate":`certificado público`,"ra_Quality code":`Qualidade`,"ra_Refresh tree":`Atualizar árvore`,"ra_Reload files":`Recarregar arquivos`,ra_Rename_Move_Copy:`Renomear/Mover/Copiar`,"ra_Renew %s access":`Renovar acesso %s`,ra_Repeat:`Repita`,ra_Replace:`Substituir`,"ra_Request timed out":`Solicitação expirou`,"ra_Restrict to folder":`Restringir à pasta`,ra_Root:`Raiz`,ra_Saturday:`Sábado`,ra_Save:`Salve `,"ra_Save and close":`Salvar e fechar`,"ra_Save configuration to file":`Salvar configuração em arquivo`,"ra_Save objects tree as JSON file":`Salvar árvore de objetos como arquivo JSON`,"ra_Select all":`Selecionar tudo`,"ra_Select color":`Selecione a cor`,"ra_Select predefined icon":`Selecione o ícone predefinido`,"ra_Select type of export":`Selecione o tipo de exportação`,ra_Selected:`Selecionado`,"ra_Selected %s object(s)":`%s objeto(s) selecionado(s)`,"ra_Serial number (UUID)":`Número de série (UUID)`,'ra_Serial number (UUID) "%s" in license is for other device.':`O número de série (UUID) "%s" na licença é para outro dispositivo.`,"ra_Session will expire in %s seconds. Continue?":`A sessão irá expirar em %s segundos. Continuar?`,"ra_Show all folders":`Mostrar todas as pastas`,"ra_Show lines between rows":`Mostrar linhas entre as linhas`,"ra_Show/Hide object descriptions":`Mostrar/ocultar descrições de objetos`,"ra_Show/hide filter input":`Mostrar/ocultar entrada de filtro`,"ra_Some data are not stored. Discard?":`Alguns dados não são armazenados. Descartar?`,ra_States:`Estados`,"ra_Successfully authorized. Token valid till %s and will be automatically renewed.":`Autorizado com sucesso. Token válido até %s e será renovado automaticamente.`,"ra_Successfully authorized. Token valid till %s but it can expire as the instance is not running.":`Autorizado com sucesso. Token válido até %s, mas pode expirar, pois a instância não está em execução.`,"ra_Suitable license not found in license manager":`Licença adequada não encontrada no gerenciador de licenças`,ra_Sunday:`Domingo`,"ra_Suppress question for next %s minutes":`Suprimir pergunta nos próximos %s minutos`,"ra_System language":`Idioma do sistema`,"ra_Take browser position":`Tomar posição do navegador`,"ra_Take position from system settings":`Tomar posição a partir das configurações do sistema`,'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':`Os especialistas podem criar objetos em qualquer lugar, exceto no segundo nível (por exemplo, "vis.0" ou "javascript.0").`,"ra_The page you are looking for was not found":`A página que você está procurando não foi encontrada`,"ra_The schedule will be executed every minute. Are you sure?":`O agendamento será executado a cada minuto. Tem certeza?`,"ra_The schedule will be executed every second. Are you sure?":`O agendamento será executado a cada segundo. Tem certeza?`,ra_Thursday:`Quinta-feira`,ra_Timestamp:`Timestamp`,"ra_Toggle expert mode":`Alternar modo especialista`,"ra_Toggle the states view":`Alternar a visualização dos estados`,"ra_Toggle view mode":`Alternar modo de visualização`,"ra_Too big":`Muito grande`,"ra_Too small":`Muito pequeno`,"ra_Transparent dialog":`Diálogo transparente`,ra_Tuesday:`Terça-feira`,"ra_Unknown error":`Erro desconhecido`,"ra_Unknown error!":`Erro desconhecido!`,ra_Update:`Atualizar`,"ra_Upload file":`Subir arquivo`,"ra_Use all available let's encrypt certificates":`Use todos os certificados disponíveis vamos criptografar`,"ra_Use iobroker.acme adapter for letsencrypt certificates":`Use o adaptador iobroker.acme para certificados letsencrypt`,"ra_Use system settings for position":`Use as configurações do sistema para a posição`,"ra_Used system settings":`Configurações do sistema usadas`,"ra_User files":`Arquivos do usuário`,ra_ValidTill:`Válida até`,ra_Value:`Valor`,ra_Version:`Versão`,"ra_View file":`Visualizar arquivo`,"ra_View: %s":`Visualizar: %s`,ra_Wednesday:`Quarta-feira`,ra_Width:`Largura`,"ra_YAML editor":`Editor YAML`,ra_Yes:`Sim`,"ra_You can export all objects or just the selected branch.":`Você pode exportar todos os objetos ou apenas a ramificação selecionada.`,"ra_You can filter entries by entering here some text":`Você pode filtrar as entradas digitando aqui algum texto`,"ra_You can use * as wildcard":`Você pode usar * como curinga`,ra___different__:`diferente`,ra_aclEveryone_read_object:`Todos podem ler objetos`,ra_aclEveryone_read_state:`Todos podem ler o estado`,ra_aclEveryone_write_object:`Todos podem escrever objetos`,ra_aclEveryone_write_state:`Todos podem escrever o estado`,ra_aclGroup_read_object:`O grupo pode ler o objeto`,ra_aclGroup_read_state:`O grupo pode ler o estado`,ra_aclGroup_write_object:`O grupo pode escrever o objeto`,ra_aclGroup_write_state:`O grupo pode escrever o estado`,ra_aclOwner_read_object:`O proprietário pode ler o objeto`,ra_aclOwner_read_state:`O proprietário pode ler o estado`,ra_aclOwner_write_object:`O proprietário pode escrever o objeto`,ra_aclOwner_write_state:`O proprietário pode escrever o estado`,ra_buttons:`Botões`,ra_changedFrom:`Mudou de`,ra_close:`fechar`,ra_create_boolean_state:`Criar estado booleano`,ra_create_channel:`Criar canal`,ra_create_device:`Criar dispositivo`,ra_create_number_state:`Criar estado numérico`,ra_create_state:`Criar estado`,ra_create_string_state:`Criar estado de string`,ra_daysShortText:`d.`,ra_dow_Fr:`Fr`,ra_dow_Mo:`Mo`,ra_dow_Sa:`Sa`,ra_dow_Su:`Su`,ra_dow_Th:`º`,ra_dow_Tu:`Tu`,ra_dow_We:`Nós`,ra_expertMode:`Modo especialista`,ra_false:`FALSO`,ra_fileType_all:`Todos os arquivos`,ra_fileType_audio:`áudio`,ra_fileType_code:`Código/JSON`,ra_fileType_images:`Imagens`,ra_fileType_txt:`Texto`,ra_fileType_video:`Vídeo`,"ra_fileType_video,":`Vídeo`,ra_filter_customs:`Configurações`,ra_filter_customs_without:`sem`,ra_filter_func:`Função`,ra_filter_id:`ID`,ra_filter_name:`Nome`,ra_filter_role:`Papel (Função)`,ra_filter_room:`Quarto`,ra_filter_type:`Tipo`,"ra_import data from %s file":`Importar dados do arquivo %s`,ra_invalidConfig:`Configurações inválidas`,ra_lastChange:`Última mudança`,ra_locally:`localmente`,ra_month_Apr:`abril`,ra_month_Aug:`agosto`,ra_month_Dec:`dezembro`,ra_month_Feb:`fevereiro`,ra_month_Jan:`janeiro`,ra_month_Jul:`julho`,ra_month_Jun:`junho`,ra_month_Mai:`Mai`,ra_month_Mar:`março`,ra_month_Nov:`novembro`,ra_month_Oct:`outubro`,ra_month_Sep:`setembro`,ra_months_Apr:`abril`,ra_months_Aug:`agosto`,ra_months_Dec:`dezembro`,ra_months_Feb:`fevereiro`,ra_months_Jan:`janeiro`,ra_months_Jul:`julho`,ra_months_Jun:`junho`,ra_months_Mai:`Mai`,ra_months_Mar:`março`,ra_months_Nov:`novembro`,ra_months_Oct:`outubro`,ra_months_Sep:`setembro`,"ra_no confirm for 5 mins":`sem confirmação por 5 minutos`,ra_none:`Nenhum`,ra_object_changed_by:`Objeto alterado por`,ra_object_changed_by_user:`Objeto alterado pela última vez em`,ra_otherConfig:`Configurações de outro adaptador %s`,ra_qualityCode:`Código de qualidade`,ra_repeat:`repetir`,ra_select_folder_hint:`Para selecionar a pasta, basta segurar a tecla "shift" clicando na pasta.`,ra_show_all:`Mostrar tudo`,ra_state_changed_by:`Estado alterado por`,ra_state_changed_from:`Objeto alterado de`,ra_timestamp:`Timestamp`,ra_tooltip_ack:`Confirmado`,ra_tooltip_comment:`Comente`,ra_tooltip_copyState:`Copie o valor do estado`,ra_tooltip_ctrlForLink:`Segure a tecla Ctrl/⌘ para abrir o link`,ra_tooltip_customConfig:`Opções customizadas`,ra_tooltip_deleteObject:`Excluir objeto`,ra_tooltip_editObject:`Editar objeto`,ra_tooltip_editState:`Edite o valor do estado`,ra_tooltip_expire:`Expira em`,ra_tooltip_from:`De`,ra_tooltip_lc:`Última alteração`,ra_tooltip_quality:`Qualidade`,ra_tooltip_ts:`Timestamp`,ra_tooltip_user:`Usuário`,ra_tooltip_value:`Valor`,ra_true:`verdadeiro`,"ra_use seconds":`use segundos`,ra_val:`Valor`,"ra_via internet":`via internet`,ra_warning_every_minute:`Aviso: O trabalho CRON será executado a cada minuto durante o período especificado!`,ra_warning_every_second:`Aviso: O trabalho CRON será executado a cada segundo durante o período especificado!`,sc_cron:`CRON`,sc_date:`Data`,sc_dates:`Dias`,sc_dow:`Dia`,sc_dows:`Dia da semana`,sc_every:`todos`,sc_everyN_dates:`a cada N dias`,sc_everyN_dow:`todo enésimo dia da semana`,sc_everyN_dows:`todos os N dias da semana`,sc_everyN_hours:`a cada N horas`,sc_everyN_minutes:`a cada N minutos`,sc_everyN_months:`a cada N meses`,sc_everyN_seconds:`a cada N segundos`,sc_every_dates:`todo dia`,sc_every_dow:`todos os dias da semana`,sc_every_dows:`todos os dias da semana`,sc_every_hours:`toda hora`,sc_every_minutes:`todo minuto`,sc_every_months:`todo mês`,sc_every_seconds:`todo segundo`,sc_from:`de`,sc_hours:`horas`,sc_interval:`intervalo`,sc_intervalBetween:`intervalo entre`,sc_invalid_cron:`CRON inválido`,sc_minutes:`minutos`,sc_months:`meses`,sc_once:`uma vez`,sc_period:`período`,sc_seconds:`segundos`,sc_simple:`simples`,sc_specific:`tempo específico`,sc_specific_dates:`datas específicas`,sc_specific_dow:`dia(s) específico(s) da semana`,sc_specific_dows:`dia específico de semanas`,sc_specific_hours:`horas específicas`,sc_specific_minutes:`minutos específicos`,sc_specific_months:`meses específicos`,sc_specific_seconds:`segundos específicos`,sc_time:`tempo`,sc_to:`para`,sc_wizard:`assistente`,sch_all:`tudo`,sch_astroDay:`dia astral`,sch_astroNight:`noite astral`,sch_astro_dawn:`amanhecer`,sch_astro_dusk:`anoitecer`,sch_astro_goldenHour:`hora dourada`,sch_astro_goldenHourEnd:`Fim da hora dourada`,sch_astro_nadir:`nadir`,sch_astro_nauticalDawn:`Amanhecer náutico`,sch_astro_nauticalDusk:`Anoitecer náutico`,sch_astro_night:`noite`,sch_astro_nightEnd:`fim da noite`,sch_astro_solarNoon:`meio-dia solar`,sch_astro_sunrise:`nascer do sol`,sch_astro_sunriseEnd:`fim do nascer do sol`,sch_astro_sunset:`pôr do sol`,sch_astro_sunsetStart:`início do pôr do sol`,sch_at:`às`,sch_desc_atTime:`em %s`,sch_desc_everyDay:`todo dia`,sch_desc_everyHour:`toda hora`,sch_desc_everyMinute:`todo minuto`,sch_desc_everyMonth:`todo mês`,sch_desc_everyNDay:`a cada %s dias`,sch_desc_everyNHours:`a cada %s horas`,sch_desc_everyNMinutes:`a cada %s minutos`,sch_desc_everyNMonths:`a cada %s meses`,sch_desc_everyNWeeks:`a cada %s semanas`,sch_desc_everyNYears:`a cada %s anos`,sch_desc_everyWeek:`toda semana`,sch_desc_everyYear:`todo ano`,sch_desc_intervalFromTo:`de %s para %s`,sch_desc_never:`nunca`,sch_desc_onDate:`em %s de %s`,sch_desc_onDates:`em %s e %s de`,sch_desc_onEveryDate:`em toda data de`,sch_desc_onMonth:`%s`,sch_desc_onMonths:`%s e %s`,sch_desc_onWeekday:`em %s`,sch_desc_onWeekdays:`em %s e %s`,sch_desc_onWeekends:`nos fins de semana`,sch_desc_onWorkdays:`em dias úteis`,sch_desc_onceInPast:`não será mais executado, porque o começo está no passado`,sch_desc_once_on:`em %s`,sch_desc_validFrom:`de %s`,sch_desc_validFromTo:`Executar de até`,sch_desc_validTo:`até %s`,sch_every:`cada`,sch_exactTime:`tempo específico`,sch_from:`de`,sch_fromTo:`de a´t`,sch_intervalTime:`tempo de intervalo`,sch_invert:`invertido`,sch_no_one:`nenhum`,sch_on:`em`,sch_period:`período`,sch_periodDaily:`diariamente`,sch_periodDates:`datas`,sch_periodDay:`dia`,sch_periodEvery:`todos`,sch_periodEveryDay:`todo dia`,sch_periodEveryMonth:`todo mês`,sch_periodEveryWeek:`toda semana`,sch_periodEveryYear:`todo ano`,sch_periodHours:`horas`,sch_periodMinutes:`minutos`,sch_periodMonth:`mês`,sch_periodMonthly:`por mês`,sch_periodOnce:`uma vez`,sch_periodSpecificMonths:`meses específicos`,sch_periodWeek:`semana`,sch_periodWeekdays:`dias úteis`,sch_periodWeekend:`final de semana`,sch_periodWeekly:`semanal`,sch_periodWorkdays:`dias úteis`,sch_periodYear:`ano`,sch_periodYearly:`anual`,sch_specificTime:`tempo específico`,sch_time:`tempo`,sch_to:`para`,sch_valid:`válido`,sch_validFrom:`de`,sch_validTo:`para`,sch_wholeDay:`dia inteiro`,sch_yearEveryMonth:`todo mês`},nl:{"ra_%s links from aliases":`%s links van aliassen`,"ra_%s object(s) processed":`%s object(en) verwerkt`,"ra_%s was imported":`%s is geïmporteerd`,"ra_Accept license":`Accepteer licentie`,ra_Actions:`Acties`,"ra_Add new child object to selected parent":`Voeg een nieuw kindobject toe aan het geselecteerde bovenliggende object`,"ra_Add objects tree from JSON file":`Objectenboom toevoegen vanuit JSON-bestand`,"ra_Add row":`Voeg een rij toe`,"ra_Advanced options":`Geavanceerde mogelijkheden`,"ra_All items are filtered out":`Alle items zijn uitgefilterd`,"ra_All objects":`Alle objecten`,ra_Append:`toevoegen`,"ra_Append %s entries or replace existing?":`%s ingangen toevoegen of bestaande vervangen?`,"ra_Append or replace?":`Toevoegen of vervangen?`,"ra_Are you sure?":`Weet je het zeker?`,"ra_Auto (no custom columns)":`Auto (geen aangepaste kolommen)`,"ra_Back to %s":`Terug naar %s`,"ra_Background image":`Achtergrond afbeelding`,ra_Cancel:`Annuleer`,"ra_Cannot add items with set filter":`Kan geen items toevoegen met ingestelde filter`,"ra_Cannot decode license":`Kan licentie niet decoderen`,"ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":`Kan positie niet bepalen: systeeminstellingen zijn leeg en GPS-detectie is uitgeschakeld in browser`,'ra_Cannot find "%s"':`Kan "%s" niet vinden`,'ra_Cannot read "%s"':`Kan "%s" niet lezen`,"ra_Cannot read licenses: %s":`Kan licenties niet lezen: %s`,"ra_Cannot retrieve options, as instance is offline":`Kan opties niet ophalen, omdat instantie offline is`,"ra_Cannot update attribute, because not found in the object":`Kan kenmerk niet bijwerken, omdat het niet in het object is gevonden`,"ra_Cannot upload":`Kan niet uploaden`,ra_Categories:`Categorieën`,"ra_Chained certificate":`Geketend certificaat`,"ra_Change color theme":`Kleurthema wijzigen`,"ra_Changed from":`Veranderd van`,"ra_Channel → State":`Kanaal → Staat`,"ra_Check license":`Licentie controleren`,ra_Checked:`Gecontroleerd`,ra_Clear:`Verwijderen`,"ra_Clear filter":`Filter wissen`,"ra_Clear icon":`Pictogram wissen`,"ra_Click to see in full size":`Klik om de afbeelding op volledige grootte te bekijken.`,"ra_Click to show":`Klik om te tonen`,"ra_Clone current row":`Kloon de huidige rij`,ra_Close:`Dichtbij`,"ra_Collapse all nodes":`Vouw alle knooppunten samen`,"ra_Collapse one step node":`Eén niveau samenvouwen`,ra_Commercial:`Reclame`,ra_Configure:`Configureren`,"ra_Configure visible columns":`Configureer zichtbare kolommen`,"ra_Confirm deletion of %s":`Bevestig het verwijderen van %s`,ra_Connected:`Verbonden`,ra_Continue:`Doorgaan`,ra_Copied:`Gekopieerd`,"ra_Copied %s":`"%s" gekopieerd`,"ra_Copy content":`Inhoud kopiëren`,ra_Create:`Creëer`,"ra_Create alias":`Alias maken`,"ra_Create folder":`Map aanmaken`,"ra_Create new folder in %s":`Maak een nieuwe map in %s`,ra_Crop:`Bijsnijden`,"ra_Define CRON...":`Definieer CRON...`,"ra_Define functions":`Definieer functies`,"ra_Define rooms":`Definieer kamers`,"ra_Define schedule":`Definieer schema`,"ra_Define schedule...":`Schema definiëren ...`,ra_Del:`Delete`,ra_Delete:`Verwijderen`,"ra_Delete current row":`Huidige rij verwijderen`,"ra_Deselect all":`Deselecteer alles`,"ra_Device → Channel → State":`Apparaat → Kanaal → Staat`,"ra_Disable/Enable translation":`Vertaling uitschakelen/inschakelen`,ra_Discard:`Weggooien`,ra_Disconnected:`Verbinding verbroken`,"ra_Do not ask for next 2 hours in this session":`Vraag niet om de volgende 2 uur in deze sessie`,"ra_Do not export values of states":`Exporteer geen waarden van staten`,"ra_Do not use let's encrypt":`Gebruik geen let's encrypt`,"ra_Docker is not available":`Docker is niet beschikbaar`,"ra_Docker is not installed or not running":`Docker is niet geïnstalleerd of draait niet`,"ra_Double click to reset table layout":`Dubbelklik om de tafelindeling te resetten`,"ra_Drag 'n' drop some files here, or click to select files":`Sleep enkele bestanden hierheen, of klik om bestanden te selecteren`,"ra_Drop file here":`Zet het bestand hier neer`,"ra_Drop the files here...":`Zet het bestand hier neer...`,"ra_Duplicate name":`Dubbele naam`,"ra_Edit ACL":`ACL bewerken`,"ra_Edit alias":`Alias bewerken`,"ra_Edit custom config":`Bewerk aangepaste config`,"ra_Edit full path":`Volledig pad bewerken`,"ra_Edit function":`Bewerkingsfunctie`,"ra_Edit object field":`Bewerk objectveld`,"ra_Edit role":`Rol bewerken`,"ra_Edit room":`Kamer bewerken`,"ra_Edit value":`Waarde bewerken`,"ra_Enter the code from that page here":`Voer hier de code van die pagina in`,ra_Error:`Fout`,"ra_Expand all nodes":`Vouw alle knooppunten uit`,"ra_Expand one step node":`Vouw een niveau uit`,"ra_Expand/Collapse card":`Kaart uit-/inklappen`,"ra_Export configuration section":`Sectie Exportconfiguratie`,"ra_Export data to %s file":`Exporteer gegevens naar %s bestand`,"ra_Failed to open JSON File":`JSON-bestand kan niet worden geopend`,"ra_Fallback custom certificates":`Fallback aangepaste certificaten`,"ra_File is too big. Max %sk allowed. Try use SVG.":`Bestand is te groot. Max. %sk toegestaan. Probeer SVG te gebruiken.`,ra_Filter:`Filter`,"ra_Filter and Data Actions":`Filter- en gegevensacties`,"ra_Filter files":`Bestanden filteren`,"ra_Folder name":`Naam van de map`,"ra_Folder → Channel → State":`Map → Kanaal → Staat`,"ra_Folder → Device → Channel → State":`Map → Apparaat → Kanaal → Staat`,"ra_Folder → State":`Map → Staat`,"ra_Folders always first":`Mappen altijd eerst`,ra_Friday:`Vrijdag`,"ra_From file":`Van bestand`,"ra_From text":`Van tekst`,"ra_Get %s access":`Krijg %s toegang`,"ra_Good luck":`Veel geluk`,"ra_Hide empty folders":`Verberg lege mappen`,"ra_If no file will be created in the folder, it will disappear after the browser closed":`Als er geen bestand in de map wordt gemaakt, verdwijnt het nadat de browser is gesloten`,"ra_If the button above does not work, you can authorize manually this app by visiting this url":`Als de bovenstaande knop niet werkt, kunt u deze app handmatig autoriseren door deze url te bezoeken`,"ra_Import and add configuration section":`Configuratiesectie importeren en toevoegen`,"ra_Import and replace configuration section":`Configuratiesectie importeren en vervangen`,"ra_Import data from %s file":`Importeer gegevens uit %s bestand`,"ra_Import from %s":`Importeren uit %s`,"ra_Instance %s is alive":`Instantie %s leeft`,"ra_Instance %s is not alive":`Instantie %s is niet actief`,"ra_Instance is not alive":`Instantie leeft niet`,"ra_Invalid CRON":`Ongeldige CRON`,"ra_Invalid JSON":`Ongeldige JSON`,"ra_Invalid JSON file.":`Ongeldig JSON-bestand.`,"ra_Invalid JSON format. Expected an array.":`Ongeldige JSON-indeling. Er werd een array verwacht.`,"ra_Invalid answer from server":`Ongeldig antwoord van de server`,"ra_Invalid parent folder!":`Ongeldige bovenliggende map!`,"ra_Invalid structure":`Ongeldige structuur`,"ra_JSON editor":`JSON-editor`,"ra_Last change":`Laatste wijziging`,ra_Latitude:`Breedtegraad`,"ra_License %s":`Licentie %s`,"ra_License agreement":`Licentieovereenkomst`,"ra_License does not exist":`Licentie bestaat niet`,"ra_License expired on %s":`Licentie verlopen op %s`,'ra_License for other product "%s"':`Licentie voor ander product "%s"`,"ra_License is for version %s, but required version is %s.":`Licentie is voor versie %s, maar vereiste versie is %s.`,"ra_License must be converted":`Licentie moet worden omgezet naar nieuwere versie. U kunt dit doen in uw iobroker.net-profiel.`,"ra_License not found in license manager. Do you want to read licenses from iobroker.net?":`Licentie niet gevonden in licentiebeheer. Wilt u licenties van iobroker.net bijwerken?`,"ra_Listen on all IPs":`Luister op alle IP's`,"ra_Load configuration from file":`Laad configuratie uit bestand`,ra_Logout:`Uitloggen`,ra_Longitude:`Lengtegraad`,'ra_May not trigger "updateLicenses"':`Activeert mogelijk niet "updateLicenses"`,ra_Message:`Bericht`,ra_Monday:`Maandag`,"ra_Move down":`Naar beneden verplaatsen`,"ra_Move up":`Omhoog gaan`,ra_Name:`Naam`,"ra_No data found in file":`Geen gegevens gevonden in bestand`,"ra_No one license found in license manager":`Geen enkele licentie gevonden in licentiebeheer`,"ra_No response from admin":`Geen reactie van de beheerder`,"ra_No response from the backend":`Geen reactie van de backend`,'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':`Niet-experts mogen alleen nieuwe objecten maken in "0_userdata.0" of "alias.0".`,"ra_Not a number":`Geen nummer`,"ra_OAuth Client ID":`OAuth-client-ID`,"ra_OAuth Client secret":`OAuth-clientgeheim`,ra_Objects:`Voorwerpen`,ra_Ok:`OK`,"ra_On weekdays":`Op weekdagen`,"ra_Only following structures of objects are available:":`Alleen de volgende structuren van objecten zijn beschikbaar:`,"ra_Only selected":`Alleen geselecteerd`,"ra_Owner group":`Eigenaarsgroep`,"ra_Owner user":`Eigenaar gebruiker`,"ra_Passwords are not equal!":`Wachtwoorden zijn niet gelijk!`,"ra_Place your files here or click here to open the browse dialog":`Plaats uw bestanden hier of klik hier om het bladervenster te openen`,"ra_Please allow popups in your browser for this page!":`Sta pop-ups toe in uw browser voor deze pagina!`,"ra_Please confirm":`Bevestig alstublieft`,"ra_Please create license":`Maak een licentie aan`,"ra_Please enter the license":`Voer de licentie in`,"ra_Please select file...":`Selecteer bestand...`,"ra_Please select object ID...":`Selecteer object-ID ...`,"ra_Port could be used by %s":`Poort kan worden gebruikt door %s`,"ra_Port is already used by %s":`Poort wordt al gebruikt door %s`,"ra_Press ENTER Key to add new item":`Druk op de ENTER-toets om een nieuw item toe te voegen`,"ra_Private certificate":`Privé certificaat`,ra_Product:`Product`,"ra_Public certificate":`Openbaar certificaat`,"ra_Quality code":`Kwaliteit`,"ra_Refresh tree":`Vernieuw de boom`,"ra_Reload files":`Laad bestanden opnieuw`,ra_Rename_Move_Copy:`Hernoemen/Verplaatsen/Kopiëren`,"ra_Renew %s access":`%s toegang verlengen`,ra_Repeat:`Herhaling`,ra_Replace:`Vervangen`,"ra_Request timed out":`Verzoek verlopen`,"ra_Restrict to folder":`Beperken tot map`,ra_Root:`Wortel`,ra_Saturday:`Zaterdag`,ra_Save:`Sparen`,"ra_Save and close":`Opslaan en afsluiten`,"ra_Save configuration to file":`Sla de configuratie op in een bestand`,"ra_Save objects tree as JSON file":`Sla de objectenboom op als JSON-bestand`,"ra_Select all":`Selecteer alles`,"ra_Select color":`Selecteer kleur`,"ra_Select predefined icon":`Selecteer voorgedefinieerd pictogram`,"ra_Select type of export":`Selecteer het type export`,ra_Selected:`Geselecteerd`,"ra_Selected %s object(s)":`Geselecteerde %s object(en)`,"ra_Serial number (UUID)":`Serienummer (UUID)`,'ra_Serial number (UUID) "%s" in license is for other device.':`Serienummer (UUID) "%s" in licentie is voor ander apparaat.`,"ra_Session will expire in %s seconds. Continue?":`Sessie verloopt over %s seconden. Doorgaan?`,"ra_Show all folders":`Toon alle mappen`,"ra_Show lines between rows":`Toon lijnen tussen rijen`,"ra_Show/Hide object descriptions":`Toon/verberg objectbeschrijvingen`,"ra_Show/hide filter input":`Filterinvoer weergeven/verbergen`,"ra_Some data are not stored. Discard?":`Sommige gegevens worden niet opgeslagen. Weggooien?`,ra_States:`Staten`,"ra_Successfully authorized. Token valid till %s and will be automatically renewed.":`Succesvol geautoriseerd. Token geldig tot %s en wordt automatisch verlengd.`,"ra_Successfully authorized. Token valid till %s but it can expire as the instance is not running.":`Succesvol geautoriseerd. Token geldig tot %s, maar kan verlopen omdat de instantie niet actief is.`,"ra_Suitable license not found in license manager":`Geschikte licentie niet gevonden in licentiebeheer`,ra_Sunday:`Zondag`,"ra_Suppress question for next %s minutes":`Vraag de volgende %s minuten onderdrukken`,"ra_System language":`Systeemtaal`,"ra_Take browser position":`Positie innemen vanuit de browser`,"ra_Take position from system settings":`Neem positie over van systeeminstellingen`,'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':`De experts kunnen overal objecten maken, behalve vanaf het tweede niveau (bijv. "Vis.0" of "javascript.0").`,"ra_The page you are looking for was not found":`De pagina die u zoekt is niet gevonden`,"ra_The schedule will be executed every minute. Are you sure?":`Het schema wordt elke minuut uitgevoerd. Weet u het zeker?`,"ra_The schedule will be executed every second. Are you sure?":`Het schema wordt elke seconde uitgevoerd. Weet je het zeker?`,ra_Thursday:`Donderdag`,ra_Timestamp:`Tijdstempel`,"ra_Toggle expert mode":`Schakel tussen expertmodus`,"ra_Toggle the states view":`Schakel de statusweergave in of uit`,"ra_Toggle view mode":`Schakelen tussen weergavemodus`,"ra_Too big":`Te groot`,"ra_Too small":`Te klein`,"ra_Transparent dialog":`Transparant dialoogvenster`,ra_Tuesday:`Dinsdag`,"ra_Unknown error":`Onbekende fout`,"ra_Unknown error!":`Onbekende fout!`,ra_Update:`Bijwerken`,"ra_Upload file":`Upload bestand`,"ra_Use all available let's encrypt certificates":`Gebruik alle beschikbare Let's Encrypt-certificaten`,"ra_Use iobroker.acme adapter for letsencrypt certificates":`Gebruik de iobroker.acme-adapter voor letsencrypt-certificaten`,"ra_Use system settings for position":`Gebruik systeeminstellingen voor positie`,"ra_Used system settings":`Gebruikte systeeminstellingen`,"ra_User files":`Gebruikersbestanden`,ra_ValidTill:`Geldig tot`,ra_Value:`Waarde`,ra_Version:`Versie`,"ra_View file":`Bestand bekijken`,"ra_View: %s":`Bekijk: %s`,ra_Wednesday:`Woensdag`,ra_Width:`Breedte`,"ra_YAML editor":`YAML-editor`,ra_Yes:`Ja`,"ra_You can export all objects or just the selected branch.":`U kunt alle objecten of alleen de geselecteerde tak exporteren.`,"ra_You can filter entries by entering here some text":`U kunt items filteren door hier wat tekst in te voeren`,"ra_You can use * as wildcard":`U kunt * als joker gebruiken`,ra___different__:`verschillend`,ra_aclEveryone_read_object:`Iedereen kan object lezen`,ra_aclEveryone_read_state:`Iedereen kan staat lezen`,ra_aclEveryone_write_object:`Iedereen kan object schrijven`,ra_aclEveryone_write_state:`Iedereen kan staat schrijven`,ra_aclGroup_read_object:`Groep kan object lezen`,ra_aclGroup_read_state:`Groep kan status lezen`,ra_aclGroup_write_object:`Groep kan object schrijven`,ra_aclGroup_write_state:`Groep kan staat schrijven`,ra_aclOwner_read_object:`Eigenaar kan object lezen`,ra_aclOwner_read_state:`Eigenaar kan staat lezen`,ra_aclOwner_write_object:`Eigenaar kan object schrijven`,ra_aclOwner_write_state:`Eigenaar kan staat schrijven`,ra_buttons:`Toetsen`,ra_changedFrom:`Veranderd van`,ra_close:`dichtbij`,ra_create_boolean_state:`Creëer een Booleaanse status`,ra_create_channel:`Kanaal maken`,ra_create_device:`Apparaat maken`,ra_create_number_state:`Nummerstatus maken`,ra_create_state:`Staat creëren`,ra_create_string_state:`Tekenreeksstatus maken`,ra_daysShortText:`d.`,ra_dow_Fr:`Fr`,ra_dow_Mo:`Mo`,ra_dow_Sa:`Za`,ra_dow_Su:`Zo`,ra_dow_Th:`Th`,ra_dow_Tu:`Tu`,ra_dow_We:`Wij`,ra_expertMode:`Expert modus`,ra_false:`ONWAAR`,ra_fileType_all:`Alle bestanden`,ra_fileType_audio:`Audio`,ra_fileType_code:`Code/JSON`,ra_fileType_images:`Afbeeldingen`,ra_fileType_txt:`Tekst`,ra_fileType_video:`Video`,"ra_fileType_video,":`Video`,ra_filter_customs:`Instellingen`,ra_filter_customs_without:`zonder`,ra_filter_func:`Functie`,ra_filter_id:`ID`,ra_filter_name:`Naam`,ra_filter_role:`Rol`,ra_filter_room:`Kamer`,ra_filter_type:`Type`,"ra_import data from %s file":`Importeer gegevens uit %s bestand`,ra_invalidConfig:`Ongeldige instellingen`,ra_lastChange:`Laatste wijziging`,ra_locally:`plaatselijk`,ra_month_Apr:`april`,ra_month_Aug:`aug`,ra_month_Dec:`dec`,ra_month_Feb:`februari`,ra_month_Jan:`jan`,ra_month_Jul:`jul`,ra_month_Jun:`juni`,ra_month_Mai:`Mei`,ra_month_Mar:`mrt`,ra_month_Nov:`nov`,ra_month_Oct:`Okt`,ra_month_Sep:`sept`,ra_months_Apr:`april`,ra_months_Aug:`aug`,ra_months_Dec:`dec`,ra_months_Feb:`februari`,ra_months_Jan:`jan`,ra_months_Jul:`jul`,ra_months_Jun:`juni`,ra_months_Mai:`Mei`,ra_months_Mar:`mrt`,ra_months_Nov:`nov`,ra_months_Oct:`Okt`,ra_months_Sep:`sept`,"ra_no confirm for 5 mins":`geen bevestiging gedurende 5 minuten`,ra_none:`geen`,ra_object_changed_by:`Object veranderd door`,ra_object_changed_by_user:`Object voor het laatst gewijzigd om`,ra_otherConfig:`Instellingen van andere adapter %s`,ra_qualityCode:`Kwaliteitscode`,ra_repeat:`herhalen`,ra_select_folder_hint:`Om een map te selecteren, houdt u gewoon de toets "shift" ingedrukt door op de map te klikken.`,ra_show_all:`Alles weergeven`,ra_state_changed_by:`Staat veranderd door`,ra_state_changed_from:`Object veranderd van`,ra_timestamp:`Tijdstempel`,ra_tooltip_ack:`Erkende vlag`,ra_tooltip_comment:`Opmerking`,ra_tooltip_copyState:`Kopieer de statuswaarde`,ra_tooltip_ctrlForLink:`Houd de Cltr/⌘-toets ingedrukt om de link te openen`,ra_tooltip_customConfig:`Aangepaste instellingen`,ra_tooltip_deleteObject:`Object verwijderen`,ra_tooltip_editObject:`Object bewerken`,ra_tooltip_editState:`Bewerk de statuswaarde`,ra_tooltip_expire:`Verloopt over`,ra_tooltip_from:`Van`,ra_tooltip_lc:`Laatst gewijzigd`,ra_tooltip_quality:`Kwaliteit`,ra_tooltip_ts:`Tijdstempel`,ra_tooltip_user:`Gebruiker`,ra_tooltip_value:`Waarde`,ra_true:`WAAR`,"ra_use seconds":`gebruik seconden`,ra_val:`Waarde`,"ra_via internet":`via internet`,ra_warning_every_minute:`Waarschuwing: De CRON-taak wordt elke minuut uitgevoerd gedurende de opgegeven periode!`,ra_warning_every_second:`Waarschuwing: De CRON-taak wordt elke seconde uitgevoerd gedurende de opgegeven periode!`,sc_cron:`CRON`,sc_date:`Datum`,sc_dates:`data`,sc_dow:`Dag`,sc_dows:`Dag van de week`,sc_every:`elk`,sc_everyN_dates:`elke N dagen`,sc_everyN_dow:`elke N-de dag van de week`,sc_everyN_dows:`elke N dag van de week`,sc_everyN_hours:`elke N uur`,sc_everyN_minutes:`elke N minuten`,sc_everyN_months:`elke N maanden`,sc_everyN_seconds:`elke N seconden`,sc_every_dates:`elke dag`,sc_every_dow:`elke dag van de week`,sc_every_dows:`elke dag van de week`,sc_every_hours:`elk uur`,sc_every_minutes:`elke minuut`,sc_every_months:`elke maand`,sc_every_seconds:`elke seconde`,sc_from:`Van`,sc_hours:`uren`,sc_interval:`Interval`,sc_intervalBetween:`Interval tussen`,sc_invalid_cron:`Ongeldige CRON`,sc_minutes:`Notulen`,sc_months:`maanden`,sc_once:`Een keer`,sc_period:`Periode`,sc_seconds:`seconden`,sc_simple:`Gemakkelijk`,sc_specific:`Specifieke tijd`,sc_specific_dates:`specifieke data`,sc_specific_dow:`specifieke dag(en) van de week`,sc_specific_dows:`specifieke dag van weken`,sc_specific_hours:`specifieke uren`,sc_specific_minutes:`specifieke minuten`,sc_specific_months:`specifieke maanden`,sc_specific_seconds:`specifieke seconden`,sc_time:`Tijd`,sc_to:`Naar`,sc_wizard:`tovenaar`,sch_all:`allemaal`,sch_astroDay:`Astro-dag`,sch_astroNight:`Astro-nacht`,sch_astro_dawn:`Dageraad`,sch_astro_dusk:`Schemer`,sch_astro_goldenHour:`gouden uur`,sch_astro_goldenHourEnd:`Gouden uur einde`,sch_astro_nadir:`Nadir`,sch_astro_nauticalDawn:`Nautische dageraad`,sch_astro_nauticalDusk:`Nautische schemering`,sch_astro_night:`Nacht`,sch_astro_nightEnd:`Nacht einde`,sch_astro_solarNoon:`Zonne middag`,sch_astro_sunrise:`zonsopkomst`,sch_astro_sunriseEnd:`Sunrise einde`,sch_astro_sunset:`Zonsondergang`,sch_astro_sunsetStart:`Zonsondergang start`,sch_at:`Bij`,sch_desc_atTime:`op %s`,sch_desc_everyDay:`elke dag`,sch_desc_everyHour:`elk uur`,sch_desc_everyMinute:`elke minuut`,sch_desc_everyMonth:`elke maand`,sch_desc_everyNDay:`elke %s dag`,sch_desc_everyNHours:`elke %s uur`,sch_desc_everyNMinutes:`elke %s minuten`,sch_desc_everyNMonths:`elke %s maanden`,sch_desc_everyNWeeks:`elke %s weken`,sch_desc_everyNYears:`elke %s jaar`,sch_desc_everyWeek:`elke week`,sch_desc_everyYear:`elk jaar`,sch_desc_intervalFromTo:`van %s tot %s`,sch_desc_never:`nooit`,sch_desc_onDate:`op %s van %s`,sch_desc_onDates:`op %s en %s van`,sch_desc_onEveryDate:`op elke datum van`,sch_desc_onMonth:`%s`,sch_desc_onMonths:`%s en %s`,sch_desc_onWeekday:`op %s`,sch_desc_onWeekdays:`op %s en %s`,sch_desc_onWeekends:`in het weekend`,sch_desc_onWorkdays:`op werkdagen`,sch_desc_onceInPast:`zal niet meer worden uitgevoerd, omdat start verleden tijd is`,sch_desc_once_on:`op %s`,sch_desc_validFrom:`van %s`,sch_desc_validFromTo:`Uitvoeren van tot`,sch_desc_validTo:`tot %s`,sch_every:`elk`,sch_exactTime:`Specifieke tijd`,sch_from:`van`,sch_fromTo:`Van naar`,sch_intervalTime:`Interval tijd`,sch_invert:`omkeren`,sch_no_one:`geen`,sch_on:`Aan`,sch_period:`Periode`,sch_periodDaily:`Dagelijks`,sch_periodDates:`data`,sch_periodDay:`Dag`,sch_periodEvery:`elk`,sch_periodEveryDay:`Elke dag`,sch_periodEveryMonth:`Elke maand`,sch_periodEveryWeek:`Elke week`,sch_periodEveryYear:`Elk jaar`,sch_periodHours:`uren`,sch_periodMinutes:`Notulen`,sch_periodMonth:`maand`,sch_periodMonthly:`Maandelijks`,sch_periodOnce:`Een keer`,sch_periodSpecificMonths:`Specifieke maanden`,sch_periodWeek:`Week`,sch_periodWeekdays:`Doordeweekse dagen`,sch_periodWeekend:`Weekend`,sch_periodWeekly:`Wekelijks`,sch_periodWorkdays:`werkdagen`,sch_periodYear:`Jaar`,sch_periodYearly:`jaar-`,sch_specificTime:`Specifieke tijd`,sch_time:`Tijd`,sch_to:`naar`,sch_valid:`Geldig`,sch_validFrom:`van`,sch_validTo:`naar`,sch_wholeDay:`Hele dag`,sch_yearEveryMonth:`elke maand`},fr:{"ra_%s links from aliases":`%s liens provenant d'alias`,"ra_%s object(s) processed":`%s objet(s) traité(s)`,"ra_%s was imported":`%s a été importé`,"ra_Accept license":`Accepter la licence`,ra_Actions:`Actes`,"ra_Add new child object to selected parent":`Ajouter un nouvel objet enfant au parent sélectionné`,"ra_Add objects tree from JSON file":`Ajouter une arborescence d'objets à partir d'un fichier JSON`,"ra_Add row":`Ajouter une rangée`,"ra_Advanced options":`Options avancées`,"ra_All items are filtered out":`Tous les éléments sont filtrés`,"ra_All objects":`Tous les objets`,ra_Append:`Ajouter`,"ra_Append %s entries or replace existing?":`Ajouter %s entrées ou remplacer l'existant\xA0?`,"ra_Append or replace?":`Ajouter ou remplacer\xA0?`,"ra_Are you sure?":`Êtes-vous sûr?`,"ra_Auto (no custom columns)":`Auto (pas de colonnes personnalisées)`,"ra_Back to %s":`Retour à %s`,"ra_Background image":`Image de fond`,ra_Cancel:`Annuler`,"ra_Cannot add items with set filter":`Impossible d'ajouter des éléments avec le filtre défini`,"ra_Cannot decode license":`Impossible de décoder la licence`,"ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":`Impossible de déterminer la position\xA0: les paramètres système sont vides et la détection GPS est désactivée dans le navigateur`,'ra_Cannot find "%s"':`Impossible de trouver "%s"`,'ra_Cannot read "%s"':`Impossible de lire "%s"`,"ra_Cannot read licenses: %s":`Impossible de lire les licences\xA0: %s`,"ra_Cannot retrieve options, as instance is offline":`Impossible de récupérer les options, car l'instance est hors ligne`,"ra_Cannot update attribute, because not found in the object":`Impossible de mettre à jour l'attribut, car il est introuvable dans l'objet`,"ra_Cannot upload":`Impossible de télécharger`,ra_Categories:`Catégories`,"ra_Chained certificate":`Certificat chaîné`,"ra_Change color theme":`Changer le thème de couleur`,"ra_Changed from":`Changé de`,"ra_Channel → State":`Canal → État`,"ra_Check license":`Vérifier la licence`,ra_Checked:`Vérifié`,ra_Clear:`Effacer`,"ra_Clear filter":`Effacer le filtre`,"ra_Clear icon":`Effacer l'icône`,"ra_Click to see in full size":`Cliquez pour afficher en taille réelle`,"ra_Click to show":`Cliquez pour afficher`,"ra_Clone current row":`Cloner la ligne actuelle`,ra_Close:`Fermer`,"ra_Collapse all nodes":`Réduire tous les nœuds`,"ra_Collapse one step node":`Réduire d'un niveau`,ra_Commercial:`Commercial`,ra_Configure:`Configurer`,"ra_Configure visible columns":`Configurer les colonnes visibles`,"ra_Confirm deletion of %s":`Confirmer la suppression de %s`,ra_Connected:`Lié`,ra_Continue:`Continuer`,ra_Copied:`Copié`,"ra_Copied %s":`"%s" copié`,"ra_Copy content":`Copier le contenu`,ra_Create:`Créer`,"ra_Create alias":`Créer un alias`,"ra_Create folder":`Créer le dossier`,"ra_Create new folder in %s":`Créer un nouveau dossier dans %s`,ra_Crop:`Recadrer`,"ra_Define CRON...":`Définir CRON...`,"ra_Define functions":`Définir des fonctions`,"ra_Define rooms":`Définir des pièces`,"ra_Define schedule":`Définir le calendrier`,"ra_Define schedule...":`Définir le calendrier ...`,ra_Del:`Delete`,ra_Delete:`Supprimer`,"ra_Delete current row":`Supprimer la ligne actuelle`,"ra_Deselect all":`Tout déselectionner`,"ra_Device → Channel → State":`Appareil → Canal → État`,"ra_Disable/Enable translation":`Activer/Désactiver la traduction`,ra_Discard:`Jeter`,ra_Disconnected:`Débranché`,"ra_Do not ask for next 2 hours in this session":`Ne demandez pas les 2 prochaines heures de cette session`,"ra_Do not export values of states":`Ne pas exporter les valeurs des états`,"ra_Do not use let's encrypt":`Ne pas utiliser let's encrypt`,"ra_Docker is not available":`Docker n'est pas disponible`,"ra_Docker is not installed or not running":`Docker n'est pas installé ou n'est pas en cours d'exécution`,"ra_Double click to reset table layout":`Double-cliquez pour réinitialiser la disposition du tableau`,"ra_Drag 'n' drop some files here, or click to select files":`Glissez-déposez des fichiers ici, ou cliquez pour sélectionner des fichiers`,"ra_Drop file here":`Déposer le fichier ici`,"ra_Drop the files here...":`Déposez le fichier ici...`,"ra_Duplicate name":`Nom en double`,"ra_Edit ACL":`Modifier la LCA`,"ra_Edit alias":`Modifier l'alias`,"ra_Edit custom config":`Modifier la configuration personnalisée`,"ra_Edit full path":`Modifier le chemin complet`,"ra_Edit function":`Fonction d'édition`,"ra_Edit object field":`Modifier le champ d'objet`,"ra_Edit role":`Modifier le rôle`,"ra_Edit room":`Modifier la salle`,"ra_Edit value":`Modifier la valeur`,"ra_Enter the code from that page here":`Entrez le code de cette page ici`,ra_Error:`Erreur`,"ra_Expand all nodes":`Développer tous les nœuds`,"ra_Expand one step node":`Développer un niveau`,"ra_Expand/Collapse card":`Carte Développer/Réduire`,"ra_Export configuration section":`Exporter la section de configuration`,"ra_Export data to %s file":`Exporter les données vers le fichier %s`,"ra_Failed to open JSON File":`Échec de l'ouverture du fichier JSON`,"ra_Fallback custom certificates":`Certificats personnalisés de secours`,"ra_File is too big. Max %sk allowed. Try use SVG.":`Le fichier est trop volumineux. Max %sk autorisé. Essayez d'utiliser SVG.`,ra_Filter:`Filtre`,"ra_Filter and Data Actions":`Actions sur les filtres et les données`,"ra_Filter files":`Filtrer les fichiers`,"ra_Folder name":`Nom de dossier`,"ra_Folder → Channel → State":`Dossier → Chaîne → État`,"ra_Folder → Device → Channel → State":`Dossier → Appareil → Canal → État`,"ra_Folder → State":`Dossier → État`,"ra_Folders always first":`Les dossiers toujours en premier`,ra_Friday:`Vendredi`,"ra_From file":`À partir du fichier`,"ra_From text":`À partir du texte`,"ra_Get %s access":`Obtenir l'accès %s`,"ra_Good luck":`Bonne chance`,"ra_Hide empty folders":`Masquer les dossiers vides`,"ra_If no file will be created in the folder, it will disappear after the browser closed":`Si aucun fichier ne sera créé dans le dossier, il disparaîtra après la fermeture du navigateur`,"ra_If the button above does not work, you can authorize manually this app by visiting this url":`Si le bouton ci-dessus ne fonctionne pas, vous pouvez autoriser manuellement cette application en visitant cette URL`,"ra_Import and add configuration section":`Importer et ajouter la section de configuration`,"ra_Import and replace configuration section":`Importer et remplacer la section de configuration`,"ra_Import data from %s file":`Importer des données à partir du fichier %s`,"ra_Import from %s":`Importer depuis %s`,"ra_Instance %s is alive":`L'instance %s est active`,"ra_Instance %s is not alive":`L'instance %s n'est pas active`,"ra_Instance is not alive":`L'instance n'est pas active`,"ra_Invalid CRON":`CRON invalide`,"ra_Invalid JSON":`JSON invalide`,"ra_Invalid JSON file.":`Fichier JSON invalide.`,"ra_Invalid JSON format. Expected an array.":`Format JSON invalide. Tableau attendu.`,"ra_Invalid answer from server":`Réponse invalide du serveur`,"ra_Invalid parent folder!":`Dossier parent non valide!`,"ra_Invalid structure":`Structure invalide`,"ra_JSON editor":`Éditeur JSON`,"ra_Last change":`Dernier changement`,ra_Latitude:`Latitude`,"ra_License %s":`Licence %s`,"ra_License agreement":`Accord de licence`,"ra_License does not exist":`La licence n'existe pas`,"ra_License expired on %s":`Licence expirée le %s`,'ra_License for other product "%s"':`Licence pour un autre produit "%s"`,"ra_License is for version %s, but required version is %s.":`La licence est pour la version %s, mais la version requise est %s.`,"ra_License must be converted":`La licence doit être convertie en une version plus récente. Vous pouvez le faire dans votre profil iobroker.net.`,"ra_License not found in license manager. Do you want to read licenses from iobroker.net?":`Licence introuvable dans le gestionnaire de licences. Voulez-vous mettre à jour les licences depuis iobroker.net\xA0?`,"ra_Listen on all IPs":`Écoutez sur toutes les adresses IP`,"ra_Load configuration from file":`Charger la configuration à partir du fichier`,ra_Logout:`Déconnexion`,ra_Longitude:`Longitude`,'ra_May not trigger "updateLicenses"':`Peut ne pas déclencher "updateLicences"`,ra_Message:`Message`,ra_Monday:`Lundi`,"ra_Move down":`Descendre`,"ra_Move up":`Déplacer vers le haut`,ra_Name:`Nom`,"ra_No data found in file":`Aucune donnée trouvée dans le fichier`,"ra_No one license found in license manager":`Aucune licence trouvée dans le gestionnaire de licences`,"ra_No response from admin":`Aucune réponse de l'administrateur`,"ra_No response from the backend":`Aucune réponse du backend`,'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':`Les non-experts ne peuvent créer de nouveaux objets que dans "0_userdata.0" ou "alias.0".`,"ra_Not a number":`Pas un numéro`,"ra_OAuth Client ID":`ID client OAuth`,"ra_OAuth Client secret":`Secret client OAuth`,ra_Objects:`Objets`,ra_Ok:`D'accord`,"ra_On weekdays":`En semaine`,"ra_Only following structures of objects are available:":`Seules les structures d'objets suivantes sont disponibles:`,"ra_Only selected":`Uniquement sélectionné`,"ra_Owner group":`Groupe propriétaire`,"ra_Owner user":`Utilisateur propriétaire`,"ra_Passwords are not equal!":`Les mots de passe ne sont pas égaux !`,"ra_Place your files here or click here to open the browse dialog":`Placez vos fichiers ici ou cliquez ici pour ouvrir la boîte de dialogue de navigation`,"ra_Please allow popups in your browser for this page!":`Veuillez autoriser les popups dans votre navigateur pour cette page\xA0!`,"ra_Please confirm":`Veuillez confirmer`,"ra_Please create license":`Veuillez créer une licence`,"ra_Please enter the license":`Veuillez entrer la licence`,"ra_Please select file...":`Veuillez sélectionner le fichier...`,"ra_Please select object ID...":`Veuillez sélectionner l'ID d'objet ...`,"ra_Port could be used by %s":`Le port pourrait être utilisé par %s`,"ra_Port is already used by %s":`Le port est déjà utilisé par %s`,"ra_Press ENTER Key to add new item":`Appuyez sur la touche ENTRÉE pour ajouter un nouvel élément`,"ra_Private certificate":`Certificat privé`,ra_Product:`Produit`,"ra_Public certificate":`Certificat public`,"ra_Quality code":`Qualité`,"ra_Refresh tree":`Rafraîchir l'arborescence`,"ra_Reload files":`Recharger les fichiers`,ra_Rename_Move_Copy:`Renommer/Déplacer/Copier`,"ra_Renew %s access":`Renouveler l'accès %s`,ra_Repeat:`Répéter`,ra_Replace:`Remplacer`,"ra_Request timed out":`La demande a expiré`,"ra_Restrict to folder":`Restreindre au dossier`,ra_Root:`Racine`,ra_Saturday:`Samedi`,ra_Save:`sauver`,"ra_Save and close":`Sauver et fermer`,"ra_Save configuration to file":`Enregistrer la configuration dans un fichier`,"ra_Save objects tree as JSON file":`Enregistrer l'arborescence des objets en tant que fichier JSON`,"ra_Select all":`Tout sélectionner`,"ra_Select color":`Choisissez la couleur`,"ra_Select predefined icon":`Sélectionnez l'icône prédéfinie`,"ra_Select type of export":`Sélectionnez le type d'exportation`,ra_Selected:`Choisi`,"ra_Selected %s object(s)":`Objet(s) %s sélectionné(s)`,"ra_Serial number (UUID)":`Numéro de série (UUID)`,'ra_Serial number (UUID) "%s" in license is for other device.':`Le numéro de série (UUID) "%s" dans la licence est pour un autre appareil.`,"ra_Session will expire in %s seconds. Continue?":`La session expirera dans %s secondes. Continuer\xA0?`,"ra_Show all folders":`Afficher tous les dossiers`,"ra_Show lines between rows":`Afficher les lignes entre les lignes`,"ra_Show/Hide object descriptions":`Afficher/Masquer les descriptions d'objets`,"ra_Show/hide filter input":`Afficher/masquer l'entrée de filtre`,"ra_Some data are not stored. Discard?":`Certaines données ne sont pas stockées. Jeter?`,ra_States:`États`,"ra_Successfully authorized. Token valid till %s and will be automatically renewed.":`Autorisation réussie. Jeton valide jusqu'au %s et sera automatiquement renouvelé.`,"ra_Successfully authorized. Token valid till %s but it can expire as the instance is not running.":`Autorisation réussie. Jeton valide jusqu'à %s, mais il peut expirer car l'instance n'est pas en cours d'exécution.`,"ra_Suitable license not found in license manager":`Licence appropriée introuvable dans le gestionnaire de licences`,ra_Sunday:`Dimanche`,"ra_Suppress question for next %s minutes":`Supprimer la question pour les %s prochaines minutes`,"ra_System language":`Langue du système`,"ra_Take browser position":`Prendre position depuis le navigateur`,"ra_Take position from system settings":`Prendre position à partir des paramètres système`,'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':`Les experts peuvent créer des objets partout mais à partir du deuxième niveau (par exemple "vis.0" ou "javascript.0").`,"ra_The page you are looking for was not found":`La page que vous recherchez n'a pas été trouvée`,"ra_The schedule will be executed every minute. Are you sure?":`Le planning sera exécuté toutes les minutes. Êtes-vous sûr ?`,"ra_The schedule will be executed every second. Are you sure?":`Le planning sera exécuté toutes les secondes. Êtes-vous sûr ?`,ra_Thursday:`Jeudi`,ra_Timestamp:`Horodatage`,"ra_Toggle expert mode":`Basculer en mode expert`,"ra_Toggle the states view":`Basculer la vue des états`,"ra_Toggle view mode":`Basculer le mode d'affichage`,"ra_Too big":`Trop grand`,"ra_Too small":`Trop petit`,"ra_Transparent dialog":`Dialogue transparent`,ra_Tuesday:`Mardi`,"ra_Unknown error":`Erreur inconnue`,"ra_Unknown error!":`Erreur inconnue!`,ra_Update:`Mise à jour`,"ra_Upload file":`Téléverser un fichier`,"ra_Use all available let's encrypt certificates":`Utilisez tous les certificats let's encrypt disponibles`,"ra_Use iobroker.acme adapter for letsencrypt certificates":`Utiliser l'adaptateur iobroker.acme pour les certificats Letsencrypt`,"ra_Use system settings for position":`Utiliser les paramètres système pour la position`,"ra_Used system settings":`Paramètres système utilisés`,"ra_User files":`Fichiers utilisateurs`,ra_ValidTill:`Valable jusqu'au`,ra_Value:`Valeur`,ra_Version:`Version`,"ra_View file":`Voir la fiche`,"ra_View: %s":`Affichage : %s`,ra_Wednesday:`Mercredi`,ra_Width:`Largeur`,"ra_YAML editor":`Éditeur YAML`,ra_Yes:`Oui`,"ra_You can export all objects or just the selected branch.":`Vous pouvez exporter tous les objets ou uniquement la branche sélectionnée.`,"ra_You can filter entries by entering here some text":`Vous pouvez filtrer les entrées en saisissant ici du texte`,"ra_You can use * as wildcard":`Vous pouvez utiliser * comme caractère générique`,ra___different__:`différent`,ra_aclEveryone_read_object:`Tout le monde peut lire un objet`,ra_aclEveryone_read_state:`Tout le monde peut lire l'état`,ra_aclEveryone_write_object:`Tout le monde peut écrire un objet`,ra_aclEveryone_write_state:`Tout le monde peut écrire l'état`,ra_aclGroup_read_object:`Le groupe peut lire l'objet`,ra_aclGroup_read_state:`Le groupe peut lire l'état`,ra_aclGroup_write_object:`Le groupe peut écrire un objet`,ra_aclGroup_write_state:`Le groupe peut écrire l'état`,ra_aclOwner_read_object:`Le propriétaire peut lire l'objet`,ra_aclOwner_read_state:`Le propriétaire peut lire l'état`,ra_aclOwner_write_object:`Le propriétaire peut écrire un objet`,ra_aclOwner_write_state:`Le propriétaire peut écrire l'état`,ra_buttons:`Boutons`,ra_changedFrom:`Changé de`,ra_close:`Fermer`,ra_create_boolean_state:`Créer un état booléen`,ra_create_channel:`Créer une chaîne`,ra_create_device:`Créer un appareil`,ra_create_number_state:`Créer un état de numéro`,ra_create_state:`Créer un état`,ra_create_string_state:`Créer un état de chaîne`,ra_daysShortText:`j.`,ra_dow_Fr:`Fr`,ra_dow_Mo:`Mo`,ra_dow_Sa:`Sa`,ra_dow_Su:`Su`,ra_dow_Th:`Th`,ra_dow_Tu:`Tu`,ra_dow_We:`Nous`,ra_expertMode:`Mode expert`,ra_false:`FAUX`,ra_fileType_all:`Tous les fichiers`,ra_fileType_audio:`l'audio`,ra_fileType_code:`Code/JSON`,ra_fileType_images:`Images`,ra_fileType_txt:`Texte`,ra_fileType_video:`Vidéo`,"ra_fileType_video,":`Vidéo`,ra_filter_customs:`Paramètres`,ra_filter_customs_without:`sans`,ra_filter_func:`Une fonction`,ra_filter_id:`ID`,ra_filter_name:`Prénom`,ra_filter_role:`Rôle`,ra_filter_room:`Pièce`,ra_filter_type:`Type`,"ra_import data from %s file":`Importer des données à partir du fichier %s`,ra_invalidConfig:`Paramètres invalides`,ra_lastChange:`Dernier changement`,ra_locally:`localement`,ra_month_Apr:`Avr`,ra_month_Aug:`Août`,ra_month_Dec:`Déc`,ra_month_Feb:`Fév`,ra_month_Jan:`Jan`,ra_month_Jul:`Juil`,ra_month_Jun:`Juin`,ra_month_Mai:`Mai`,ra_month_Mar:`Mar`,ra_month_Nov:`Nov`,ra_month_Oct:`Oct`,ra_month_Sep:`Sep`,ra_months_Apr:`Avr`,ra_months_Aug:`Août`,ra_months_Dec:`Déc`,ra_months_Feb:`Fév`,ra_months_Jan:`Jan`,ra_months_Jul:`Juil`,ra_months_Jun:`Juin`,ra_months_Mai:`Mai`,ra_months_Mar:`Mar`,ra_months_Nov:`Nov`,ra_months_Oct:`Oct`,ra_months_Sep:`Sep`,"ra_no confirm for 5 mins":`pas de confirmation pendant 5 minutes`,ra_none:`rien`,ra_object_changed_by:`Objet modifié par`,ra_object_changed_by_user:`Objet modifié pour la dernière fois à`,ra_otherConfig:`Paramètres d'un autre adaptateur %s`,ra_qualityCode:`Code de qualité`,ra_repeat:`répéter`,ra_select_folder_hint:`Pour sélectionner un dossier, maintenez simplement la touche "shift" enfoncée en cliquant sur le dossier.`,ra_show_all:`Tout afficher`,ra_state_changed_by:`État modifié par`,ra_state_changed_from:`Objet changé de`,ra_timestamp:`Horodatage`,ra_tooltip_ack:`Drapeau reconnu`,ra_tooltip_comment:`Commentaire`,ra_tooltip_copyState:`Copiez la valeur d'état`,ra_tooltip_ctrlForLink:`Maintenez la touche Cltr/⌘ enfoncée pour ouvrir le lien`,ra_tooltip_customConfig:`Paramètres personnalisés`,ra_tooltip_deleteObject:`Supprimer un objet`,ra_tooltip_editObject:`Modifier l'objet`,ra_tooltip_editState:`Modifier la valeur d'état`,ra_tooltip_expire:`Expire dans`,ra_tooltip_from:`De`,ra_tooltip_lc:`Dernière modification`,ra_tooltip_quality:`Qualité`,ra_tooltip_ts:`Horodatage`,ra_tooltip_user:`Utilisateur`,ra_tooltip_value:`Valeur`,ra_true:`VRAI`,"ra_use seconds":`utiliser les secondes`,ra_val:`Valeur`,"ra_via internet":`par Internet`,ra_warning_every_minute:`Attention\xA0: la tâche CRON s’exécutera toutes les minutes pendant la période spécifiée\xA0!`,ra_warning_every_second:`Attention\xA0: la tâche CRON s’exécutera toutes les secondes pendant la période spécifiée\xA0!`,sc_cron:`CRON`,sc_date:`Date`,sc_dates:`Rendez-vous`,sc_dow:`Jour`,sc_dows:`Jour de la semaine`,sc_every:`Chaque`,sc_everyN_dates:`tous les N jours`,sc_everyN_dow:`chaque Nième jour de la semaine`,sc_everyN_dows:`tous les N jours de la semaine`,sc_everyN_hours:`toutes les N heures`,sc_everyN_minutes:`toutes les N minutes`,sc_everyN_months:`tous les N mois`,sc_everyN_seconds:`toutes les N secondes`,sc_every_dates:`tous les jours`,sc_every_dow:`Chaque jour de la semaine`,sc_every_dows:`Chaque jour de la semaine`,sc_every_hours:`Toutes les heures`,sc_every_minutes:`chaque minute`,sc_every_months:`chaque mois`,sc_every_seconds:`chaque seconde`,sc_from:`De`,sc_hours:`Heures`,sc_interval:`Intervalle`,sc_intervalBetween:`Intervalle entre`,sc_invalid_cron:`CRON non valide`,sc_minutes:`Minutes`,sc_months:`mois`,sc_once:`Une fois que`,sc_period:`Période`,sc_seconds:`Secondes`,sc_simple:`Facile`,sc_specific:`Temps spécifique`,sc_specific_dates:`dates spécifiques`,sc_specific_dow:`jour(s) spécifique(s) de la semaine`,sc_specific_dows:`jour spécifique de semaines`,sc_specific_hours:`heures spécifiques`,sc_specific_minutes:`minutes spécifiques`,sc_specific_months:`mois spécifiques`,sc_specific_seconds:`secondes spécifiques`,sc_time:`Temps`,sc_to:`À`,sc_wizard:`sorcier`,sch_all:`tout`,sch_astroDay:`Journée astronomique`,sch_astroNight:`Nuit astronomique`,sch_astro_dawn:`Aube`,sch_astro_dusk:`Crépuscule`,sch_astro_goldenHour:`Heure d'or`,sch_astro_goldenHourEnd:`Fin de l'heure d'or`,sch_astro_nadir:`Nadir`,sch_astro_nauticalDawn:`Aube nautique`,sch_astro_nauticalDusk:`Crépuscule nautique`,sch_astro_night:`Nuit`,sch_astro_nightEnd:`Fin de nuit`,sch_astro_solarNoon:`Midi solaire`,sch_astro_sunrise:`lever du soleil`,sch_astro_sunriseEnd:`Fin du lever du soleil`,sch_astro_sunset:`Le coucher du soleil`,sch_astro_sunsetStart:`Coucher du soleil`,sch_at:`à`,sch_desc_atTime:`à %s`,sch_desc_everyDay:`tous les jours`,sch_desc_everyHour:`Toutes les heures`,sch_desc_everyMinute:`chaque minute`,sch_desc_everyMonth:`chaque mois`,sch_desc_everyNDay:`chaque %s jour`,sch_desc_everyNHours:`chaque %s heures`,sch_desc_everyNMinutes:`toutes les %s minutes`,sch_desc_everyNMonths:`tous les %s mois`,sch_desc_everyNWeeks:`chaque %s semaines`,sch_desc_everyNYears:`tous les %s ans`,sch_desc_everyWeek:`toutes les semaines`,sch_desc_everyYear:`chaque année`,sch_desc_intervalFromTo:`de %s à %s`,sch_desc_never:`jamais`,sch_desc_onDate:`sur %s de %s`,sch_desc_onDates:`sur %s et %s de`,sch_desc_onEveryDate:`à chaque date de`,sch_desc_onMonth:`%s`,sch_desc_onMonths:`%s et %s`,sch_desc_onWeekday:`sur %s`,sch_desc_onWeekdays:`sur %s et %s`,sch_desc_onWeekends:`les weekends`,sch_desc_onWorkdays:`les jours ouvrables`,sch_desc_onceInPast:`ne sera plus exécuté, car start est dans le passé`,sch_desc_once_on:`sur %s`,sch_desc_validFrom:`de %s`,sch_desc_validFromTo:`Exécuter de à`,sch_desc_validTo:`à %s`,sch_every:`chaque`,sch_exactTime:`Temps spécifique`,sch_from:`de`,sch_fromTo:`De à`,sch_intervalTime:`Temps d'interval`,sch_invert:`inverser`,sch_no_one:`aucun`,sch_on:`sur`,sch_period:`Période`,sch_periodDaily:`du quotidien`,sch_periodDates:`Rendez-vous`,sch_periodDay:`journée`,sch_periodEvery:`Chaque`,sch_periodEveryDay:`Tous les jours`,sch_periodEveryMonth:`Chaque mois`,sch_periodEveryWeek:`Toutes les semaines`,sch_periodEveryYear:`Chaque année`,sch_periodHours:`Heures`,sch_periodMinutes:`Minutes`,sch_periodMonth:`mois`,sch_periodMonthly:`Mensuel`,sch_periodOnce:`Une fois que`,sch_periodSpecificMonths:`Mois spécifiques`,sch_periodWeek:`La semaine`,sch_periodWeekdays:`Jours de la semaine`,sch_periodWeekend:`Weekend`,sch_periodWeekly:`Hebdomadaire`,sch_periodWorkdays:`Jours ouvrables`,sch_periodYear:`Année`,sch_periodYearly:`Annuel`,sch_specificTime:`Temps spécifique`,sch_time:`Temps`,sch_to:`à`,sch_valid:`Valide`,sch_validFrom:`de`,sch_validTo:`à`,sch_wholeDay:`Toute la journée`,sch_yearEveryMonth:`chaque mois`},it:{"ra_%s links from aliases":`%s link da alias`,"ra_%s object(s) processed":`%s oggetti elaborati`,"ra_%s was imported":`%s è stato importato`,"ra_Accept license":`Accetta licenza`,ra_Actions:`Azioni`,"ra_Add new child object to selected parent":`Aggiungi un nuovo oggetto figlio al genitore selezionato`,"ra_Add objects tree from JSON file":`Aggiungi l'albero degli oggetti dal file JSON`,"ra_Add row":`Aggiungi riga`,"ra_Advanced options":`Opzioni avanzate`,"ra_All items are filtered out":`Tutti gli elementi vengono filtrati`,"ra_All objects":`Tutti gli oggetti`,ra_Append:`Aggiungere`,"ra_Append %s entries or replace existing?":`Aggiungi %s voci o sostituisci quelle esistenti?`,"ra_Append or replace?":`Aggiungere o sostituire?`,"ra_Are you sure?":`Sei sicuro?`,"ra_Auto (no custom columns)":`Auto (nessuna colonna personalizzata)`,"ra_Back to %s":`Torna a %s`,"ra_Background image":`Immagine di sfondo`,ra_Cancel:`Annulla`,"ra_Cannot add items with set filter":`Impossibile aggiungere elementi con il filtro impostato`,"ra_Cannot decode license":`Impossibile decodificare la licenza`,"ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":`Impossibile determinare la posizione: le impostazioni di sistema sono vuote e il rilevamento GPS è disabilitato nel browser`,'ra_Cannot find "%s"':`Impossibile trovare "%s"`,'ra_Cannot read "%s"':`Impossibile leggere "%s"`,"ra_Cannot read licenses: %s":`Impossibile leggere le licenze: %s`,"ra_Cannot retrieve options, as instance is offline":`Impossibile recuperare le opzioni, poiché l'istanza è offline`,"ra_Cannot update attribute, because not found in the object":`Impossibile aggiornare l'attributo, perché non trovato nell'oggetto`,"ra_Cannot upload":`Impossibile caricare`,ra_Categories:`Categorie`,"ra_Chained certificate":`Certificato incatenato`,"ra_Change color theme":`Cambia tema colore`,"ra_Changed from":`Cambiato da`,"ra_Channel → State":`Canale → Stato`,"ra_Check license":`Controlla la licenza`,ra_Checked:`Controllato`,ra_Clear:`Elimina`,"ra_Clear filter":`Filtro pulito`,"ra_Clear icon":`Cancella icona`,"ra_Click to see in full size":`Clicca per visualizzare l'immagine a dimensioni intere`,"ra_Click to show":`Clicca per mostrare`,"ra_Clone current row":`Clona riga corrente`,ra_Close:`Vicino`,"ra_Collapse all nodes":`Comprimi tutti i nodi`,"ra_Collapse one step node":`Comprimi un livello`,ra_Commercial:`Commerciale`,ra_Configure:`Configura`,"ra_Configure visible columns":`Configura colonne visibili`,"ra_Confirm deletion of %s":`Conferma l'eliminazione di %s`,ra_Connected:`Collegato`,ra_Continue:`Continuare`,ra_Copied:`Copiato`,"ra_Copied %s":`"%s" copiato`,"ra_Copy content":`Copia contenuto`,ra_Create:`Creare`,"ra_Create alias":`Crea alias`,"ra_Create folder":`Creare una cartella`,"ra_Create new folder in %s":`Crea nuova cartella in %s`,ra_Crop:`Raccolto`,"ra_Define CRON...":`Definisci CRON...`,"ra_Define functions":`Definire le funzioni`,"ra_Define rooms":`Definisci le stanze`,"ra_Define schedule":`Definisci programma`,"ra_Define schedule...":`Definisci pianificazione ...`,ra_Del:`Delete`,ra_Delete:`Elimina`,"ra_Delete current row":`Elimina la riga corrente`,"ra_Deselect all":`Deseleziona tutto`,"ra_Device → Channel → State":`Dispositivo → Canale → Stato`,"ra_Disable/Enable translation":`Disabilita/Abilita la traduzione`,ra_Discard:`Scartare`,ra_Disconnected:`Disconnesso`,"ra_Do not ask for next 2 hours in this session":`Non chiedere per le prossime 2 ore in questa sessione`,"ra_Do not export values of states":`Non esportare i valori degli stati`,"ra_Do not use let's encrypt":`Non utilizzare crittografiamo`,"ra_Docker is not available":`Docker non è disponibile`,"ra_Docker is not installed or not running":`Docker non è installato o non è in esecuzione`,"ra_Double click to reset table layout":`Fare doppio clic per ripristinare il layout della tabella`,"ra_Drag 'n' drop some files here, or click to select files":`Trascina e rilascia alcuni file qui o fai clic per selezionare i file`,"ra_Drop file here":`Trascina il file qui`,"ra_Drop the files here...":`Trascina qui il file...`,"ra_Duplicate name":`Nome duplicato`,"ra_Edit ACL":`Modifica ACL`,"ra_Edit alias":`Modifica alias`,"ra_Edit custom config":`Modifica configurazione personalizzata`,"ra_Edit full path":`Modifica percorso completo`,"ra_Edit function":`Funzione di modifica`,"ra_Edit object field":`Modifica campo oggetto`,"ra_Edit role":`Modifica ruolo`,"ra_Edit room":`Modifica stanza`,"ra_Edit value":`Modifica valore`,"ra_Enter the code from that page here":`Inserisci qui il codice da quella pagina`,ra_Error:`Errore`,"ra_Expand all nodes":`Espandi tutti i nodi`,"ra_Expand one step node":`Espandi un livello`,"ra_Expand/Collapse card":`Espandi/Comprimi scheda`,"ra_Export configuration section":`Sezione di configurazione dell'esportazione`,"ra_Export data to %s file":`Esporta i dati nel file %s`,"ra_Failed to open JSON File":`Impossibile aprire il file JSON`,"ra_Fallback custom certificates":`Certificati personalizzati di fallback`,"ra_File is too big. Max %sk allowed. Try use SVG.":`Il file è troppo grande. Max %sk consentito. Prova a usare SVG.`,ra_Filter:`Filtro`,"ra_Filter and Data Actions":`Azioni sui filtri e sui dati`,"ra_Filter files":`Filtra i file`,"ra_Folder name":`Nome della cartella`,"ra_Folder → Channel → State":`Cartella → Canale → Stato`,"ra_Folder → Device → Channel → State":`Cartella → Dispositivo → Canale → Stato`,"ra_Folder → State":`Cartella → Stato`,"ra_Folders always first":`Le cartelle sono sempre al primo posto`,ra_Friday:`Venerdì`,"ra_From file":`Dal file`,"ra_From text":`Dal testo`,"ra_Get %s access":`Ottieni l'accesso %s`,"ra_Good luck":`Buona fortuna`,"ra_Hide empty folders":`Nascondi cartelle vuote`,"ra_If no file will be created in the folder, it will disappear after the browser closed":`Se nessun file verrà creato nella cartella, scomparirà dopo la chiusura del browser`,"ra_If the button above does not work, you can authorize manually this app by visiting this url":`Se il pulsante sopra non funziona, puoi autorizzare manualmente questa app visitando questo URL`,"ra_Import and add configuration section":`Importa e aggiungi la sezione di configurazione`,"ra_Import and replace configuration section":`Importa e sostituisci la sezione di configurazione`,"ra_Import data from %s file":`Importa i dati dal file %s`,"ra_Import from %s":`Importa da %s`,"ra_Instance %s is alive":`Il %s dell'istanza è vivo`,"ra_Instance %s is not alive":`Il TESTO dell'istanza non è vivo`,"ra_Instance is not alive":`L'istanza non è viva`,"ra_Invalid CRON":`CRON non valido`,"ra_Invalid JSON":`JSON non valido`,"ra_Invalid JSON file.":`File JSON non valido.`,"ra_Invalid JSON format. Expected an array.":`Formato JSON non valido. È previsto un array.`,"ra_Invalid answer from server":`Risposta non valida dal server`,"ra_Invalid parent folder!":`Cartella principale non valida!`,"ra_Invalid structure":`Struttura non valida`,"ra_JSON editor":`Editor JSON`,"ra_Last change":`Ultima modifica`,ra_Latitude:`Latitudine`,"ra_License %s":`Licenza %s`,"ra_License agreement":`Contratto di licenza`,"ra_License does not exist":`La licenza non esiste`,"ra_License expired on %s":`Licenza scaduta il %s`,'ra_License for other product "%s"':`Licenza per altro prodotto "%s"`,"ra_License is for version %s, but required version is %s.":`La licenza è per la versione %s, ma la versione richiesta è %s.`,"ra_License must be converted":`La licenza deve essere convertita in una versione più recente. Puoi farlo nel tuo profilo iobroker.net.`,"ra_License not found in license manager. Do you want to read licenses from iobroker.net?":`Licenza non trovata nel gestore delle licenze. Vuoi aggiornare le licenze da iobroker.net?`,"ra_Listen on all IPs":`Ascolta su tutti gli IP`,"ra_Load configuration from file":`Carica la configurazione dal file`,ra_Logout:`Esci`,ra_Longitude:`Longitudine`,'ra_May not trigger "updateLicenses"':`Potrebbe non attivare "updateLicenses"`,ra_Message:`Messaggio`,ra_Monday:`Lunedi`,"ra_Move down":`Abbassati`,"ra_Move up":`Andare avanti`,ra_Name:`Nome`,"ra_No data found in file":`Nessun dato trovato nel file`,"ra_No one license found in license manager":`Nessuna licenza trovata nel gestore delle licenze`,"ra_No response from admin":`Nessuna risposta dall'amministratore`,"ra_No response from the backend":`Nessuna risposta dal backend`,'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':`I non esperti possono creare nuovi oggetti solo in "0_userdata.0" o "alias.0".`,"ra_Not a number":`Non un numero`,"ra_OAuth Client ID":`ID client OAuth`,"ra_OAuth Client secret":`Segreto del client OAuth`,ra_Objects:`Oggetti`,ra_Ok:`Ok`,"ra_On weekdays":`Nei giorni della settimana`,"ra_Only following structures of objects are available:":`Sono disponibili solo le seguenti strutture di oggetti:`,"ra_Only selected":`Solo selezionato`,"ra_Owner group":`Gruppo di proprietari`,"ra_Owner user":`Utente proprietario`,"ra_Passwords are not equal!":`Le password non sono uguali!`,"ra_Place your files here or click here to open the browse dialog":`Posiziona i file qui o fai clic qui per aprire la finestra di dialogo Sfoglia`,"ra_Please allow popups in your browser for this page!":`Si prega di abilitare i popup nel browser per questa pagina!`,"ra_Please confirm":`Si prega di confermare`,"ra_Please create license":`Si prega di creare la licenza`,"ra_Please enter the license":`Inserisci la licenza`,"ra_Please select file...":`Si prega di selezionare il file...`,"ra_Please select object ID...":`Seleziona l'ID oggetto ...`,"ra_Port could be used by %s":`La porta potrebbe essere utilizzata da %s`,"ra_Port is already used by %s":`La porta è già utilizzata da %s`,"ra_Press ENTER Key to add new item":`Premere il tasto INVIO per aggiungere un nuovo elemento`,"ra_Private certificate":`Certificato privato`,ra_Product:`Prodotto`,"ra_Public certificate":`Certificato pubblico`,"ra_Quality code":`Qualità`,"ra_Refresh tree":`Aggiorna l'albero`,"ra_Reload files":`Ricarica i file`,ra_Rename_Move_Copy:`Rinomina/Sposta/Copia`,"ra_Renew %s access":`Rinnova l'accesso %s`,ra_Repeat:`Ripetere`,ra_Replace:`Sostituire`,"ra_Request timed out":`Tempo scaduto per la richiesta`,"ra_Restrict to folder":`Limita alla cartella`,ra_Root:`Radice`,ra_Saturday:`Sabato`,ra_Save:`Salva`,"ra_Save and close":`Salva e chiudi`,"ra_Save configuration to file":`Salva la configurazione su file`,"ra_Save objects tree as JSON file":`Salva l'albero degli oggetti come file JSON`,"ra_Select all":`Seleziona tutto`,"ra_Select color":`Seleziona il colore`,"ra_Select predefined icon":`Seleziona l'icona predefinita`,"ra_Select type of export":`Seleziona il tipo di esportazione`,ra_Selected:`Selezionato`,"ra_Selected %s object(s)":`%s oggetto/i selezionato/i`,"ra_Serial number (UUID)":`Numero di serie (UUID)`,'ra_Serial number (UUID) "%s" in license is for other device.':`Il numero di serie (UUID) "%s" nella licenza è per un altro dispositivo.`,"ra_Session will expire in %s seconds. Continue?":`La sessione scadrà tra %s secondi. Continuare?`,"ra_Show all folders":`Mostra tutte le cartelle`,"ra_Show lines between rows":`Mostra linee tra le righe`,"ra_Show/Hide object descriptions":`Mostra/Nascondi le descrizioni degli oggetti`,"ra_Show/hide filter input":`Mostra/nascondi input filtro`,"ra_Some data are not stored. Discard?":`Alcuni dati non vengono memorizzati. Scartare?`,ra_States:`stati`,"ra_Successfully authorized. Token valid till %s and will be automatically renewed.":`Autorizzazione completata. Il token è valido fino al %s e verrà rinnovato automaticamente.`,"ra_Successfully authorized. Token valid till %s but it can expire as the instance is not running.":`Autorizzazione completata. Il token è valido fino al %s, ma potrebbe scadere perché l'istanza non è in esecuzione.`,"ra_Suitable license not found in license manager":`Licenza adatta non trovata nel gestore delle licenze`,ra_Sunday:`Domenica`,"ra_Suppress question for next %s minutes":`Sopprimi la domanda per i prossimi %s minuti`,"ra_System language":`Linguaggio di sistema`,"ra_Take browser position":`Prendi posizione dal browser`,"ra_Take position from system settings":`Prendi posizione dalle impostazioni di sistema`,'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':`Gli esperti possono creare oggetti ovunque ma dal secondo livello (es. "Vis.0" o "javascript.0").`,"ra_The page you are looking for was not found":`La pagina che stai cercando non è stata trovata`,"ra_The schedule will be executed every minute. Are you sure?":`La pianificazione verrà eseguita ogni minuto. Sei sicuro?`,"ra_The schedule will be executed every second. Are you sure?":`La pianificazione verrà eseguita ogni secondo. Sei sicuro?`,ra_Thursday:`Giovedì`,ra_Timestamp:`Timestamp`,"ra_Toggle expert mode":`Attiva / disattiva la modalità esperto`,"ra_Toggle the states view":`Attiva o disattiva la visualizzazione degli stati`,"ra_Toggle view mode":`Attiva / disattiva la modalità di visualizzazione`,"ra_Too big":`Troppo grande`,"ra_Too small":`Troppo piccolo`,"ra_Transparent dialog":`Finestra di dialogo trasparente`,ra_Tuesday:`Martedì`,"ra_Unknown error":`Errore sconosciuto`,"ra_Unknown error!":`Errore sconosciuto!`,ra_Update:`Aggiornare`,"ra_Upload file":`Caricare un file`,"ra_Use all available let's encrypt certificates":`Usa tutti i certificati Let's Encrypt disponibili`,"ra_Use iobroker.acme adapter for letsencrypt certificates":`Utilizzare l'adattatore iobroker.acme per i certificati letsencrypt`,"ra_Use system settings for position":`Usa le impostazioni di sistema per la posizione`,"ra_Used system settings":`Impostazioni di sistema utilizzate`,"ra_User files":`File utente`,ra_ValidTill:`Valido fino a`,ra_Value:`Valore`,ra_Version:`Versione`,"ra_View file":`Vedi il file`,"ra_View: %s":`Visualizza: %s`,ra_Wednesday:`Mercoledì`,ra_Width:`Larghezza`,"ra_YAML editor":`Editor YAML`,ra_Yes:`SÌ`,"ra_You can export all objects or just the selected branch.":`Puoi esportare tutti gli oggetti o solo il ramo selezionato.`,"ra_You can filter entries by entering here some text":`Puoi filtrare le voci inserendo qui del testo`,"ra_You can use * as wildcard":`Puoi usare * come carattere jolly`,ra___different__:`diverso`,ra_aclEveryone_read_object:`Tutti possono leggere gli oggetti`,ra_aclEveryone_read_state:`Tutti possono leggere lo stato`,ra_aclEveryone_write_object:`Tutti possono scrivere oggetti`,ra_aclEveryone_write_state:`Tutti possono scrivere stato`,ra_aclGroup_read_object:`Il gruppo può leggere l'oggetto`,ra_aclGroup_read_state:`Il gruppo può leggere lo stato`,ra_aclGroup_write_object:`Il gruppo può scrivere l'oggetto`,ra_aclGroup_write_state:`Il gruppo può scrivere lo stato`,ra_aclOwner_read_object:`Il proprietario può leggere l'oggetto`,ra_aclOwner_read_state:`Il proprietario può leggere lo stato`,ra_aclOwner_write_object:`Il proprietario può scrivere l'oggetto`,ra_aclOwner_write_state:`Il proprietario può scrivere lo stato`,ra_buttons:`Bottoni`,ra_changedFrom:`Cambiato da`,ra_close:`vicino`,ra_create_boolean_state:`Crea uno stato booleano`,ra_create_channel:`Crea canale`,ra_create_device:`Crea dispositivo`,ra_create_number_state:`Crea lo stato del numero`,ra_create_state:`Crea stato`,ra_create_string_state:`Crea lo stato della stringa`,ra_daysShortText:`g.`,ra_dow_Fr:`fr`,ra_dow_Mo:`momento`,ra_dow_Sa:`Sa`,ra_dow_Su:`su`,ra_dow_Th:`th`,ra_dow_Tu:`Tu`,ra_dow_We:`Noi`,ra_expertMode:`Modalità esperto`,ra_false:`FALSO`,ra_fileType_all:`Tutti i files`,ra_fileType_audio:`Audio`,ra_fileType_code:`Codice/JSON`,ra_fileType_images:`immagini`,ra_fileType_txt:`Testo`,ra_fileType_video:`video`,"ra_fileType_video,":`video`,ra_filter_customs:`impostazioni`,ra_filter_customs_without:`senza`,ra_filter_func:`Funzione`,ra_filter_id:`ID`,ra_filter_name:`Nome`,ra_filter_role:`Ruolo`,ra_filter_room:`Camera`,ra_filter_type:`genere`,"ra_import data from %s file":`Importa dati dal file %s`,ra_invalidConfig:`Impostazioni non valide`,ra_lastChange:`Ultima modifica`,ra_locally:`localmente`,ra_month_Apr:`apr`,ra_month_Aug:`agosto`,ra_month_Dec:`Dic`,ra_month_Feb:`febbraio`,ra_month_Jan:`gen`,ra_month_Jul:`lug`,ra_month_Jun:`giu`,ra_month_Mai:`Mai`,ra_month_Mar:`marzo`,ra_month_Nov:`nov`,ra_month_Oct:`ottobre`,ra_month_Sep:`Sett`,ra_months_Apr:`apr`,ra_months_Aug:`agosto`,ra_months_Dec:`Dic`,ra_months_Feb:`febbraio`,ra_months_Jan:`gen`,ra_months_Jul:`lug`,ra_months_Jun:`giu`,ra_months_Mai:`Mai`,ra_months_Mar:`marzo`,ra_months_Nov:`nov`,ra_months_Oct:`ottobre`,ra_months_Sep:`Sett`,"ra_no confirm for 5 mins":`nessuna conferma per 5 minuti`,ra_none:`nessuna`,ra_object_changed_by:`Oggetto modificato da`,ra_object_changed_by_user:`L'oggetto è stato modificato l'ultima volta alle`,ra_otherConfig:`Impostazioni dall'altro adattatore %s`,ra_qualityCode:`Codice di qualità`,ra_repeat:`ripetere`,ra_select_folder_hint:`Per selezionare la cartella, basta tenere premuto il tasto "shift" facendo clic sulla cartella.`,ra_show_all:`Mostra tutto`,ra_state_changed_by:`Stato cambiato da`,ra_state_changed_from:`Oggetto cambiato da`,ra_timestamp:`Timestamp`,ra_tooltip_ack:`Bandiera riconosciuta`,ra_tooltip_comment:`Commento`,ra_tooltip_copyState:`Copia il valore dello stato`,ra_tooltip_ctrlForLink:`Tieni premuto il tasto Cltr/⌘ per aprire il collegamento`,ra_tooltip_customConfig:`Impostazioni personalizzate`,ra_tooltip_deleteObject:`Elimina oggetto`,ra_tooltip_editObject:`Modifica oggetto`,ra_tooltip_editState:`Modifica il valore dello stato`,ra_tooltip_expire:`Scade tra`,ra_tooltip_from:`A partire dal`,ra_tooltip_lc:`Ultima modifica`,ra_tooltip_quality:`Qualità`,ra_tooltip_ts:`Data e ora`,ra_tooltip_user:`Utente`,ra_tooltip_value:`Valore`,ra_true:`VERO`,"ra_use seconds":`usa i secondi`,ra_val:`Valore`,"ra_via internet":`attraverso internet`,ra_warning_every_minute:`Attenzione: il processo CRON verrà eseguito ogni minuto durante il periodo specificato!`,ra_warning_every_second:`Attenzione: il processo CRON verrà eseguito ogni secondo durante il periodo specificato!`,sc_cron:`CRON`,sc_date:`Data`,sc_dates:`Date`,sc_dow:`Giorno`,sc_dows:`Giorno della settimana`,sc_every:`Ogni`,sc_everyN_dates:`ogni N giorni`,sc_everyN_dow:`ogni Nesimo giorno della settimana`,sc_everyN_dows:`ogni N giorno della settimana`,sc_everyN_hours:`ogni N ore`,sc_everyN_minutes:`ogni N minuti`,sc_everyN_months:`ogni N mesi`,sc_everyN_seconds:`ogni N secondi`,sc_every_dates:`ogni giorno`,sc_every_dow:`Tutti i giorni della settimana`,sc_every_dows:`Tutti i giorni della settimana`,sc_every_hours:`ogni ora`,sc_every_minutes:`ogni minuto`,sc_every_months:`ogni mese`,sc_every_seconds:`ogni secondo`,sc_from:`A partire dal`,sc_hours:`Ore`,sc_interval:`Intervallo`,sc_intervalBetween:`Intervallo tra`,sc_invalid_cron:`CRON non valido`,sc_minutes:`Minuti`,sc_months:`mesi`,sc_once:`Una volta`,sc_period:`Periodo`,sc_seconds:`secondi`,sc_simple:`Semplice`,sc_specific:`Orario preciso`,sc_specific_dates:`date specifiche`,sc_specific_dow:`giorno/i specifico/i della settimana`,sc_specific_dows:`giorno specifico delle settimane`,sc_specific_hours:`orari specifici`,sc_specific_minutes:`minuti specifici`,sc_specific_months:`mesi specifici`,sc_specific_seconds:`secondi specifici`,sc_time:`Tempo`,sc_to:`Per`,sc_wizard:`procedura guidata`,sch_all:`tutti`,sch_astroDay:`Astro day`,sch_astroNight:`Astro night`,sch_astro_dawn:`Alba`,sch_astro_dusk:`Crepuscolo`,sch_astro_goldenHour:`Ora d'oro`,sch_astro_goldenHourEnd:`Fine dell'ora d'oro`,sch_astro_nadir:`Nadir`,sch_astro_nauticalDawn:`Alba nautica`,sch_astro_nauticalDusk:`Crepuscolo nautico`,sch_astro_night:`Notte`,sch_astro_nightEnd:`Fine della notte`,sch_astro_solarNoon:`Mezzogiorno solare`,sch_astro_sunrise:`Alba`,sch_astro_sunriseEnd:`Fine dell'alba`,sch_astro_sunset:`Tramonto`,sch_astro_sunsetStart:`Inizio del tramonto`,sch_at:`a`,sch_desc_atTime:`a %s`,sch_desc_everyDay:`ogni giorno`,sch_desc_everyHour:`ogni ora`,sch_desc_everyMinute:`ogni minuto`,sch_desc_everyMonth:`ogni mese`,sch_desc_everyNDay:`ogni %s giorno`,sch_desc_everyNHours:`ogni %s ore`,sch_desc_everyNMinutes:`ogni %s minuti`,sch_desc_everyNMonths:`ogni %s mesi`,sch_desc_everyNWeeks:`ogni %s settimane`,sch_desc_everyNYears:`ogni %s anni`,sch_desc_everyWeek:`ogni settimana`,sch_desc_everyYear:`ogni anno`,sch_desc_intervalFromTo:`da %s a %s`,sch_desc_never:`mai`,sch_desc_onDate:`su %s di %s`,sch_desc_onDates:`su %s e %s di`,sch_desc_onEveryDate:`in ogni data di`,sch_desc_onMonth:`%s`,sch_desc_onMonths:`%s e %s`,sch_desc_onWeekday:`su %s`,sch_desc_onWeekdays:`su %s e %s`,sch_desc_onWeekends:`nei finesettimana`,sch_desc_onWorkdays:`nei giorni lavorativi`,sch_desc_onceInPast:`non verrà più eseguito, perché start è nel passato`,sch_desc_once_on:`su %s`,sch_desc_validFrom:`da %s`,sch_desc_validFromTo:`Eseguire da a`,sch_desc_validTo:`a %s`,sch_every:`ogni`,sch_exactTime:`Orario preciso`,sch_from:`a partire dal`,sch_fromTo:`Da A`,sch_intervalTime:`Intervallo di tempo`,sch_invert:`invertire`,sch_no_one:`nessuna`,sch_on:`sopra`,sch_period:`Periodo`,sch_periodDaily:`Quotidiano`,sch_periodDates:`Date`,sch_periodDay:`Giorno`,sch_periodEvery:`Ogni`,sch_periodEveryDay:`Ogni giorno`,sch_periodEveryMonth:`Ogni mese`,sch_periodEveryWeek:`Ogni settimana`,sch_periodEveryYear:`Ogni anno`,sch_periodHours:`Ore`,sch_periodMinutes:`Minuti`,sch_periodMonth:`mese`,sch_periodMonthly:`Mensile`,sch_periodOnce:`Una volta`,sch_periodSpecificMonths:`Mesi specifici`,sch_periodWeek:`Settimana`,sch_periodWeekdays:`Giorni della settimana`,sch_periodWeekend:`Fine settimana`,sch_periodWeekly:`settimanalmente`,sch_periodWorkdays:`giorni feriali`,sch_periodYear:`Anno`,sch_periodYearly:`Annuale`,sch_specificTime:`Orario preciso`,sch_time:`Tempo`,sch_to:`per`,sch_valid:`Valido`,sch_validFrom:`a partire dal`,sch_validTo:`per`,sch_wholeDay:`Giorno intero`,sch_yearEveryMonth:`ogni mese`},es:{"ra_%s links from aliases":`%s enlaces de alias`,"ra_%s object(s) processed":`%s objeto(s) procesados`,"ra_%s was imported":`%s fue importado`,"ra_Accept license":`Aceptar licencia`,ra_Actions:`Comportamiento`,"ra_Add new child object to selected parent":`Agregar nuevo objeto hijo al padre seleccionado`,"ra_Add objects tree from JSON file":`Agregar árbol de objetos desde el archivo JSON`,"ra_Add row":`Añadir fila`,"ra_Advanced options":`Opciones avanzadas`,"ra_All items are filtered out":`Todos los elementos se filtran`,"ra_All objects":`Todos los objetos`,ra_Append:`Adjuntar`,"ra_Append %s entries or replace existing?":`¿Agregar %s entradas o reemplazar las existentes?`,"ra_Append or replace?":`¿Agregar o reemplazar?`,"ra_Are you sure?":`¿Estás seguro?`,"ra_Auto (no custom columns)":`Automático (sin columnas personalizadas)`,"ra_Back to %s":`Volver a %s`,"ra_Background image":`Imagen de fondo`,ra_Cancel:`Cancelar`,"ra_Cannot add items with set filter":`No se pueden agregar elementos con el filtro establecido`,"ra_Cannot decode license":`No se puede decodificar la licencia`,"ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":`No se puede determinar la posición: la configuración del sistema está vacía y la detección de GPS está deshabilitada en el navegador`,'ra_Cannot find "%s"':`No se puede encontrar "%s"`,'ra_Cannot read "%s"':`No se puede leer "%s"`,"ra_Cannot read licenses: %s":`No se pueden leer licencias: %s`,"ra_Cannot retrieve options, as instance is offline":`No se pueden recuperar las opciones, ya que la instancia está fuera de línea`,"ra_Cannot update attribute, because not found in the object":`No se puede actualizar el atributo porque no se encuentra en el objeto`,"ra_Cannot upload":`no se puede cargar`,ra_Categories:`Categorías`,"ra_Chained certificate":`certificado encadenado`,"ra_Change color theme":`Cambiar tema de color`,"ra_Changed from":`Cambiaron desde`,"ra_Channel → State":`Canal → Estado`,"ra_Check license":`Verificar licencia`,ra_Checked:`Comprobado`,ra_Clear:`Borrar`,"ra_Clear filter":`Filtro claro`,"ra_Clear icon":`Icono claro`,"ra_Click to see in full size":`Haz clic para ver en tamaño completo.`,"ra_Click to show":`Haga clic para mostrar`,"ra_Clone current row":`Clonar fila actual`,ra_Close:`Cerca`,"ra_Collapse all nodes":`Contraer todos los nodos`,"ra_Collapse one step node":`Contraer un nivel`,ra_Commercial:`Comercial`,ra_Configure:`Configurar`,"ra_Configure visible columns":`Configurar columnas visibles`,"ra_Confirm deletion of %s":`Confirmar la eliminación de %s`,ra_Connected:`Conectado`,ra_Continue:`Continuar`,ra_Copied:`Copiado`,"ra_Copied %s":`Copiado "%s"`,"ra_Copy content":`Copiar contenido`,ra_Create:`Crear`,"ra_Create alias":`Crear alias`,"ra_Create folder":`Crear carpeta`,"ra_Create new folder in %s":`Crear nueva carpeta en %s`,ra_Crop:`Cultivo`,"ra_Define CRON...":`Definir CRON...`,"ra_Define functions":`Definir funciones`,"ra_Define rooms":`Definir habitaciones`,"ra_Define schedule":`Definir horario`,"ra_Define schedule...":`Definir horario ...`,ra_Del:`Delete`,ra_Delete:`Eliminar`,"ra_Delete current row":`Eliminar fila actual`,"ra_Deselect all":`Deselecciona todo`,"ra_Device → Channel → State":`Dispositivo → Canal → Estado`,"ra_Disable/Enable translation":`Deshabilitar/Habilitar traducción`,ra_Discard:`Desechar`,ra_Disconnected:`Desconectado`,"ra_Do not ask for next 2 hours in this session":`No preguntes por las siguientes 2 horas en esta sesión.`,"ra_Do not export values of states":`No exportar valores de estados.`,"ra_Do not use let's encrypt":`No use vamos a cifrar`,"ra_Docker is not available":`Docker no está disponible`,"ra_Docker is not installed or not running":`Docker no está instalado o no se está ejecutando`,"ra_Double click to reset table layout":`Haga doble clic para restablecer el diseño de la tabla`,"ra_Drag 'n' drop some files here, or click to select files":`Arrastre y suelte algunos archivos aquí, o haga clic para seleccionar archivos`,"ra_Drop file here":`Suelta el archivo aquí`,"ra_Drop the files here...":`Suelta el archivo aquí ...`,"ra_Duplicate name":`Nombre duplicado`,"ra_Edit ACL":`Editar LCA`,"ra_Edit alias":`Editar alias`,"ra_Edit custom config":`Editar configuración personalizada`,"ra_Edit full path":`Editar ruta completa`,"ra_Edit function":`Función de edición`,"ra_Edit object field":`Editar campo de objeto`,"ra_Edit role":`Editar rol`,"ra_Edit room":`Cuarto de edición`,"ra_Edit value":`Editar valor`,"ra_Enter the code from that page here":`Introduzca el código de esa página aquí`,ra_Error:`Error`,"ra_Expand all nodes":`Expandir todos los nodos`,"ra_Expand one step node":`Expandir un nivel`,"ra_Expand/Collapse card":`Expandir/Contraer tarjeta`,"ra_Export configuration section":`Exportar sección de configuración`,"ra_Export data to %s file":`Exportar datos al archivo %s`,"ra_Failed to open JSON File":`No se pudo abrir el archivo JSON`,"ra_Fallback custom certificates":`Certificados personalizados alternativos`,"ra_File is too big. Max %sk allowed. Try use SVG.":`El archivo es demasiado grande. Máximo de %sk permitido. Intenta usar SVG.`,ra_Filter:`Filtrar`,"ra_Filter and Data Actions":`Acciones de filtrado y datos`,"ra_Filter files":`Filtrar archivos`,"ra_Folder name":`Nombre de la carpeta`,"ra_Folder → Channel → State":`Carpeta → Canal → Estado`,"ra_Folder → Device → Channel → State":`Carpeta → Dispositivo → Canal → Estado`,"ra_Folder → State":`Carpeta → Estado`,"ra_Folders always first":`Carpetas siempre primero`,ra_Friday:`Viernes`,"ra_From file":`Desde archivo`,"ra_From text":`Del texto`,"ra_Get %s access":`Obtener %s acceso`,"ra_Good luck":`Buena suerte`,"ra_Hide empty folders":`Ocultar carpetas vacías`,"ra_If no file will be created in the folder, it will disappear after the browser closed":`Si no se creará ningún archivo en la carpeta, desaparecerá después de que se cierre el navegador.`,"ra_If the button above does not work, you can authorize manually this app by visiting this url":`Si el botón de arriba no funciona, puedes autorizar manualmente esta aplicación visitando esta URL`,"ra_Import and add configuration section":`Importar y agregar sección de configuración`,"ra_Import and replace configuration section":`Importar y reemplazar sección de configuración`,"ra_Import data from %s file":`Importar datos del archivo %s`,"ra_Import from %s":`Importar desde %s`,"ra_Instance %s is alive":`Instancia %s está vivo`,"ra_Instance %s is not alive":`Instancia %s no está vivo`,"ra_Instance is not alive":`La instancia no está viva`,"ra_Invalid CRON":`CRON no válido`,"ra_Invalid JSON":`JSON no válido`,"ra_Invalid JSON file.":`Archivo JSON inválido.`,"ra_Invalid JSON format. Expected an array.":`Formato JSON inválido. Se esperaba un array.`,"ra_Invalid answer from server":`Respuesta inválida del servidor`,"ra_Invalid parent folder!":`Carpeta principal no válida.`,"ra_Invalid structure":`Estructura inválida`,"ra_JSON editor":`editor JSON`,"ra_Last change":`Ultimo cambio`,ra_Latitude:`Latitud`,"ra_License %s":`Licencia %s`,"ra_License agreement":`Acuerdo de licencia`,"ra_License does not exist":`La licencia no existe`,"ra_License expired on %s":`La licencia venció el %s`,'ra_License for other product "%s"':`Licencia para otro producto "%s"`,"ra_License is for version %s, but required version is %s.":`La licencia es para la versión %s, pero la versión requerida es %s.`,"ra_License must be converted":`La licencia debe convertirse a una versión más reciente. Puedes hacerlo en tu perfil de iobroker.net.`,"ra_License not found in license manager. Do you want to read licenses from iobroker.net?":`Licencia no encontrada en el administrador de licencias. ¿Quieres actualizar las licencias de iobroker.net?`,"ra_Listen on all IPs":`Escuche en todas las IP`,"ra_Load configuration from file":`Cargar configuración desde archivo`,ra_Logout:`Cerrar sesión`,ra_Longitude:`Longitud`,'ra_May not trigger "updateLicenses"':`No puede activar "updateLicenses"`,ra_Message:`Mensaje`,ra_Monday:`Lunes`,"ra_Move down":`Mover hacia abajo`,"ra_Move up":`Ascender`,ra_Name:`Nombre`,"ra_No data found in file":`No se encontraron datos en el archivo`,"ra_No one license found in license manager":`No se encontró ninguna licencia en el administrador de licencias`,"ra_No response from admin":`No hay respuesta del administrador`,"ra_No response from the backend":`No hay respuesta del backend`,'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':`Los no expertos pueden crear nuevos objetos solo en "0_userdata.0" o "alias.0".`,"ra_Not a number":`No un número`,"ra_OAuth Client ID":`ID de cliente OAuth`,"ra_OAuth Client secret":`Secreto de cliente OAuth`,ra_Objects:`Objetos`,ra_Ok:`Okay`,"ra_On weekdays":`De lunes a viernes`,"ra_Only following structures of objects are available:":`Solo están disponibles las siguientes estructuras de objetos:`,"ra_Only selected":`Solo seleccionados`,"ra_Owner group":`Grupo propietario`,"ra_Owner user":`Usuario propietario`,"ra_Passwords are not equal!":`¡Las contraseñas no son iguales!`,"ra_Place your files here or click here to open the browse dialog":`Coloque sus archivos aquí o haga clic aquí para abrir el cuadro de diálogo de exploración`,"ra_Please allow popups in your browser for this page!":`¡Permita ventanas emergentes en su navegador para esta página!`,"ra_Please confirm":`Por favor confirmar`,"ra_Please create license":`Por favor cree una licencia`,"ra_Please enter the license":`Por favor ingrese la licencia`,"ra_Please select file...":`Seleccione el archivo...`,"ra_Please select object ID...":`Por favor seleccione ID de objeto ...`,"ra_Port could be used by %s":`El puerto podría ser utilizado por %s`,"ra_Port is already used by %s":`El puerto ya está en uso por %s`,"ra_Press ENTER Key to add new item":`Presione la tecla ENTER para agregar un nuevo elemento`,"ra_Private certificate":`certificado privado`,ra_Product:`Producto`,"ra_Public certificate":`Certificado público`,"ra_Quality code":`Calidad`,"ra_Refresh tree":`Actualizar árbol`,"ra_Reload files":`Recargar archivos`,ra_Rename_Move_Copy:`Cambiar nombre/Mover/Copiar`,"ra_Renew %s access":`Renovar el acceso a %s`,ra_Repeat:`Repetir`,ra_Replace:`Reemplazar`,"ra_Request timed out":`Tiempo de espera agotado`,"ra_Restrict to folder":`Restringir a carpeta`,ra_Root:`Raíz`,ra_Saturday:`Sábado`,ra_Save:`Salvar`,"ra_Save and close":`Guardar y cerrar`,"ra_Save configuration to file":`Guardar configuración en archivo`,"ra_Save objects tree as JSON file":`Guardar el árbol de objetos como archivo JSON`,"ra_Select all":`Seleccionar todo`,"ra_Select color":`Seleccionar el color`,"ra_Select predefined icon":`Seleccionar icono predefinido`,"ra_Select type of export":`Seleccione tipo de exportación`,ra_Selected:`Seleccionado`,"ra_Selected %s object(s)":`%s objetos seleccionados`,"ra_Serial number (UUID)":`Número de serie (UUID)`,'ra_Serial number (UUID) "%s" in license is for other device.':`El número de serie (UUID) "%s" en la licencia es para otro dispositivo.`,"ra_Session will expire in %s seconds. Continue?":`La sesión expirará en %s segundos. ¿Continuar?`,"ra_Show all folders":`Mostrar todas las carpetas`,"ra_Show lines between rows":`Mostrar líneas entre filas`,"ra_Show/Hide object descriptions":`Mostrar/ocultar descripciones de objetos`,"ra_Show/hide filter input":`Mostrar/ocultar entrada de filtro`,"ra_Some data are not stored. Discard?":`Algunos datos no se almacenan. ¿Desechar?`,ra_States:`Estados`,"ra_Successfully authorized. Token valid till %s and will be automatically renewed.":`Autorizado correctamente. El token es válido hasta el %s y se renovará automáticamente.`,"ra_Successfully authorized. Token valid till %s but it can expire as the instance is not running.":`Autorizado correctamente. El token es válido hasta %s, pero puede caducar porque la instancia no está en ejecución.`,"ra_Suitable license not found in license manager":`Licencia adecuada no encontrada en el administrador de licencias`,ra_Sunday:`Domingo`,"ra_Suppress question for next %s minutes":`Suprimir pregunta durante los próximos %s minutos`,"ra_System language":`Lenguaje del sistema`,"ra_Take browser position":`Tomar posición desde el navegador`,"ra_Take position from system settings":`Tomar posición desde la configuración del sistema`,'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':`Los expertos pueden crear objetos en todas partes excepto desde el segundo nivel (por ejemplo, "vis.0" o "javascript.0").`,"ra_The page you are looking for was not found":`No se encontró la página que busca`,"ra_The schedule will be executed every minute. Are you sure?":`El cronograma se ejecutará cada minuto. ¿Estás seguro?`,"ra_The schedule will be executed every second. Are you sure?":`El cronograma se ejecutará cada segundo. ¿Estás seguro?`,ra_Thursday:`Jueves`,ra_Timestamp:`Marca de tiempo`,"ra_Toggle expert mode":`Alternar modo experto`,"ra_Toggle the states view":`Alternar la vista de estados`,"ra_Toggle view mode":`Alternar modo de vista`,"ra_Too big":`Demasiado grande`,"ra_Too small":`Demasiado pequeña`,"ra_Transparent dialog":`Diálogo transparente`,ra_Tuesday:`Martes`,"ra_Unknown error":`Error desconocido`,"ra_Unknown error!":`¡Error desconocido!`,ra_Update:`Actualizar`,"ra_Upload file":`Subir archivo`,"ra_Use all available let's encrypt certificates":`Utilice todos los certificados let's encrypt disponibles`,"ra_Use iobroker.acme adapter for letsencrypt certificates":`Use el adaptador iobroker.acme para los certificados de letsencrypt`,"ra_Use system settings for position":`Usar la configuración del sistema para la posición`,"ra_Used system settings":`Configuraciones del sistema usadas`,"ra_User files":`Archivos de usuario`,ra_ValidTill:`Válida hasta`,ra_Value:`Valor`,ra_Version:`Versión`,"ra_View file":`Ver archivo`,"ra_View: %s":`Ver: %s`,ra_Wednesday:`Miércoles`,ra_Width:`Anchura`,"ra_YAML editor":`Editor YAML`,ra_Yes:`Sí`,"ra_You can export all objects or just the selected branch.":`Puede exportar todos los objetos o solo la rama seleccionada.`,"ra_You can filter entries by entering here some text":`Puede filtrar las entradas ingresando aquí algún texto`,"ra_You can use * as wildcard":`Puedes utilizar * como comodín`,ra___different__:`diferente`,ra_aclEveryone_read_object:`Todo el mundo puede leer el objeto`,ra_aclEveryone_read_state:`Todos pueden leer el estado`,ra_aclEveryone_write_object:`Todos pueden escribir objetos`,ra_aclEveryone_write_state:`Todos pueden escribir el estado`,ra_aclGroup_read_object:`El grupo puede leer el objeto`,ra_aclGroup_read_state:`El grupo puede leer el estado`,ra_aclGroup_write_object:`El grupo puede escribir un objeto`,ra_aclGroup_write_state:`El grupo puede escribir el estado`,ra_aclOwner_read_object:`El propietario puede leer el objeto`,ra_aclOwner_read_state:`El propietario puede leer el estado`,ra_aclOwner_write_object:`El propietario puede escribir el objeto`,ra_aclOwner_write_state:`El propietario puede escribir el estado`,ra_buttons:`Botones`,ra_changedFrom:`Cambiaron desde`,ra_close:`cerrar`,ra_create_boolean_state:`Crear estado booleano`,ra_create_channel:`Crear canal`,ra_create_device:`Crear dispositivo`,ra_create_number_state:`Crear estado numérico`,ra_create_state:`Crear estado`,ra_create_string_state:`Crear estado de cadena`,ra_daysShortText:`d.`,ra_dow_Fr:`Fr`,ra_dow_Mo:`Mes`,ra_dow_Sa:`Sa`,ra_dow_Su:`Su`,ra_dow_Th:`Th`,ra_dow_Tu:`Tu`,ra_dow_We:`Nosotros`,ra_expertMode:`Modo experto`,ra_false:`FALSO`,ra_fileType_all:`Todos los archivos`,ra_fileType_audio:`Audio`,ra_fileType_code:`Código/JSON`,ra_fileType_images:`Imágenes`,ra_fileType_txt:`Texto`,ra_fileType_video:`Video`,"ra_fileType_video,":`Video`,ra_filter_customs:`Configuraciones`,ra_filter_customs_without:`sin`,ra_filter_func:`Función`,ra_filter_id:`ID`,ra_filter_name:`Nombre`,ra_filter_role:`Papel`,ra_filter_room:`Habitación`,ra_filter_type:`Tipo`,"ra_import data from %s file":`Importar datos del archivo %s`,ra_invalidConfig:`Configuraciones inválidas`,ra_lastChange:`Ultimo cambio`,ra_locally:`en la zona`,ra_month_Apr:`Abr`,ra_month_Aug:`Ago`,ra_month_Dec:`Dic`,ra_month_Feb:`Feb`,ra_month_Jan:`Ene`,ra_month_Jul:`Jul`,ra_month_Jun:`Jun`,ra_month_Mai:`Mai`,ra_month_Mar:`Mar`,ra_month_Nov:`Nov`,ra_month_Oct:`Oct`,ra_month_Sep:`Sep`,ra_months_Apr:`Abr`,ra_months_Aug:`Ago`,ra_months_Dec:`Dic`,ra_months_Feb:`Feb`,ra_months_Jan:`Ene`,ra_months_Jul:`Jul`,ra_months_Jun:`Jun`,ra_months_Mai:`Mai`,ra_months_Mar:`Mar`,ra_months_Nov:`Nov`,ra_months_Oct:`Oct`,ra_months_Sep:`Sep`,"ra_no confirm for 5 mins":`Sin confirmación durante 5 minutos`,ra_none:`ninguno`,ra_object_changed_by:`Objeto cambiado por`,ra_object_changed_by_user:`Objeto cambiado por última vez a las`,ra_otherConfig:`Configuraciones de otro adaptador %s`,ra_qualityCode:`Código de calidad`,ra_repeat:`repetir`,ra_select_folder_hint:`Para seleccionar la carpeta, simplemente mantenga presionada la tecla "shift" haciendo clic en la carpeta.`,ra_show_all:`Mostrar todo`,ra_state_changed_by:`Estado cambiado por`,ra_state_changed_from:`Objeto cambiado de`,ra_timestamp:`Marca de tiempo`,ra_tooltip_ack:`Bandera reconocida`,ra_tooltip_comment:`Comentario`,ra_tooltip_copyState:`Copie el valor del estado`,ra_tooltip_ctrlForLink:`Mantenga presionada la tecla Cltr/⌘ para abrir el enlace`,ra_tooltip_customConfig:`Ajustes personalizados`,ra_tooltip_deleteObject:`Eliminar objeto`,ra_tooltip_editObject:`Editar objeto`,ra_tooltip_editState:`Edite el valor del estado`,ra_tooltip_expire:`Caduca en`,ra_tooltip_from:`Desde`,ra_tooltip_lc:`Último cambio`,ra_tooltip_quality:`Calidad`,ra_tooltip_ts:`Sello de tiempo`,ra_tooltip_user:`Usuario`,ra_tooltip_value:`Valor`,ra_true:`VERDADERO`,"ra_use seconds":`usar segundos`,ra_val:`Valor`,"ra_via internet":`vía Internet`,ra_warning_every_minute:`Advertencia: ¡El trabajo CRON se ejecutará cada minuto durante el período especificado!`,ra_warning_every_second:`Advertencia: ¡El trabajo CRON se ejecutará cada segundo durante el período especificado!`,sc_cron:`CRON`,sc_date:`Fecha`,sc_dates:`fechas`,sc_dow:`Día`,sc_dows:`Día de la semana`,sc_every:`Cada`,sc_everyN_dates:`cada N días`,sc_everyN_dow:`cada enésimo día de la semana`,sc_everyN_dows:`cada N día de la semana`,sc_everyN_hours:`cada N horas`,sc_everyN_minutes:`cada N minutos`,sc_everyN_months:`cada N meses`,sc_everyN_seconds:`cada N segundos`,sc_every_dates:`cada día`,sc_every_dow:`Cada día de la semana`,sc_every_dows:`Cada día de la semana`,sc_every_hours:`cada hora`,sc_every_minutes:`cada minuto`,sc_every_months:`cada mes`,sc_every_seconds:`cada segundo`,sc_from:`De`,sc_hours:`Horas`,sc_interval:`Intervalo`,sc_intervalBetween:`Intervalo entre`,sc_invalid_cron:`CRON no válido`,sc_minutes:`Minutos`,sc_months:`meses`,sc_once:`Una vez`,sc_period:`Período`,sc_seconds:`Segundos`,sc_simple:`Sencillo`,sc_specific:`Tiempo específico`,sc_specific_dates:`fechas especificas`,sc_specific_dow:`día(s) específico(s) de la semana`,sc_specific_dows:`día específico de semanas`,sc_specific_hours:`horas específicas`,sc_specific_minutes:`minutos específicos`,sc_specific_months:`meses específicos`,sc_specific_seconds:`segundos específicos`,sc_time:`Hora`,sc_to:`A`,sc_wizard:`Mago`,sch_all:`todas`,sch_astroDay:`Día astro`,sch_astroNight:`Noche astro`,sch_astro_dawn:`Amanecer`,sch_astro_dusk:`Oscuridad`,sch_astro_goldenHour:`hora dorada`,sch_astro_goldenHourEnd:`Fin de la hora dorada`,sch_astro_nadir:`Nadir`,sch_astro_nauticalDawn:`Amanecer náutico`,sch_astro_nauticalDusk:`Anochecer náutico`,sch_astro_night:`Noche`,sch_astro_nightEnd:`Fin de la noche`,sch_astro_solarNoon:`Mediodía solar`,sch_astro_sunrise:`amanecer`,sch_astro_sunriseEnd:`Fin del amanecer`,sch_astro_sunset:`Puesta de sol`,sch_astro_sunsetStart:`Puesta de sol`,sch_at:`a`,sch_desc_atTime:`en %s`,sch_desc_everyDay:`cada día`,sch_desc_everyHour:`cada hora`,sch_desc_everyMinute:`cada minuto`,sch_desc_everyMonth:`cada mes`,sch_desc_everyNDay:`cada %s días`,sch_desc_everyNHours:`cada %s horas`,sch_desc_everyNMinutes:`cada %s minutos`,sch_desc_everyNMonths:`cada %s meses`,sch_desc_everyNWeeks:`cada %s semanas`,sch_desc_everyNYears:`cada %s años`,sch_desc_everyWeek:`cada semana`,sch_desc_everyYear:`todos los años`,sch_desc_intervalFromTo:`de %s a %s`,sch_desc_never:`Nunca`,sch_desc_onDate:`en %s de %s`,sch_desc_onDates:`en %s y %s de`,sch_desc_onEveryDate:`en cada fecha de`,sch_desc_onMonth:`%s`,sch_desc_onMonths:`%s y %s`,sch_desc_onWeekday:`en %s`,sch_desc_onWeekdays:`en %s y %s`,sch_desc_onWeekends:`en los fines de semana`,sch_desc_onWorkdays:`en días laborables`,sch_desc_onceInPast:`ya no se ejecutará más, porque el inicio está en el pasado`,sch_desc_once_on:`en %s`,sch_desc_validFrom:`de %s`,sch_desc_validFromTo:`Ejecutar desde hasta`,sch_desc_validTo:`a %s`,sch_every:`cada`,sch_exactTime:`Tiempo específico`,sch_from:`de`,sch_fromTo:`De-a`,sch_intervalTime:`Tiempo de intervalo`,sch_invert:`invertir; poner boca abajo o en la posición opuesta, orden o arreglo; Boca abajo`,sch_no_one:`ninguna`,sch_on:`en`,sch_period:`Período`,sch_periodDaily:`Diario`,sch_periodDates:`fechas`,sch_periodDay:`Día`,sch_periodEvery:`Cada`,sch_periodEveryDay:`Cada día`,sch_periodEveryMonth:`Cada mes`,sch_periodEveryWeek:`Cada semana`,sch_periodEveryYear:`Todos los años`,sch_periodHours:`Horas`,sch_periodMinutes:`Minutos`,sch_periodMonth:`mes`,sch_periodMonthly:`Mensual`,sch_periodOnce:`Una vez`,sch_periodSpecificMonths:`Meses específicos`,sch_periodWeek:`Semana`,sch_periodWeekdays:`Días laborables`,sch_periodWeekend:`Fin de semana`,sch_periodWeekly:`Semanal`,sch_periodWorkdays:`Días laborables`,sch_periodYear:`Año`,sch_periodYearly:`Anual`,sch_specificTime:`Tiempo específico`,sch_time:`Hora`,sch_to:`a`,sch_valid:`Válido`,sch_validFrom:`de`,sch_validTo:`a`,sch_wholeDay:`Todo el dia`,sch_yearEveryMonth:`cada mes`},pl:{"ra_%s links from aliases":`%s linków z aliasów`,"ra_%s object(s) processed":`Przetworzono %s obiektów`,"ra_%s was imported":`%s został zaimportowany`,"ra_Accept license":`Zaakceptuj licencję`,ra_Actions:`Akcje`,"ra_Add new child object to selected parent":`Dodaj nowy obiekt potomny do wybranego rodzica`,"ra_Add objects tree from JSON file":`Dodaj drzewo obiektów z pliku JSON`,"ra_Add row":`Dodaj wiersz`,"ra_Advanced options":`Zaawansowane opcje`,"ra_All items are filtered out":`Wszystkie pozycje są odfiltrowane`,"ra_All objects":`Wszystkie obiekty`,ra_Append:`Dodać`,"ra_Append %s entries or replace existing?":`Dołączyć wpisy %s czy zastąpić istniejące?`,"ra_Append or replace?":`Dołączyć czy zastąpić?`,"ra_Are you sure?":`Jesteś pewny?`,"ra_Auto (no custom columns)":`Auto (bez kolumn niestandardowych)`,"ra_Back to %s":`Powrót do %s`,"ra_Background image":`Zdjęcie w tle`,ra_Cancel:`Anuluj`,"ra_Cannot add items with set filter":`Nie można dodać elementów z ustawionym filtrem`,"ra_Cannot decode license":`Nie można zdekodować licencji`,"ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":`Nie można określić pozycji: ustawienia systemu są puste, a wykrywanie GPS jest wyłączone w przeglądarce`,'ra_Cannot find "%s"':`Nie można znaleźć „%s”`,'ra_Cannot read "%s"':`Nie można odczytać „%s”`,"ra_Cannot read licenses: %s":`Nie można odczytać licencji: %s`,"ra_Cannot retrieve options, as instance is offline":`Nie można pobrać opcji, ponieważ instancja jest w trybie offline`,"ra_Cannot update attribute, because not found in the object":`Nie można zaktualizować atrybutu, ponieważ nie znaleziono go w obiekcie`,"ra_Cannot upload":`Nie można przesłać`,ra_Categories:`Kategorie`,"ra_Chained certificate":`Certyfikat łańcuchowy`,"ra_Change color theme":`Zmień motyw kolorystyczny`,"ra_Changed from":`Zmieniony z`,"ra_Channel → State":`Kanał → Stan`,"ra_Check license":`Sprawdź licencję`,ra_Checked:`Sprawdzony`,ra_Clear:`Kasować`,"ra_Clear filter":`Czysty filtr`,"ra_Clear icon":`Wyczyść ikonę`,"ra_Click to see in full size":`Kliknij, aby zobaczyć w pełnym rozmiarze`,"ra_Click to show":`Kliknij, aby pokazać`,"ra_Clone current row":`Sklonuj bieżący wiersz`,ra_Close:`Blisko`,"ra_Collapse all nodes":`Zwiń wszystkie węzły`,"ra_Collapse one step node":`Zwiń o jeden poziom`,ra_Commercial:`Handlowy`,ra_Configure:`Konfiguruj`,"ra_Configure visible columns":`Skonfiguruj widoczne kolumny`,"ra_Confirm deletion of %s":`Potwierdź usunięcie %s`,ra_Connected:`Połączony`,ra_Continue:`Kontynuować`,ra_Copied:`Skopiowano`,"ra_Copied %s":`Skopiowano "%s"`,"ra_Copy content":`Kopiuj zawartość`,ra_Create:`Stwórz`,"ra_Create alias":`Utwórz alias`,"ra_Create folder":`Utwórz folder`,"ra_Create new folder in %s":`Utwórz nowy folder w %s`,ra_Crop:`Przyciąć`,"ra_Define CRON...":`Zdefiniuj CRON...`,"ra_Define functions":`Zdefiniuj funkcje`,"ra_Define rooms":`Zdefiniuj pokoje`,"ra_Define schedule":`Zdefiniuj harmonogram`,"ra_Define schedule...":`Zdefiniuj harmonogram ...`,ra_Del:`Delete`,ra_Delete:`Usunąć`,"ra_Delete current row":`Usuń bieżący wiersz`,"ra_Deselect all":`Odznacz wszystko`,"ra_Device → Channel → State":`Urządzenie → Kanał → Stan`,"ra_Disable/Enable translation":`Wyłącz/Włącz tłumaczenie`,ra_Discard:`Wyrzucać`,ra_Disconnected:`Niepowiązany`,"ra_Do not ask for next 2 hours in this session":`Nie proś o kolejne 2 godziny w tej sesji`,"ra_Do not export values of states":`Nie eksportuj wartości stanów`,"ra_Do not use let's encrypt":`Nie używaj zaszyfrujmy`,"ra_Docker is not available":`Docker nie jest dostępny`,"ra_Docker is not installed or not running":`Docker nie jest zainstalowany lub nie działa`,"ra_Double click to reset table layout":`Kliknij dwukrotnie, aby zresetować układ tabeli`,"ra_Drag 'n' drop some files here, or click to select files":`Przeciągnij i upuść kilka plików tutaj lub kliknij, aby wybrać pliki`,"ra_Drop file here":`Upuść plik tutaj`,"ra_Drop the files here...":`Upuść plik tutaj...`,"ra_Duplicate name":`Zduplikowana nazwa`,"ra_Edit ACL":`Edytuj listy ACL`,"ra_Edit alias":`Edytuj alias`,"ra_Edit custom config":`Edytuj konfigurację niestandardową`,"ra_Edit full path":`Edytuj pełną ścieżkę`,"ra_Edit function":`Funkcja edycji`,"ra_Edit object field":`Edytuj pole obiektu`,"ra_Edit role":`Edytuj rolę`,"ra_Edit room":`Edytuj pokój`,"ra_Edit value":`Edytuj wartość`,"ra_Enter the code from that page here":`Wpisz kod z tej strony tutaj`,ra_Error:`Błąd`,"ra_Expand all nodes":`Rozwiń wszystkie węzły`,"ra_Expand one step node":`Rozwiń o jeden poziom`,"ra_Expand/Collapse card":`Rozwiń/Zwiń kartę`,"ra_Export configuration section":`Sekcja konfiguracji eksportu`,"ra_Export data to %s file":`Eksportuj dane do pliku %s`,"ra_Failed to open JSON File":`Nie udało się otworzyć pliku JSON`,"ra_Fallback custom certificates":`Niestandardowe certyfikaty zastępcze`,"ra_File is too big. Max %sk allowed. Try use SVG.":`Plik jest za duży. Maksymalna dozwolona liczba %sk. Spróbuj użyć SVG.`,ra_Filter:`Filtr`,"ra_Filter and Data Actions":`Akcje filtrów i danych`,"ra_Filter files":`Filtruj pliki`,"ra_Folder name":`Nazwa folderu`,"ra_Folder → Channel → State":`Folder → Kanał → Stan`,"ra_Folder → Device → Channel → State":`Folder → Urządzenie → Kanał → Stan`,"ra_Folder → State":`Folder → Stan`,"ra_Folders always first":`Foldery zawsze na pierwszym miejscu`,ra_Friday:`Piątek`,"ra_From file":`Z pliku`,"ra_From text":`Z tekstu`,"ra_Get %s access":`Uzyskaj dostęp %s`,"ra_Good luck":`Powodzenia`,"ra_Hide empty folders":`Ukryj puste foldery`,"ra_If no file will be created in the folder, it will disappear after the browser closed":`Jeśli w folderze nie zostanie utworzony żaden plik, zniknie on po zamknięciu przeglądarki`,"ra_If the button above does not work, you can authorize manually this app by visiting this url":`Jeśli przycisk powyżej nie działa, możesz autoryzować tę aplikację ręcznie, odwiedzając ten adres URL`,"ra_Import and add configuration section":`Importuj i dodaj sekcję konfiguracji`,"ra_Import and replace configuration section":`Importuj i zastąp sekcję konfiguracji`,"ra_Import data from %s file":`Importuj dane z pliku %s`,"ra_Import from %s":`Importuj z %s`,"ra_Instance %s is alive":`Instancja %s jest aktywna`,"ra_Instance %s is not alive":`Instancja TEKST nie jest aktywna`,"ra_Instance is not alive":`Instancja nie jest aktywna`,"ra_Invalid CRON":`Nieprawidłowy CRON`,"ra_Invalid JSON":`Nieprawidłowy JSON`,"ra_Invalid JSON file.":`Nieprawidłowy plik JSON.`,"ra_Invalid JSON format. Expected an array.":`Nieprawidłowy format JSON. Oczekiwano tablicy.`,"ra_Invalid answer from server":`Nieprawidłowa odpowiedź z serwera`,"ra_Invalid parent folder!":`Nieprawidłowy folder nadrzędny!`,"ra_Invalid structure":`Nieprawidłowa struktura`,"ra_JSON editor":`Edytor JSON`,"ra_Last change":`Ostatnia zmiana`,ra_Latitude:`Szerokość`,"ra_License %s":`Licencja %s`,"ra_License agreement":`Umowa licencyjna`,"ra_License does not exist":`Licencja nie istnieje`,"ra_License expired on %s":`Licencja wygasła w dniu %s`,'ra_License for other product "%s"':`Licencja na inny produkt „%s”`,"ra_License is for version %s, but required version is %s.":`Licencja dotyczy wersji %s, ale wymagana wersja to %s.`,"ra_License must be converted":`Licencja musi zostać przekonwertowana na nowszą wersję. Możesz to zrobić w swoim profilu iobroker.net.`,"ra_License not found in license manager. Do you want to read licenses from iobroker.net?":`Nie znaleziono licencji w menedżerze licencji. Chcesz zaktualizować licencje z iobroker.net?`,"ra_Listen on all IPs":`Słuchaj na wszystkich adresach IP`,"ra_Load configuration from file":`Załaduj konfigurację z pliku`,ra_Logout:`Wyloguj`,ra_Longitude:`Długość geograficzna`,'ra_May not trigger "updateLicenses"':`Może nie uruchamiać „updateLicenses”`,ra_Message:`Wiadomość`,ra_Monday:`Poniedziałek`,"ra_Move down":`Padnij`,"ra_Move up":`Podnieść`,ra_Name:`Nazwa`,"ra_No data found in file":`Nie znaleziono danych w pliku`,"ra_No one license found in license manager":`Nie znaleziono licencji w menedżerze licencji`,"ra_No response from admin":`Brak odpowiedzi od administratora`,"ra_No response from the backend":`Brak odpowiedzi z zaplecza`,'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':`Osoby nie będące ekspertami mogą tworzyć nowe obiekty tylko w „0_userdata.0” lub „alias.0”.`,"ra_Not a number":`Nie numer`,"ra_OAuth Client ID":`Identyfikator klienta OAuth`,"ra_OAuth Client secret":`Tajny klucz klienta OAuth`,ra_Objects:`Obiekty`,ra_Ok:`Dobrze`,"ra_On weekdays":`W dni powszednie`,"ra_Only following structures of objects are available:":`Dostępne są tylko następujące struktury obiektów:`,"ra_Only selected":`Tylko wybrane`,"ra_Owner group":`Grupa właścicieli`,"ra_Owner user":`Właściciel użytkownika`,"ra_Passwords are not equal!":`Hasła nie są równe!`,"ra_Place your files here or click here to open the browse dialog":`Umieść swoje pliki tutaj lub kliknij tutaj, aby otworzyć okno dialogowe przeglądania`,"ra_Please allow popups in your browser for this page!":`Proszę zezwolić na wyświetlanie wyskakujących okienek w przeglądarce dla tej strony!`,"ra_Please confirm":`Proszę potwierdzić`,"ra_Please create license":`Utwórz licencję`,"ra_Please enter the license":`Proszę wprowadzić licencję`,"ra_Please select file...":`Wybierz plik...`,"ra_Please select object ID...":`Wybierz identyfikator obiektu ...`,"ra_Port could be used by %s":`Port może być używany przez %s`,"ra_Port is already used by %s":`Port jest już używany przez %s`,"ra_Press ENTER Key to add new item":`Naciśnij klawisz ENTER, aby dodać nowy element`,"ra_Private certificate":`Prywatny certyfikat`,ra_Product:`Produkt`,"ra_Public certificate":`Certyfikat publiczny`,"ra_Quality code":`Jakości`,"ra_Refresh tree":`Odśwież drzewo`,"ra_Reload files":`Załaduj ponownie pliki`,ra_Rename_Move_Copy:`Zmień nazwę/Przenieś/Kopiuj`,"ra_Renew %s access":`Odnów dostęp %s`,ra_Repeat:`Powtarzać`,ra_Replace:`Zastępować`,"ra_Request timed out":`Upłynął limit czasu żądania`,"ra_Restrict to folder":`Ogranicz do folderu`,ra_Root:`Korzeń`,ra_Saturday:`Sobota`,ra_Save:`Zapisać`,"ra_Save and close":`Zapisz i zamknij`,"ra_Save configuration to file":`Zapisz konfigurację do pliku`,"ra_Save objects tree as JSON file":`Zapisz drzewo obiektów jako plik JSON`,"ra_Select all":`Zaznacz wszystko`,"ra_Select color":`Wybierz kolor`,"ra_Select predefined icon":`Wybierz predefiniowaną ikonę`,"ra_Select type of export":`Wybierz rodzaj eksportu`,ra_Selected:`Wybrany`,"ra_Selected %s object(s)":`Wybrane obiekty %s`,"ra_Serial number (UUID)":`Numer seryjny (UUID)`,'ra_Serial number (UUID) "%s" in license is for other device.':`Numer seryjny (UUID) „%s” w licencji dotyczy innego urządzenia.`,"ra_Session will expire in %s seconds. Continue?":`Sesja wygaśnie za %s sekund. Kontynuować?`,"ra_Show all folders":`Pokaż wszystkie foldery`,"ra_Show lines between rows":`Pokaż linie między rzędami`,"ra_Show/Hide object descriptions":`Pokaż/ukryj opisy obiektów`,"ra_Show/hide filter input":`Pokaż/ukryj wejście filtra`,"ra_Some data are not stored. Discard?":`Niektóre dane nie są przechowywane. Wyrzucać?`,ra_States:`Stany`,"ra_Successfully authorized. Token valid till %s and will be automatically renewed.":`Pomyślnie autoryzowano. Token ważny do %s i zostanie automatycznie odnowiony.`,"ra_Successfully authorized. Token valid till %s but it can expire as the instance is not running.":`Pomyślnie autoryzowano. Token ważny do %s, ale może wygasnąć, ponieważ instancja nie jest uruchomiona.`,"ra_Suitable license not found in license manager":`Nie znaleziono odpowiedniej licencji w menedżerze licencji`,ra_Sunday:`Niedziela`,"ra_Suppress question for next %s minutes":`Ukryj pytanie przez następne %s minut`,"ra_System language":`Język systemu`,"ra_Take browser position":`Zajmij pozycję z przeglądarki`,"ra_Take position from system settings":`Zajmij pozycję z ustawień systemowych`,'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':`Eksperci mogą tworzyć obiekty wszędzie poza drugim poziomem (np. „Vis.0” lub „javascript.0”).`,"ra_The page you are looking for was not found":`Strona, której szukasz nie została znaleziona`,"ra_The schedule will be executed every minute. Are you sure?":`Harmonogram będzie wykonywany co minutę. Czy jesteś pewien?`,"ra_The schedule will be executed every second. Are you sure?":`Harmonogram będzie wykonywany co sekundę. Czy jesteś pewien?`,ra_Thursday:`Czwartek`,ra_Timestamp:`Znak czasu`,"ra_Toggle expert mode":`Przełącz tryb eksperta`,"ra_Toggle the states view":`Przełącz widok stanów`,"ra_Toggle view mode":`Przełącz tryb widoku`,"ra_Too big":`Za duży`,"ra_Too small":`Za mały`,"ra_Transparent dialog":`Przejrzyste okno dialogowe`,ra_Tuesday:`Wtorek`,"ra_Unknown error":`Nieznany błąd`,"ra_Unknown error!":`Nieznany błąd!`,ra_Update:`Aktualizacja`,"ra_Upload file":`Przesyłanie pliku`,"ra_Use all available let's encrypt certificates":`Użyj wszystkich dostępnych certyfikatów Let's Encrypt`,"ra_Use iobroker.acme adapter for letsencrypt certificates":`Użyj adaptera iobroker.acme dla certyfikatów letsencrypt`,"ra_Use system settings for position":`Użyj ustawień systemowych dla pozycji`,"ra_Used system settings":`Używane ustawienia systemowe`,"ra_User files":`Pliki użytkownika`,ra_ValidTill:`Obowiązuje do`,ra_Value:`Wartość`,ra_Version:`Wersja`,"ra_View file":`Zobaczyć plik`,"ra_View: %s":`Widok: %s`,ra_Wednesday:`Środa`,ra_Width:`Szerokość`,"ra_YAML editor":`Edytor YAML`,ra_Yes:`Tak`,"ra_You can export all objects or just the selected branch.":`Możesz wyeksportować wszystkie obiekty lub tylko wybraną gałąź.`,"ra_You can filter entries by entering here some text":`Możesz filtrować wpisy, wpisując tutaj jakiś tekst`,"ra_You can use * as wildcard":`Możesz użyć * jako symbolu wieloznacznego`,ra___different__:`różne`,ra_aclEveryone_read_object:`Każdy może czytać obiekt`,ra_aclEveryone_read_state:`Każdy może czytać stan`,ra_aclEveryone_write_object:`Każdy może pisać przedmiot`,ra_aclEveryone_write_state:`Każdy może pisać stan`,ra_aclGroup_read_object:`Grupa może odczytać obiekt`,ra_aclGroup_read_state:`Grupa może odczytać stan`,ra_aclGroup_write_object:`Grupa może pisać obiekt`,ra_aclGroup_write_state:`Grupa może pisać stan`,ra_aclOwner_read_object:`Właściciel może czytać obiekt`,ra_aclOwner_read_state:`Właściciel może odczytać stan`,ra_aclOwner_write_object:`Właściciel może napisać obiekt`,ra_aclOwner_write_state:`Właściciel może pisać stan`,ra_buttons:`guziki`,ra_changedFrom:`Zmieniony z`,ra_close:`blisko`,ra_create_boolean_state:`Utwórz stan logiczny`,ra_create_channel:`Utwórz kanał`,ra_create_device:`Utwórz urządzenie`,ra_create_number_state:`Utwórz stan liczbowy`,ra_create_state:`Utwórz stan`,ra_create_string_state:`Utwórz stan ciągu`,ra_daysShortText:`d.`,ra_dow_Fr:`Ks`,ra_dow_Mo:`Mo`,ra_dow_Sa:`Sa`,ra_dow_Su:`Su`,ra_dow_Th:`Th`,ra_dow_Tu:`Tu`,ra_dow_We:`My`,ra_expertMode:`Tryb ekspercki`,ra_false:`FAŁSZ`,ra_fileType_all:`Wszystkie pliki`,ra_fileType_audio:`Audio`,ra_fileType_code:`Kod/JSON`,ra_fileType_images:`Obrazy`,ra_fileType_txt:`Tekst`,ra_fileType_video:`Wideo`,"ra_fileType_video,":`Wideo`,ra_filter_customs:`Ustawienia`,ra_filter_customs_without:`bez`,ra_filter_func:`Funkcjonować`,ra_filter_id:`ID`,ra_filter_name:`Imię`,ra_filter_role:`Rola`,ra_filter_room:`Sala`,ra_filter_type:`Rodzaj`,"ra_import data from %s file":`Importuj dane z pliku %s`,ra_invalidConfig:`Nieprawidłowe ustawienia`,ra_lastChange:`Ostatnia zmiana`,ra_locally:`lokalnie`,ra_month_Apr:`kwiecień`,ra_month_Aug:`sierpień`,ra_month_Dec:`grudzień`,ra_month_Feb:`luty`,ra_month_Jan:`styczeń`,ra_month_Jul:`lipiec`,ra_month_Jun:`czerwiec`,ra_month_Mai:`Mai`,ra_month_Mar:`Zniszczyć`,ra_month_Nov:`listopad`,ra_month_Oct:`październik`,ra_month_Sep:`wrzesień`,ra_months_Apr:`kwiecień`,ra_months_Aug:`sierpień`,ra_months_Dec:`grudzień`,ra_months_Feb:`luty`,ra_months_Jan:`styczeń`,ra_months_Jul:`lipiec`,ra_months_Jun:`czerwiec`,ra_months_Mai:`Mai`,ra_months_Mar:`Zniszczyć`,ra_months_Nov:`listopad`,ra_months_Oct:`październik`,ra_months_Sep:`wrzesień`,"ra_no confirm for 5 mins":`brak potwierdzenia przez 5 minut`,ra_none:`Żaden`,ra_object_changed_by:`Obiekt zmieniony przez`,ra_object_changed_by_user:`Obiekt ostatnio zmieniony o godz`,ra_otherConfig:`Ustawienia z innego adaptera %s`,ra_qualityCode:`Kod jakości`,ra_repeat:`powtarzać`,ra_select_folder_hint:`Aby wybrać folder, wystarczy przytrzymać klawisz „shift”, klikając folder.`,ra_show_all:`Pokaż wszystko`,ra_state_changed_by:`Stan zmieniony przez`,ra_state_changed_from:`Obiekt zmieniony z`,ra_timestamp:`Znak czasu`,ra_tooltip_ack:`Potwierdzon`,ra_tooltip_comment:`Komentarz`,ra_tooltip_copyState:`Skopiuj wartość stanu`,ra_tooltip_ctrlForLink:`Przytrzymaj klawisz CTRL/⌘, aby otworzyć link`,ra_tooltip_customConfig:`Własne ustawienia`,ra_tooltip_deleteObject:`Usuń obiekt`,ra_tooltip_editObject:`Edytuj obiekt`,ra_tooltip_editState:`Edytuj wartość stanu`,ra_tooltip_expire:`Wygasa za`,ra_tooltip_from:`Z`,ra_tooltip_lc:`Ostatnia zmiana`,ra_tooltip_quality:`Jakość`,ra_tooltip_ts:`Znak czasu`,ra_tooltip_user:`Użytkownik`,ra_tooltip_value:`Wartość`,ra_true:`PRAWDA`,"ra_use seconds":`użyj sekund`,ra_val:`Wartość`,"ra_via internet":`przez internet`,ra_warning_every_minute:`Ostrzeżenie: Zadanie CRON będzie uruchamiane co minutę w określonym przedziale czasowym!`,ra_warning_every_second:`Ostrzeżenie: Zadanie CRON będzie uruchamiane co sekundę w określonym przedziale czasowym!`,sc_cron:`CRON`,sc_date:`Data`,sc_dates:`Daktyle`,sc_dow:`Dzień`,sc_dows:`Dzień tygodnia`,sc_every:`Każdy`,sc_everyN_dates:`co N dni`,sc_everyN_dow:`w każdy N-ty dzień tygodnia`,sc_everyN_dows:`co N dnia tygodnia`,sc_everyN_hours:`co N godzin`,sc_everyN_minutes:`co N minut`,sc_everyN_months:`co N miesięcy`,sc_everyN_seconds:`co N sekund`,sc_every_dates:`codziennie`,sc_every_dow:`każdy dzień tygodnia`,sc_every_dows:`każdy dzień tygodnia`,sc_every_hours:`co godzinę`,sc_every_minutes:`każda minuta`,sc_every_months:`każdego miesiąca`,sc_every_seconds:`każda sekunda`,sc_from:`Od`,sc_hours:`godziny`,sc_interval:`Interwał`,sc_intervalBetween:`Interwał między`,sc_invalid_cron:`Nieprawidłowy CRON`,sc_minutes:`Minuty`,sc_months:`miesięcy`,sc_once:`Pewnego razu`,sc_period:`Kropka`,sc_seconds:`sekundy`,sc_simple:`Prosty`,sc_specific:`Określony czas`,sc_specific_dates:`konkretne daty`,sc_specific_dow:`określone dni tygodnia`,sc_specific_dows:`określony dzień tygodni`,sc_specific_hours:`określone godziny`,sc_specific_minutes:`określone minuty`,sc_specific_months:`określone miesiące`,sc_specific_seconds:`określone sekundy`,sc_time:`Czas`,sc_to:`Do`,sc_wizard:`Czarodziej`,sch_all:`wszystko`,sch_astroDay:`Dzień Astro`,sch_astroNight:`Noc Astro`,sch_astro_dawn:`Świt`,sch_astro_dusk:`Zmierzch`,sch_astro_goldenHour:`Złota godzina`,sch_astro_goldenHourEnd:`Koniec złotej godziny`,sch_astro_nadir:`Północ`,sch_astro_nauticalDawn:`Morski świt`,sch_astro_nauticalDusk:`Morski zmierzch`,sch_astro_night:`Noc`,sch_astro_nightEnd:`Koniec nocy`,sch_astro_solarNoon:`Południe słoneczne`,sch_astro_sunrise:`Wschód słońca`,sch_astro_sunriseEnd:`Koniec wschodu słońca`,sch_astro_sunset:`Zachód słońca`,sch_astro_sunsetStart:`Początek zachodu słońca`,sch_at:`w`,sch_desc_atTime:`na %s`,sch_desc_everyDay:`codziennie`,sch_desc_everyHour:`co godzinę`,sch_desc_everyMinute:`każda minuta`,sch_desc_everyMonth:`każdego miesiąca`,sch_desc_everyNDay:`każdego dnia %s`,sch_desc_everyNHours:`co %s godzin`,sch_desc_everyNMinutes:`co %s minut`,sch_desc_everyNMonths:`co %s miesięcy`,sch_desc_everyNWeeks:`co %s tygodni`,sch_desc_everyNYears:`co %s lat`,sch_desc_everyWeek:`co tydzień`,sch_desc_everyYear:`każdego roku`,sch_desc_intervalFromTo:`od %s do %s`,sch_desc_never:`nigdy`,sch_desc_onDate:`na %s z %s`,sch_desc_onDates:`na %s i %s z`,sch_desc_onEveryDate:`w każdą datę`,sch_desc_onMonth:`%s`,sch_desc_onMonths:`%s i %s`,sch_desc_onWeekday:`na %s`,sch_desc_onWeekdays:`na %s i %s`,sch_desc_onWeekends:`w weekendy`,sch_desc_onWorkdays:`w dni robocze`,sch_desc_onceInPast:`nie będzie już wykonywany, ponieważ start jest w przeszłości`,sch_desc_once_on:`na %s`,sch_desc_validFrom:`z %s`,sch_desc_validFromTo:`Wykonaj od do`,sch_desc_validTo:`do %s`,sch_every:`każdy`,sch_exactTime:`Określony czas`,sch_from:`od`,sch_fromTo:`Od-do`,sch_intervalTime:`Czas przerwy`,sch_invert:`odwracać`,sch_no_one:`Żaden`,sch_on:`na`,sch_period:`Kropka`,sch_periodDaily:`Codziennie`,sch_periodDates:`Daktyle`,sch_periodDay:`Dzień`,sch_periodEvery:`Każdy`,sch_periodEveryDay:`Codziennie`,sch_periodEveryMonth:`Każdego miesiąca`,sch_periodEveryWeek:`Co tydzień`,sch_periodEveryYear:`Każdego roku`,sch_periodHours:`godziny`,sch_periodMinutes:`Minuty`,sch_periodMonth:`miesiąc`,sch_periodMonthly:`Miesięczny`,sch_periodOnce:`Pewnego razu`,sch_periodSpecificMonths:`Określone miesiące`,sch_periodWeek:`Tydzień`,sch_periodWeekdays:`Dni powszednie`,sch_periodWeekend:`Weekend`,sch_periodWeekly:`Co tydzień`,sch_periodWorkdays:`Dni robocze`,sch_periodYear:`Rok`,sch_periodYearly:`Rocznie`,sch_specificTime:`Określony czas`,sch_time:`Czas`,sch_to:`do`,sch_valid:`Ważny`,sch_validFrom:`od`,sch_validTo:`do`,sch_wholeDay:`Cały dzień`,sch_yearEveryMonth:`każdego miesiąca`},uk:{"ra_%s links from aliases":`%s посилань із псевдонімів`,"ra_%s object(s) processed":`Оброблено %s об’єктів`,"ra_%s was imported":`%s було імпортовано`,"ra_Accept license":`Прийняти ліцензію`,ra_Actions:`Дії`,"ra_Add new child object to selected parent":`Додати новий дочірній об’єкт до вибраного батьківського`,"ra_Add objects tree from JSON file":`Додайте дерево об’єктів із файлу JSON`,"ra_Add row":`Додати рядок`,"ra_Advanced options":`Розширені опції`,"ra_All items are filtered out":`Усі елементи відфільтровано`,"ra_All objects":`Всі об'єкти`,ra_Append:`Додайте`,"ra_Append %s entries or replace existing?":`Додати %s записів чи замінити наявні?`,"ra_Append or replace?":`Додати чи замінити?`,"ra_Are you sure?":`Ти впевнений?`,"ra_Auto (no custom columns)":`Автоматично (без спеціальних стовпців)`,"ra_Back to %s":`Назад до %s`,"ra_Background image":`Фонове зображення`,ra_Cancel:`Скасувати`,"ra_Cannot add items with set filter":`Неможливо додати елементи зі встановленим фільтром`,"ra_Cannot decode license":`Неможливо розшифрувати ліцензію`,"ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":`Неможливо визначити положення: системні налаштування порожні, а визначення GPS вимкнено в браузері`,'ra_Cannot find "%s"':`Не вдається знайти "%s"`,'ra_Cannot read "%s"':`Неможливо прочитати "%s"`,"ra_Cannot read licenses: %s":`Неможливо прочитати ліцензії: %s`,"ra_Cannot retrieve options, as instance is offline":`Неможливо отримати параметри, оскільки екземпляр офлайн`,"ra_Cannot update attribute, because not found in the object":`Неможливо оновити атрибут, оскільки його не знайдено в об’єкті`,"ra_Cannot upload":`Неможливо завантажити`,ra_Categories:`Категорії`,"ra_Chained certificate":`Прикутий сертифікат`,"ra_Change color theme":`Змінити кольорову тему`,"ra_Changed from":`Змінено з`,"ra_Channel → State":`Канал → Стан`,"ra_Check license":`Перевірити ліцензію`,ra_Checked:`Перевірено`,ra_Clear:`Видалити`,"ra_Clear filter":`Очистити фільтр`,"ra_Clear icon":`Очистити значок`,"ra_Click to see in full size":`Натисніть, щоб побачити в повному розмірі`,"ra_Click to show":`Натисніть, щоб показати`,"ra_Clone current row":`Клонувати поточний рядок`,ra_Close:`Закрити`,"ra_Collapse all nodes":`Згорнути всі вузли`,"ra_Collapse one step node":`Згорнути на один рівень`,ra_Commercial:`Комерційний`,ra_Configure:`Налаштувати`,"ra_Configure visible columns":`Налаштувати видимі стовпці`,"ra_Confirm deletion of %s":`Підтвердити видалення %s`,ra_Connected:`Підключено`,ra_Continue:`Продовжити`,ra_Copied:`Скопійовано`,"ra_Copied %s":`Скопійовано "%s"`,"ra_Copy content":`Скопіюйте вміст`,ra_Create:`Створити`,"ra_Create alias":`Створити псевдонім`,"ra_Create folder":`Створити папку`,"ra_Create new folder in %s":`Створіть нову папку в %s`,ra_Crop:`Урожай`,"ra_Define CRON...":`Визначити CRON...`,"ra_Define functions":`Визначити функції`,"ra_Define rooms":`Визначте кімнати`,"ra_Define schedule":`Визначити розклад`,"ra_Define schedule...":`Визначити розклад...`,ra_Del:`Delete`,ra_Delete:`Видалити`,"ra_Delete current row":`Видалити поточний рядок`,"ra_Deselect all":`Скасувати вибір усіх`,"ra_Device → Channel → State":`Пристрій → Канал → Стан`,"ra_Disable/Enable translation":`Вимкнути/Увімкнути переклад`,ra_Discard:`Відкинути`,ra_Disconnected:`Відключено`,"ra_Do not ask for next 2 hours in this session":`Не запитуйте про наступні 2 години цього сеансу`,"ra_Do not export values of states":`Не експортуйте значення станів`,"ra_Do not use let's encrypt":`Не використовуйте let's encrypt`,"ra_Docker is not available":`Докер недоступний`,"ra_Docker is not installed or not running":`Docker не встановлено або не працює`,"ra_Double click to reset table layout":`Двічі клацніть, щоб скинути макет таблиці`,"ra_Drag 'n' drop some files here, or click to select files":`Перетягніть деякі файли сюди або натисніть, щоб вибрати файли`,"ra_Drop file here":`Перетягніть файл сюди`,"ra_Drop the files here...":`Перетягніть файл сюди...`,"ra_Duplicate name":`Повторюване ім'я`,"ra_Edit ACL":`Редагувати ACL`,"ra_Edit alias":`Редагувати псевдонім`,"ra_Edit custom config":`Редагувати спеціальну конфігурацію`,"ra_Edit full path":`Редагувати повний шлях`,"ra_Edit function":`функція редагування`,"ra_Edit object field":`Поле редагування об'єкта`,"ra_Edit role":`Редагувати роль`,"ra_Edit room":`Редагувати кімнату`,"ra_Edit value":`Редагувати значення`,"ra_Enter the code from that page here":`Введіть тут код з цієї сторінки`,ra_Error:`Помилка`,"ra_Expand all nodes":`Розгорнути всі вузли`,"ra_Expand one step node":`Розгорніть один рівень`,"ra_Expand/Collapse card":`Розгорнути/Згорнути картку`,"ra_Export configuration section":`Розділ конфігурації експорту`,"ra_Export data to %s file":`Експортувати дані у файл %s`,"ra_Failed to open JSON File":`Не вдалося відкрити файл JSON`,"ra_Fallback custom certificates":`Запасні спеціальні сертифікати`,"ra_File is too big. Max %sk allowed. Try use SVG.":`Файл завеликий. Максимально дозволено %sk. Спробуйте використовувати SVG.`,ra_Filter:`фільтр`,"ra_Filter and Data Actions":`Фільтр і дії з даними`,"ra_Filter files":`Фільтр файлів`,"ra_Folder name":`Назва папки`,"ra_Folder → Channel → State":`Папка → Канал → Стан`,"ra_Folder → Device → Channel → State":`Папка → Пристрій → Канал → Стан`,"ra_Folder → State":`Папка → Стан`,"ra_Folders always first":`Папки завжди першими`,ra_Friday:`П'ятниця`,"ra_From file":`З файлу`,"ra_From text":`З тексту`,"ra_Get %s access":`Отримайте доступ %s`,"ra_Good luck":`Удачі`,"ra_Hide empty folders":`Приховати порожні папки`,"ra_If no file will be created in the folder, it will disappear after the browser closed":`Якщо в папці не буде створено файл, він зникне після закриття браузера`,"ra_If the button above does not work, you can authorize manually this app by visiting this url":`Якщо кнопка вище не працює, ви можете авторизувати цю програму вручну, перейшовши за цим посиланням`,"ra_Import and add configuration section":`Розділ імпорту та додавання конфігурації`,"ra_Import and replace configuration section":`Розділ імпорту та заміни конфігурації`,"ra_Import data from %s file":`Імпортувати дані з файлу %s`,"ra_Import from %s":`Імпортувати з %s`,"ra_Instance %s is alive":`Примірник %s живий`,"ra_Instance %s is not alive":`Примірник %s не живий`,"ra_Instance is not alive":`Примірник не живий`,"ra_Invalid CRON":`Недійсний CRON`,"ra_Invalid JSON":`Недійсний JSON`,"ra_Invalid JSON file.":`Недійсний JSON-файл.`,"ra_Invalid JSON format. Expected an array.":`Недійсний формат JSON. Очікується масив.`,"ra_Invalid answer from server":`Недійсна відповідь від сервера`,"ra_Invalid parent folder!":`Недійсна батьківська папка!`,"ra_Invalid structure":`Недійсна структура`,"ra_JSON editor":`Редактор JSON`,"ra_Last change":`Остання зміна`,ra_Latitude:`Широта`,"ra_License %s":`Ліцензія %s`,"ra_License agreement":`Ліцензійна угода`,"ra_License does not exist":`Ліцензії не існує`,"ra_License expired on %s":`Термін дії ліцензії закінчився %s`,'ra_License for other product "%s"':`Ліцензія на інший продукт "%s"`,"ra_License is for version %s, but required version is %s.":`Ліцензія для версії %s, але потрібна версія %s.`,"ra_License must be converted":`Ліцензію необхідно конвертувати до новішої версії. Ви можете зробити це у своєму профілі на iobroker.net.`,"ra_License not found in license manager. Do you want to read licenses from iobroker.net?":`Ліцензія не знайдена в менеджері ліцензій. Хочете оновити ліцензії з iobroker.net?`,"ra_Listen on all IPs":`Прослуховування на всіх IP`,"ra_Load configuration from file":`Завантажити конфігурацію з файлу`,ra_Logout:`Вийти`,ra_Longitude:`Довгота`,'ra_May not trigger "updateLicenses"':`Може не запускати "updateLicenses"`,ra_Message:`повідомлення`,ra_Monday:`понеділок`,"ra_Move down":`Рухатися вниз`,"ra_Move up":`Рухатися вгору`,ra_Name:`Ім'я`,"ra_No data found in file":`Немає даних у файлі`,"ra_No one license found in license manager":`У менеджері ліцензій не знайдено жодної ліцензії`,"ra_No response from admin":`Немає відповіді від адміністратора`,"ra_No response from the backend":`Немає відповіді від сервера`,'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':`Неексперти можуть створювати нові об’єкти лише в «0_userdata.0» або «alias.0».`,"ra_Not a number":`Не номер`,"ra_OAuth Client ID":`Ідентифікатор клієнта OAuth`,"ra_OAuth Client secret":`Секрет клієнта OAuth`,ra_Objects:`Об'єкти`,ra_Ok:`В порядку`,"ra_On weekdays":`В будні дні`,"ra_Only following structures of objects are available:":`Доступні тільки такі структури об'єктів:`,"ra_Only selected":`Тільки обрані`,"ra_Owner group":`Група власників`,"ra_Owner user":`Користувач-власник`,"ra_Passwords are not equal!":`Паролі не бувають рівними!`,"ra_Place your files here or click here to open the browse dialog":`Розмістіть свої файли тут або натисніть тут, щоб відкрити діалогове вікно перегляду`,"ra_Please allow popups in your browser for this page!":`Будь ласка, дозвольте спливаючі вікна у вашому браузері для цієї сторінки!`,"ra_Please confirm":`Будь-ласка підтвердіть`,"ra_Please create license":`Будь ласка, створіть ліцензію`,"ra_Please enter the license":`Будь ласка, введіть ліцензію`,"ra_Please select file...":`Виберіть файл...`,"ra_Please select object ID...":`Виберіть ідентифікатор об'єкта...`,"ra_Port could be used by %s":`Порт може використовуватися %s`,"ra_Port is already used by %s":`Порт уже використовується %s`,"ra_Press ENTER Key to add new item":`Натисніть клавішу ENTER, щоб додати новий елемент`,"ra_Private certificate":`Приватний сертифікат`,ra_Product:`Продукт`,"ra_Public certificate":`Публічний сертифікат`,"ra_Quality code":`якість`,"ra_Refresh tree":`Оновити дерево`,"ra_Reload files":`Перезавантажте файли`,ra_Rename_Move_Copy:`Перейменувати/Перемістити/Копіювати`,"ra_Renew %s access":`Поновити доступ %s`,ra_Repeat:`Повторіть`,ra_Replace:`Замінити`,"ra_Request timed out":`Час запиту вичерпано`,"ra_Restrict to folder":`Обмежити папкою`,ra_Root:`Корінь`,ra_Saturday:`Субота`,ra_Save:`зберегти`,"ra_Save and close":`Зберегти та закрити`,"ra_Save configuration to file":`Зберегти конфігурацію у файл`,"ra_Save objects tree as JSON file":`Зберегти дерево об’єктів як файл JSON`,"ra_Select all":`Вибрати все`,"ra_Select color":`Виберіть колір`,"ra_Select predefined icon":`Виберіть попередньо визначений значок`,"ra_Select type of export":`Виберіть тип експорту`,ra_Selected:`Вибране`,"ra_Selected %s object(s)":`Вибрані об’єкти %s`,"ra_Serial number (UUID)":`Серійний номер (UUID)`,'ra_Serial number (UUID) "%s" in license is for other device.':`Серійний номер (UUID) "%s" у ліцензії призначений для іншого пристрою.`,"ra_Session will expire in %s seconds. Continue?":`Сеанс закінчиться через %s секунд. Продовжити?`,"ra_Show all folders":`Показати всі папки`,"ra_Show lines between rows":`Показувати лінії між рядками`,"ra_Show/Hide object descriptions":`Показати/Сховати описи об’єктів`,"ra_Show/hide filter input":`Показати/сховати введення фільтра`,"ra_Some data are not stored. Discard?":`Деякі дані не зберігаються. Відкинути?`,ra_States:`держави`,"ra_Successfully authorized. Token valid till %s and will be automatically renewed.":`Авторизацію успішно пройшло. Токен дійсний до %s та буде автоматично поновлено.`,"ra_Successfully authorized. Token valid till %s but it can expire as the instance is not running.":`Авторизацію успішно виконано. Токен дійсний до %s, але його термін дії може закінчитися, оскільки екземпляр не запущено.`,"ra_Suitable license not found in license manager":`Відповідна ліцензія не знайдена в менеджері ліцензій`,ra_Sunday:`неділя`,"ra_Suppress question for next %s minutes":`Приховати запитання на наступні %s хвилин`,"ra_System language":`Системна мова`,"ra_Take browser position":`Займіть позицію з браузера`,"ra_Take position from system settings":`Займіть позицію в налаштуваннях системи`,'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':`Експерти можуть створювати об’єкти всюди, крім другого рівня (наприклад, «vis.0» або «javascript.0»).`,"ra_The page you are looking for was not found":`Сторінка, яку ви шукаєте, не знайдена`,"ra_The schedule will be executed every minute. Are you sure?":`Розклад буде виконуватися щохвилини. Ви впевнені?`,"ra_The schedule will be executed every second. Are you sure?":`Розклад буде виконуватися щосекунди. Ви впевнені?`,ra_Thursday:`четвер`,ra_Timestamp:`Мітка часу`,"ra_Toggle expert mode":`Перемкнути експертний режим`,"ra_Toggle the states view":`Перемкнути перегляд штатів`,"ra_Toggle view mode":`Перемкнути режим перегляду`,"ra_Too big":`Занадто великий`,"ra_Too small":`Занадто малий`,"ra_Transparent dialog":`Прозорий діалог`,ra_Tuesday:`вівторок`,"ra_Unknown error":`Невідома помилка`,"ra_Unknown error!":`Невідома помилка!`,ra_Update:`оновлення`,"ra_Upload file":`Завантажити файл`,"ra_Use all available let's encrypt certificates":`Використовуйте всі доступні сертифікати let's encrypt`,"ra_Use iobroker.acme adapter for letsencrypt certificates":`Використовуйте адаптер iobroker.acme для сертифікатів letsencrypt`,"ra_Use system settings for position":`Використовуйте системні налаштування для позиції`,"ra_Used system settings":`Використані системні налаштування`,"ra_User files":`Файли користувача`,ra_ValidTill:`Дійсний до`,ra_Value:`Значення`,ra_Version:`Версія`,"ra_View file":`Переглянути файл`,"ra_View: %s":`Перегляд: %s`,ra_Wednesday:`Середа`,ra_Width:`Ширина`,"ra_YAML editor":`Редактор YAML`,ra_Yes:`Так`,"ra_You can export all objects or just the selected branch.":`Ви можете експортувати всі об’єкти або лише вибрану гілку.`,"ra_You can filter entries by entering here some text":`Ви можете фільтрувати записи, ввівши тут певний текст`,"ra_You can use * as wildcard":`Ви можете використовувати * як символ підстановки`,ra___different__:`інший`,ra_aclEveryone_read_object:`Кожен може читати об'єкт`,ra_aclEveryone_read_state:`Кожен може читати стан`,ra_aclEveryone_write_object:`Кожен може написати об'єкт`,ra_aclEveryone_write_state:`Кожен може написати стан`,ra_aclGroup_read_object:`Група може читати об'єкт`,ra_aclGroup_read_state:`Група може читати стан`,ra_aclGroup_write_object:`Група може писати об'єкт`,ra_aclGroup_write_state:`Група може писати стан`,ra_aclOwner_read_object:`Власник може читати об'єкт`,ra_aclOwner_read_state:`Власник може читати стан`,ra_aclOwner_write_object:`Власник може написати об'єкт`,ra_aclOwner_write_state:`Власник може написати стан`,ra_buttons:`кнопки`,ra_changedFrom:`Змінено з`,ra_close:`закрити`,ra_create_boolean_state:`Створіть логічний стан`,ra_create_channel:`Створити канал`,ra_create_device:`Створити пристрій`,ra_create_number_state:`Створити номерний стан`,ra_create_state:`Створити состояние`,ra_create_string_state:`Створити рядковий стан`,ra_daysShortText:`днів`,ra_dow_Fr:`О`,ra_dow_Mo:`пн`,ra_dow_Sa:`Sa`,ra_dow_Su:`Нд`,ra_dow_Th:`чт`,ra_dow_Tu:`вт`,ra_dow_We:`ми`,ra_expertMode:`Експертний режим`,ra_false:`НЕПРАВДА`,ra_fileType_all:`Всі файли`,ra_fileType_audio:`Аудіо`,ra_fileType_code:`Код/JSON`,ra_fileType_images:`Зображення`,ra_fileType_txt:`текст`,ra_fileType_video:`відео`,"ra_fileType_video,":`відео`,ra_filter_customs:`Налаштування`,ra_filter_customs_without:`без`,ra_filter_func:`функція`,ra_filter_id:`ID`,ra_filter_name:`Ім'я`,ra_filter_role:`Роль`,ra_filter_room:`Кімната`,ra_filter_type:`Тип`,"ra_import data from %s file":`Імпортувати дані з файлу %s`,ra_invalidConfig:`Недійсні налаштування`,ra_lastChange:`Остання зміна`,ra_locally:`локально`,ra_month_Apr:`квіт`,ra_month_Aug:`серп`,ra_month_Dec:`груд`,ra_month_Feb:`лютий`,ra_month_Jan:`січня`,ra_month_Jul:`лип`,ra_month_Jun:`черв`,ra_month_Mai:`травень`,ra_month_Mar:`березень`,ra_month_Nov:`Листопад`,ra_month_Oct:`жовт`,ra_month_Sep:`вер`,ra_months_Apr:`квіт`,ra_months_Aug:`серп`,ra_months_Dec:`груд`,ra_months_Feb:`лютий`,ra_months_Jan:`січня`,ra_months_Jul:`лип`,ra_months_Jun:`черв`,ra_months_Mai:`травень`,ra_months_Mar:`березень`,ra_months_Nov:`Листопад`,ra_months_Oct:`жовт`,ra_months_Sep:`вер`,"ra_no confirm for 5 mins":`без підтвердження протягом 5 хв`,ra_none:`немає`,ra_object_changed_by:`Об'єкт змінено`,ra_object_changed_by_user:`Об'єкт востаннє змінено о`,ra_otherConfig:`Налаштування з іншого адаптера %s`,ra_qualityCode:`Код якості`,ra_repeat:`повторити`,ra_select_folder_hint:`Щоб вибрати папку, просто клацніть папку, утримуючи клавішу «Shift».`,ra_show_all:`Показати все`,ra_state_changed_by:`Стан змінено на`,ra_state_changed_from:`Об'єкт змінено з`,ra_timestamp:`Мітка часу`,ra_tooltip_ack:`Визнано`,ra_tooltip_comment:`коментар`,ra_tooltip_copyState:`Скопіюйте значення стану`,ra_tooltip_ctrlForLink:`Утримуйте клавішу Cltr/⌘, щоб відкрити посилання`,ra_tooltip_customConfig:`Спеціальні налаштування`,ra_tooltip_deleteObject:`Видалити об'єкт`,ra_tooltip_editObject:`Редагувати об'єкт`,ra_tooltip_editState:`Відредагуйте значення стану`,ra_tooltip_expire:`Термін дії закінчується через`,ra_tooltip_from:`Від`,ra_tooltip_lc:`Востаннє змінено`,ra_tooltip_quality:`якість`,ra_tooltip_ts:`Позначка часу`,ra_tooltip_user:`Користувач`,ra_tooltip_value:`Значення`,ra_true:`ПРАВДА`,"ra_use seconds":`використовуйте секунди`,ra_val:`Значення`,"ra_via internet":`через інтернет`,ra_warning_every_minute:`Попередження: завдання CRON виконуватиметься щохвилини протягом зазначеного періоду!`,ra_warning_every_second:`Попередження: завдання CRON виконуватиметься кожну секунду протягом зазначеного періоду!`,sc_cron:`CRON`,sc_date:`Дата`,sc_dates:`дати`,sc_dow:`День`,sc_dows:`День тижня`,sc_every:`кожен`,sc_everyN_dates:`кожні N днів`,sc_everyN_dow:`кожен N-й день тижня`,sc_everyN_dows:`кожні N днів тижня`,sc_everyN_hours:`кожні N годин`,sc_everyN_minutes:`кожні N хвилин`,sc_everyN_months:`кожні N місяців`,sc_everyN_seconds:`кожні N секунд`,sc_every_dates:`кожен день`,sc_every_dow:`кожен день тижня`,sc_every_dows:`кожен день тижня`,sc_every_hours:`щогодини`,sc_every_minutes:`кожну хвилину`,sc_every_months:`щомісяця`,sc_every_seconds:`кожна секунда`,sc_from:`Від`,sc_hours:`години`,sc_interval:`Інтервал`,sc_intervalBetween:`Інтервал між`,sc_invalid_cron:`Недійсний CRON`,sc_minutes:`хвилин`,sc_months:`місяців`,sc_once:`Один раз`,sc_period:`Крапка`,sc_seconds:`секунд`,sc_simple:`просто`,sc_specific:`Конкретний час`,sc_specific_dates:`конкретні дати`,sc_specific_dow:`конкретний день (дні) тижня`,sc_specific_dows:`конкретний день тижня`,sc_specific_hours:`конкретні години`,sc_specific_minutes:`конкретні хвилини`,sc_specific_months:`конкретні місяці`,sc_specific_seconds:`конкретні секунди`,sc_time:`час`,sc_to:`до`,sc_wizard:`майстер`,sch_all:`все`,sch_astroDay:`Астродень`,sch_astroNight:`Астро ніч`,sch_astro_dawn:`Світанок`,sch_astro_dusk:`Сутінки`,sch_astro_goldenHour:`Золота година`,sch_astro_goldenHourEnd:`Кінець золотої години`,sch_astro_nadir:`Надір`,sch_astro_nauticalDawn:`Морський світанок`,sch_astro_nauticalDusk:`Морські сутінки`,sch_astro_night:`ніч`,sch_astro_nightEnd:`Кінець ночі`,sch_astro_solarNoon:`Сонячний полудень`,sch_astro_sunrise:`Схід сонця`,sch_astro_sunriseEnd:`Кінець сходу сонця`,sch_astro_sunset:`Захід сонця`,sch_astro_sunsetStart:`Початок заходу сонця`,sch_at:`в`,sch_desc_atTime:`в %s`,sch_desc_everyDay:`кожен день`,sch_desc_everyHour:`щогодини`,sch_desc_everyMinute:`кожну хвилину`,sch_desc_everyMonth:`щомісяця`,sch_desc_everyNDay:`кожен %s день`,sch_desc_everyNHours:`кожні %s годин`,sch_desc_everyNMinutes:`кожні %s хвилин`,sch_desc_everyNMonths:`кожні %s місяців`,sch_desc_everyNWeeks:`кожні %s тижнів`,sch_desc_everyNYears:`кожні %s років`,sch_desc_everyWeek:`щотижня`,sch_desc_everyYear:`щороку`,sch_desc_intervalFromTo:`від %s до %s`,sch_desc_never:`ніколи`,sch_desc_onDate:`на %s з %s`,sch_desc_onDates:`на %s і %s з`,sch_desc_onEveryDate:`на кожну дату`,sch_desc_onMonth:`%s`,sch_desc_onMonths:`%s і %s`,sch_desc_onWeekday:`на %s`,sch_desc_onWeekdays:`на %s і %s`,sch_desc_onWeekends:`на вихідних`,sch_desc_onWorkdays:`в робочі дні`,sch_desc_onceInPast:`більше не виконуватиметься, оскільки запуск у минулому`,sch_desc_once_on:`на %s`,sch_desc_validFrom:`від %s`,sch_desc_validFromTo:`Виконати від до`,sch_desc_validTo:`до %s`,sch_every:`кожен`,sch_exactTime:`Конкретний час`,sch_from:`від`,sch_fromTo:`Від до`,sch_intervalTime:`Час інтервалу`,sch_invert:`інвертувати`,sch_no_one:`немає`,sch_on:`на`,sch_period:`Крапка`,sch_periodDaily:`Щодня`,sch_periodDates:`дати`,sch_periodDay:`День`,sch_periodEvery:`кожен`,sch_periodEveryDay:`Кожен день`,sch_periodEveryMonth:`Щомісяця`,sch_periodEveryWeek:`Щотижня`,sch_periodEveryYear:`Щороку`,sch_periodHours:`години`,sch_periodMinutes:`хвилин`,sch_periodMonth:`місяць`,sch_periodMonthly:`Щомісяця`,sch_periodOnce:`Один раз`,sch_periodSpecificMonths:`Конкретні місяці`,sch_periodWeek:`тиждень`,sch_periodWeekdays:`будні`,sch_periodWeekend:`Вихідні`,sch_periodWeekly:`Щотижня`,sch_periodWorkdays:`робочі дні`,sch_periodYear:`рік`,sch_periodYearly:`щорічно`,sch_specificTime:`Конкретний час`,sch_time:`час`,sch_to:`до`,sch_valid:`Дійсний`,sch_validFrom:`від`,sch_validTo:`до`,sch_wholeDay:`Цілий день`,sch_yearEveryMonth:`щомісяця`},"zh-cn":{"ra_%s links from aliases":`来自别名的 %s 个链接`,"ra_%s object(s) processed":`已处理%s个对象`,"ra_%s was imported":`对象已导入`,"ra_Accept license":`接受许可`,ra_Actions:`操作`,"ra_Add new child object to selected parent":`将新的子对象添加到选定的父对象`,"ra_Add objects tree from JSON file":`从JSON文件添加对象树`,"ra_Add row":`添加行`,"ra_Advanced options":`高级选项`,"ra_All items are filtered out":`所有项目都被过滤掉`,"ra_All objects":`所有对象`,ra_Append:`附加`,"ra_Append %s entries or replace existing?":`追加 %s 条目还是替换现有条目?`,"ra_Append or replace?":`追加还是替换?`,"ra_Are you sure?":`你确定吗?`,"ra_Auto (no custom columns)":`自动(无自定义列)`,"ra_Back to %s":`返回“%s”`,"ra_Background image":`背景图像`,ra_Cancel:`取消`,"ra_Cannot add items with set filter":`无法使用设置过滤器添加项目`,"ra_Cannot decode license":`无法解码许可证`,"ra_Cannot determine position: System settings are empty and GPS detection is disabled in browser":`无法确定位置:系统设置为空且浏览器中禁用了 GPS 检测`,'ra_Cannot find "%s"':`找不到“%s”`,'ra_Cannot read "%s"':`无法阅读“%s”`,"ra_Cannot read licenses: %s":`无法读取许可证:%s`,"ra_Cannot retrieve options, as instance is offline":`无法检索选项,因为实例处于脱机状态`,"ra_Cannot update attribute, because not found in the object":`无法更新属性,因为在对象中找不到`,"ra_Cannot upload":`无法上传`,ra_Categories:`类别`,"ra_Chained certificate":`链式证书`,"ra_Change color theme":`更改颜色主题`,"ra_Changed from":`更改为`,"ra_Channel → State":`频道→状态`,"ra_Check license":`检查许可证`,ra_Checked:`勾选`,ra_Clear:`删除`,"ra_Clear filter":`清除筛选`,"ra_Clear icon":`清除图标`,"ra_Click to see in full size":`点击查看完整尺寸`,"ra_Click to show":`点击显示`,"ra_Clone current row":`克隆当前行`,ra_Close:`关`,"ra_Collapse all nodes":`收合所有节点`,"ra_Collapse one step node":`折叠一级`,ra_Commercial:`商业的`,ra_Configure:`配置`,"ra_Configure visible columns":`配置可见列`,"ra_Confirm deletion of %s":`确认删除%s`,ra_Connected:`连接的`,ra_Continue:`继续`,ra_Copied:`复制的`,"ra_Copied %s":`复制的"%s"`,"ra_Copy content":`复制内容`,ra_Create:`创建`,"ra_Create alias":`创建别名`,"ra_Create folder":`创建文件夹`,"ra_Create new folder in %s":`在%s中创建新文件夹`,ra_Crop:`庄稼`,"ra_Define CRON...":`定义 CRON...`,"ra_Define functions":`定义功能`,"ra_Define rooms":`定义房间`,"ra_Define schedule":`定义时间表`,"ra_Define schedule...":`定义时间表...`,ra_Del:`Delete`,ra_Delete:`删除`,"ra_Delete current row":`删除当前行`,"ra_Deselect all":`全部取消选择`,"ra_Device → Channel → State":`设备→频道→状态`,"ra_Disable/Enable translation":`禁用/启用翻译`,ra_Discard:`丢弃`,ra_Disconnected:`断开连接`,"ra_Do not ask for next 2 hours in this session":`本次会话中不要询问接下来的 2 个小时`,"ra_Do not export values of states":`不导出状态值`,"ra_Do not use let's encrypt":`不要使用让我们加密`,"ra_Docker is not available":`Docker 不可用`,"ra_Docker is not installed or not running":`Docker 未安装或未运行`,"ra_Double click to reset table layout":`双击重置表格布局`,"ra_Drag 'n' drop some files here, or click to select files":`将一些文件拖放到此处,或单击以选择文件`,"ra_Drop file here":`将档案放在这里`,"ra_Drop the files here...":`把文件放在这里...`,"ra_Duplicate name":`名称重复`,"ra_Edit ACL":`编辑访问控制列表`,"ra_Edit alias":`编辑别名`,"ra_Edit custom config":`编辑自定义配置`,"ra_Edit full path":`编辑完整路径`,"ra_Edit function":`编辑功能`,"ra_Edit object field":`编辑对象字段`,"ra_Edit role":`编辑角色`,"ra_Edit room":`编辑室`,"ra_Edit value":`编辑值`,"ra_Enter the code from that page here":`在此处输入该页面的代码`,ra_Error:`错误`,"ra_Expand all nodes":`展开所有节点`,"ra_Expand one step node":`扩大一级`,"ra_Expand/Collapse card":`展开/折叠卡`,"ra_Export configuration section":`导出配置部分`,"ra_Export data to %s file":`将数据导出到 %s 文件`,"ra_Failed to open JSON File":`无法打开JSON文件`,"ra_Fallback custom certificates":`后备自定义证书`,"ra_File is too big. Max %sk allowed. Try use SVG.":`文件太大。允许的最大字节%s数。尝试使用 SVG。`,ra_Filter:`筛选`,"ra_Filter and Data Actions":`过滤和数据操作`,"ra_Filter files":`过滤文件`,"ra_Folder name":`文件夹名称`,"ra_Folder → Channel → State":`文件夹→频道→状态`,"ra_Folder → Device → Channel → State":`文件夹→设备→频道→状态`,"ra_Folder → State":`文件夹→状态`,"ra_Folders always first":`资料夹永远优先`,ra_Friday:`星期五`,"ra_From file":`从文件`,"ra_From text":`文本`,"ra_Get %s access":`获取 %s 访问权限`,"ra_Good luck":`祝你好运`,"ra_Hide empty folders":`隐藏空文件夹`,"ra_If no file will be created in the folder, it will disappear after the browser closed":`如果在该文件夹中未创建任何文件,则该文件将在浏览器关闭后消失`,"ra_If the button above does not work, you can authorize manually this app by visiting this url":`如果上面的按钮不起作用,您可以通过访问此网址手动授权此应用`,"ra_Import and add configuration section":`导入并添加配置部分`,"ra_Import and replace configuration section":`导入和替换配置部分`,"ra_Import data from %s file":`从 %s 文件导入数据`,"ra_Import from %s":`从 %s 导入`,"ra_Instance %s is alive":`实例 %s 是活动的`,"ra_Instance %s is not alive":`实例 %s 不存在`,"ra_Instance is not alive":`实例不存在`,"ra_Invalid CRON":`无效的 CRON`,"ra_Invalid JSON":`JSON 无效`,"ra_Invalid JSON file.":`无效的JSON文件。`,"ra_Invalid JSON format. Expected an array.":`JSON格式无效。应为数组。`,"ra_Invalid answer from server":`来自服务器的无效答案`,"ra_Invalid parent folder!":`父文件夹无效!`,"ra_Invalid structure":`结构无效`,"ra_JSON editor":`JSON 编辑器`,"ra_Last change":`最后一次变更`,ra_Latitude:`纬度`,"ra_License %s":`许可证 %s`,"ra_License agreement":`许可协议`,"ra_License does not exist":`许可证不存在`,"ra_License expired on %s":`许可证已于 %s 过期`,'ra_License for other product "%s"':`其他产品“%s”的许可证`,"ra_License is for version %s, but required version is %s.":`许可证适用于版本 %s,但所需版本为 %s。`,"ra_License must be converted":`许可证必须转换为更新版本。您可以在 iobroker.net 个人资料中执行此操作。`,"ra_License not found in license manager. Do you want to read licenses from iobroker.net?":`在许可证管理器中找不到许可证。您要从 iobroker.net 更新许可证吗?`,"ra_Listen on all IPs":`监听所有IP`,"ra_Load configuration from file":`从文件加载配置`,ra_Logout:`登出`,ra_Longitude:`经度`,'ra_May not trigger "updateLicenses"':`可能不会触发“updateLicenses”`,ra_Message:`信息`,ra_Monday:`周一`,"ra_Move down":`下移`,"ra_Move up":`提升`,ra_Name:`姓名`,"ra_No data found in file":`文件中未找到数据`,"ra_No one license found in license manager":`许可证管理器中未找到任何许可证`,"ra_No response from admin":`管理员没有回应`,"ra_No response from the backend":`后端无响应`,'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':`非专家只能在“ 0_userdata.0”或“ alias.0”中创建新对象。`,"ra_Not a number":`不是数字`,"ra_OAuth Client ID":`OAuth客户端ID`,"ra_OAuth Client secret":`OAuth 客户端密钥`,ra_Objects:`对象`,ra_Ok:`好`,"ra_On weekdays":`在工作日`,"ra_Only following structures of objects are available:":`仅以下对象结构可用:`,"ra_Only selected":`只选择`,"ra_Owner group":`所有者组`,"ra_Owner user":`所有者用户`,"ra_Passwords are not equal!":`密码不相等!`,"ra_Place your files here or click here to open the browse dialog":`将文件放在此处或单击此处打开浏览对话框`,"ra_Please allow popups in your browser for this page!":`请允许浏览器弹出此页面!`,"ra_Please confirm":`请确认`,"ra_Please create license":`请创建许可证`,"ra_Please enter the license":`请输入许可证`,"ra_Please select file...":`请选择文件...`,"ra_Please select object ID...":`请选择对象ID ...`,"ra_Port could be used by %s":`%s 可以使用端口`,"ra_Port is already used by %s":`端口已被 %s 使用`,"ra_Press ENTER Key to add new item":`按 ENTER 键添加新项目`,"ra_Private certificate":`私有证书`,ra_Product:`产品`,"ra_Public certificate":`公共证书`,"ra_Quality code":`质量代码`,"ra_Refresh tree":`刷新树`,"ra_Reload files":`重新载入文件`,ra_Rename_Move_Copy:`重命名/移动/复制`,"ra_Renew %s access":`续订 %s 访问权限`,ra_Repeat:`重复`,ra_Replace:`代替`,"ra_Request timed out":`请求超时`,"ra_Restrict to folder":`限制到文件夹`,ra_Root:`根`,ra_Saturday:`周六`,ra_Save:`保存`,"ra_Save and close":`保存并关闭`,"ra_Save configuration to file":`将配置保存到文件`,"ra_Save objects tree as JSON file":`将对象树另存为JSON文件`,"ra_Select all":`全选`,"ra_Select color":`选择颜色`,"ra_Select predefined icon":`选择预定义图标`,"ra_Select type of export":`选择导出类型`,ra_Selected:`已选`,"ra_Selected %s object(s)":`选定的 %s 个对象`,"ra_Serial number (UUID)":`序列号 (UUID)`,'ra_Serial number (UUID) "%s" in license is for other device.':`许可证中的序列号 (UUID)“%s”用于其他设备。`,"ra_Session will expire in %s seconds. Continue?":`会话将在 %s 秒后过期。是否继续?`,"ra_Show all folders":`显示所有文件夹`,"ra_Show lines between rows":`显示行之间的线`,"ra_Show/Hide object descriptions":`显示/隐藏对象描述`,"ra_Show/hide filter input":`显示/隐藏过滤器输入`,"ra_Some data are not stored. Discard?":`部分数据未存储。丢弃?`,ra_States:`状态`,"ra_Successfully authorized. Token valid till %s and will be automatically renewed.":`授权成功。令牌有效期至 %s,并将自动续订。`,"ra_Successfully authorized. Token valid till %s but it can expire as the instance is not running.":`授权成功。令牌有效期至 %s,但由于实例未运行,令牌可能会过期。`,"ra_Suitable license not found in license manager":`在许可证管理器中找不到合适的许可证`,ra_Sunday:`星期日`,"ra_Suppress question for next %s minutes":`在接下来的%s分钟内取消提问`,"ra_System language":`系统语言`,"ra_Take browser position":`从浏览器获取位置`,"ra_Take position from system settings":`从系统设置中获取位置`,'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':`专家可以在任何地方创建对象,但要从第二层开始(例如“ vis.0”或“ javascript.0”)。`,"ra_The page you are looking for was not found":`未找到您要查找的页面`,"ra_The schedule will be executed every minute. Are you sure?":`该计划将每分钟执行一次。您确定吗?`,"ra_The schedule will be executed every second. Are you sure?":`该计划将每秒执行一次。你确定吗?`,ra_Thursday:`周四`,ra_Timestamp:`时间戳记`,"ra_Toggle expert mode":`切换专家模式`,"ra_Toggle the states view":`切换状态视图`,"ra_Toggle view mode":`切换检视模式`,"ra_Too big":`太大`,"ra_Too small":`太小`,"ra_Transparent dialog":`透明对话框`,ra_Tuesday:`周二`,"ra_Unknown error":`未知错误`,"ra_Unknown error!":`未知错误!`,ra_Update:`更新资料`,"ra_Upload file":`上传文件`,"ra_Use all available let's encrypt certificates":`使用所有可用的让我们加密证书`,"ra_Use iobroker.acme adapter for letsencrypt certificates":`使用 iobroker.acme 适配器获取 letsencrypt 证书`,"ra_Use system settings for position":`使用系统设置定位`,"ra_Used system settings":`使用的系统设置`,"ra_User files":`用户档案`,ra_ValidTill:`有效期至`,ra_Value:`值`,ra_Version:`版本`,"ra_View file":`查看文件`,"ra_View: %s":`查看:%s`,ra_Wednesday:`周三`,ra_Width:`宽度`,"ra_YAML editor":`YAML 编辑器`,ra_Yes:`是的`,"ra_You can export all objects or just the selected branch.":`您可以导出所有对象或仅导出选定的分支。`,"ra_You can filter entries by entering here some text":`您可以通过在此处输入一些文本来过滤条目`,"ra_You can use * as wildcard":`您可以使用 * 作为通配符`,ra___different__:`不同的`,ra_aclEveryone_read_object:`每个人都可以阅读对象`,ra_aclEveryone_read_state:`每个人都可以阅读状态`,ra_aclEveryone_write_object:`每个人都可以写对象`,ra_aclEveryone_write_state:`每个人都可以写状态`,ra_aclGroup_read_object:`组可以读取对象`,ra_aclGroup_read_state:`群组可以读取状态`,ra_aclGroup_write_object:`组可以写对象`,ra_aclGroup_write_state:`组可以写状态`,ra_aclOwner_read_object:`所有者可以读取对象`,ra_aclOwner_read_state:`所有者可以读取状态`,ra_aclOwner_write_object:`所有者可以写对象`,ra_aclOwner_write_state:`所有者可以写状态`,ra_buttons:`纽扣`,ra_changedFrom:`更改为`,ra_close:`关闭`,ra_create_boolean_state:`创建布尔状态`,ra_create_channel:`创建频道`,ra_create_device:`创建设备`,ra_create_number_state:`创建号码状态`,ra_create_state:`创建状态`,ra_create_string_state:`创建字符串状态`,ra_daysShortText:`天`,ra_dow_Fr:`r`,ra_dow_Mo:`莫`,ra_dow_Sa:`萨`,ra_dow_Su:`苏`,ra_dow_Th:`Th`,ra_dow_Tu:`Tu`,ra_dow_We:`我们`,ra_expertMode:`专家模式`,ra_false:`错误的`,ra_fileType_all:`所有文件`,ra_fileType_audio:`声音的`,ra_fileType_code:`代码/JSON`,ra_fileType_images:`图片`,ra_fileType_txt:`文本`,ra_fileType_video:`视频`,"ra_fileType_video,":`视频`,ra_filter_customs:`设定值`,ra_filter_customs_without:`没有`,ra_filter_func:`功能`,ra_filter_id:`ID`,ra_filter_name:`名称`,ra_filter_role:`角色`,ra_filter_room:`房间`,ra_filter_type:`类型`,"ra_import data from %s file":`从 %s 文件导入数据`,ra_invalidConfig:`无效的设定`,ra_lastChange:`最后一次变更`,ra_locally:`本地`,ra_month_Apr:`4月`,ra_month_Aug:`八月`,ra_month_Dec:`十二月`,ra_month_Feb:`二月`,ra_month_Jan:`简`,ra_month_Jul:`七月`,ra_month_Jun:`君`,ra_month_Mai:`迈`,ra_month_Mar:`三月`,ra_month_Nov:`十一月`,ra_month_Oct:`十月`,ra_month_Sep:`九月`,ra_months_Apr:`4月`,ra_months_Aug:`八月`,ra_months_Dec:`十二月`,ra_months_Feb:`二月`,ra_months_Jan:`简`,ra_months_Jul:`七月`,ra_months_Jun:`君`,ra_months_Mai:`迈`,ra_months_Mar:`三月`,ra_months_Nov:`十一月`,ra_months_Oct:`十月`,ra_months_Sep:`九月`,"ra_no confirm for 5 mins":`5分钟内无需确认`,ra_none:`没有任何`,ra_object_changed_by:`物件变更者`,ra_object_changed_by_user:`对象上次更改时间为`,ra_otherConfig:`来自其他适配器%s的设置`,ra_qualityCode:`质量代码`,ra_repeat:`重复`,ra_select_folder_hint:`要选择文件夹,只需按住“shift”键单击文件夹即可。`,ra_show_all:`显示全部`,ra_state_changed_by:`状态由`,ra_state_changed_from:`对象已从更改`,ra_timestamp:`时间戳记`,ra_tooltip_ack:`致谢国旗`,ra_tooltip_comment:`评论`,ra_tooltip_copyState:`复制状态值`,ra_tooltip_ctrlForLink:`按住 Cltr/⌘ 键打开链接`,ra_tooltip_customConfig:`自定义设置`,ra_tooltip_deleteObject:`删除物件`,ra_tooltip_editObject:`编辑物件`,ra_tooltip_editState:`编辑状态值`,ra_tooltip_expire:`有效期:`,ra_tooltip_from:`从`,ra_tooltip_lc:`最后改变了`,ra_tooltip_quality:`质量`,ra_tooltip_ts:`时间戳`,ra_tooltip_user:`用户`,ra_tooltip_value:`值`,ra_true:`真的`,"ra_use seconds":`用秒`,ra_val:`值`,"ra_via internet":`通过互联网`,ra_warning_every_minute:`警告:CRON 作业将在指定期间内每分钟运行一次!`,ra_warning_every_second:`警告:CRON 作业将在指定期间内每秒运行一次!`,sc_cron:`周期任务`,sc_date:`日期`,sc_dates:`日`,sc_dow:`天`,sc_dows:`星期`,sc_every:`每`,sc_everyN_dates:`每N天`,sc_everyN_dow:`每周的第 N 天`,sc_everyN_dows:`每周N天`,sc_everyN_hours:`每N小时一次`,sc_everyN_minutes:`每N分钟`,sc_everyN_months:`每N个月`,sc_everyN_seconds:`每N秒`,sc_every_dates:`每天`,sc_every_dow:`一周的每一天`,sc_every_dows:`一周的每一天`,sc_every_hours:`每小时`,sc_every_minutes:`每分钟`,sc_every_months:`每月`,sc_every_seconds:`每秒`,sc_from:`从`,sc_hours:`小时`,sc_interval:`间隔`,sc_intervalBetween:`间隔时间`,sc_invalid_cron:`无效的 CRON`,sc_minutes:`分钟`,sc_months:`月`,sc_once:`一次`,sc_period:`周期`,sc_seconds:`秒`,sc_simple:`简单模式`,sc_specific:`特定的时间`,sc_specific_dates:`特定的日子`,sc_specific_dow:`一周中的特定日子`,sc_specific_dows:`特定的一周`,sc_specific_hours:`特定的小时`,sc_specific_minutes:`特定的分钟`,sc_specific_months:`特定的月份`,sc_specific_seconds:`特定的描述`,sc_time:`时间`,sc_to:`至`,sc_wizard:`向导模式`,sch_all:`全选`,sch_astroDay:`天文白天`,sch_astroNight:`天文夜晚`,sch_astro_dawn:`黎明`,sch_astro_dusk:`黄昏`,sch_astro_goldenHour:`黄金时段`,sch_astro_goldenHourEnd:`黄金时段结束`,sch_astro_nadir:`天底`,sch_astro_nauticalDawn:`航海黎明`,sch_astro_nauticalDusk:`航海黄昏`,sch_astro_night:`夜晚`,sch_astro_nightEnd:`夜晚结束`,sch_astro_solarNoon:`正午`,sch_astro_sunrise:`日出`,sch_astro_sunriseEnd:`日出结束`,sch_astro_sunset:`日落`,sch_astro_sunsetStart:`日落开始`,sch_at:`在`,sch_desc_atTime:`的%s`,sch_desc_everyDay:`每天`,sch_desc_everyHour:`每小时`,sch_desc_everyMinute:`每分钟`,sch_desc_everyMonth:`每月`,sch_desc_everyNDay:`每%s天`,sch_desc_everyNHours:`每%s小时`,sch_desc_everyNMinutes:`每%s分钟`,sch_desc_everyNMonths:`每%s月`,sch_desc_everyNWeeks:`每%s周`,sch_desc_everyNYears:`每%s年`,sch_desc_everyWeek:`每周`,sch_desc_everyYear:`每年`,sch_desc_intervalFromTo:`从%s到%s`,sch_desc_never:`决不`,sch_desc_onDate:`在%s的%s上`,sch_desc_onDates:`在%s和%s上`,sch_desc_onEveryDate:`在每天`,sch_desc_onMonth:`%s`,sch_desc_onMonths:`%s和%s`,sch_desc_onWeekday:`在%s上`,sch_desc_onWeekdays:`在%s和%s上`,sch_desc_onWeekends:`在周末`,sch_desc_onWorkdays:`在工作日`,sch_desc_onceInPast:`将不再执行,因为起始时间已经是过去的时间了。`,sch_desc_once_on:`在%s上`,sch_desc_validFrom:`来自%s`,sch_desc_validFromTo:`从执行到`,sch_desc_validTo:`到%s`,sch_every:`每`,sch_exactTime:`特定的时间`,sch_from:`从`,sch_fromTo:`从到`,sch_intervalTime:`间隔时间`,sch_invert:`倒置`,sch_no_one:`取消全选`,sch_on:`的`,sch_period:`周期`,sch_periodDaily:`每天`,sch_periodDates:`日期`,sch_periodDay:`天`,sch_periodEvery:`每`,sch_periodEveryDay:`每天`,sch_periodEveryMonth:`每月`,sch_periodEveryWeek:`每周`,sch_periodEveryYear:`每年`,sch_periodHours:`小时`,sch_periodMinutes:`分钟`,sch_periodMonth:`月`,sch_periodMonthly:`每月一次`,sch_periodOnce:`一次`,sch_periodSpecificMonths:`特定的月份`,sch_periodWeek:`周`,sch_periodWeekdays:`工作日`,sch_periodWeekend:`周末`,sch_periodWeekly:`每周`,sch_periodWorkdays:`工作日`,sch_periodYear:`年`,sch_periodYearly:`每年`,sch_specificTime:`特定的时间`,sch_time:`时间`,sch_to:`至`,sch_valid:`生效`,sch_validFrom:`从`,sch_validTo:`至`,sch_wholeDay:`一整天`,sch_yearEveryMonth:`每月`}},jA=`
|
|
572
|
+
html {
|
|
573
|
+
height: 100%;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
body {
|
|
577
|
+
margin: 0;
|
|
578
|
+
padding: 0;
|
|
579
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
|
580
|
+
-webkit-font-smoothing: antialiased;
|
|
581
|
+
-moz-osx-font-smoothing: grayscale;
|
|
582
|
+
width: 100%;
|
|
583
|
+
height: 100%;
|
|
584
|
+
overflow: hidden;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
/* scrollbar */
|
|
588
|
+
::-webkit-scrollbar-track {
|
|
589
|
+
background-color: #ccc;
|
|
590
|
+
border-radius: 5px;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
::-webkit-scrollbar {
|
|
594
|
+
width: 5px;
|
|
595
|
+
height: 5px;
|
|
596
|
+
background-color: #ccc;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
::-webkit-scrollbar-thumb {
|
|
600
|
+
background-color: #575757;
|
|
601
|
+
border-radius: 5px;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
#root {
|
|
605
|
+
height: 100%;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
.App {
|
|
609
|
+
height: 100%;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
@keyframes glow {
|
|
613
|
+
from {
|
|
614
|
+
background-color: initial;
|
|
615
|
+
}
|
|
616
|
+
to {
|
|
617
|
+
background-color: #58c458;
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
`;function MA(){try{return window.self!==window.top}catch{return!0}}var NA=class e extends fA{socket;isIFrame=MA();instance;adapterName;instanceId;newReact;encryptedFields;sentryDSN;alertDialogRendered;_secret;_systemConfig;savedNative;common=null;sentryStarted=!1;sentryInited=!1;resizeTimer=null;constructor(t,n){let r=t.Connection||n?.Connection||Hs;if(!window.document.getElementById(`generic-app-iobroker-component`)){let e=window.document.createElement(`style`);e.setAttribute(`id`,`generic-app-iobroker-component`),e.innerHTML=jA,window.document.head.appendChild(e)}if(!e.isWeb()&&window.io&&window.location.port===`3000`)try{let e=new window.SocketClient;delete window.io,window.io=e}catch{}super(t),$k();let i=(window.location.search||``).replace(/^\?/,``).replace(/#.*$/,``),a={};i.trim().split(`&`).filter(e=>e.trim()).forEach(e=>{let t=e.split(`=`),[n,r]=t;a[n]=t.length===2?r:!0,a[n]===`true`?a[n]=!0:a[n]===`false`&&(a[n]=!1)}),this.instance=n?.instance??t.instance??(a.instance===void 0?parseInt(window.location.search.slice(1),10)||0:parseInt(a.instance,10)||0);let o=window.location.pathname.split(`/`);this.adapterName=n?.adapterName||t.adapterName||window.adapterName||o[o.length-2]||`iot`,this.instanceId=`system.adapter.${this.adapterName}.${this.instance}`,this.newReact=a.newReact===!0;let s=fA.getLocation();s.tab=s.tab||(window._localStorage||window.localStorage).getItem(`${this.adapterName}-adapter`)||``;let c=this.createTheme(a.theme);this.state={...this.state,selectedTab:(window._localStorage||window.localStorage).getItem(`${this.adapterName}-adapter`)||``,selectedTabNum:-1,native:{},errorText:``,changed:!1,connected:!1,loaded:!1,isConfigurationError:``,expertMode:!1,toast:``,theme:c,themeName:this.getThemeName(c),themeType:this.getThemeType(c),bottomButtons:(n&&n.bottomButtons)===!1?!1:t?.bottomButtons!==!1,width:e.getWidth(),confirmClose:!1,_alert:!1,_alertType:`info`,_alertMessage:``};let l=AA;n?.translations?Object.keys(n.translations).forEach(e=>{n.translations&&(l[e]=Object.assign(l[e],n.translations[e]||{}))}):t.translations&&Object.keys(t.translations).forEach(e=>{t.translations&&(l[e]=Object.assign(l[e],t.translations[e]||{}))}),vA.setTranslations(l),this.savedNative={},this.encryptedFields=t.encryptedFields||n?.encryptedFields||[],this.sentryDSN=n?.sentryDSN||t.sentryDSN,window.socketUrl&&(window.socketUrl.startsWith(`:`)?window.socketUrl=`${window.location.protocol}//${window.location.hostname}${window.socketUrl}`:!window.socketUrl.startsWith(`http://`)&&!window.socketUrl.startsWith(`https://`)&&(window.socketUrl=`${window.location.protocol}//${window.socketUrl}`)),this.alertDialogRendered=!1,window.iobOldAlert||(window.iobOldAlert=window.alert),window.alert=e=>{if(!this.alertDialogRendered){window.iobOldAlert(e);return}e?.toString().toLowerCase().includes(`error`)?(console.error(e),this.showAlert(e.toString(),`error`)):(console.log(e),this.showAlert(e.toString(),`info`))},this.socket=new r({...t?.socket||n?.socket,name:this.adapterName,doNotLoadAllObjects:n?.doNotLoadAllObjects,onProgress:e=>{e===zs.CONNECTING?this.setState({connected:!1}):(zs.READY,this.setState({connected:!0}))},onReady:()=>{vA.setLanguage(this.socket.systemLang),this.socket.subscribeObject(`system.config`,this.onSystemConfigChanged).then(()=>this.getSystemConfig()).then(e=>(this._secret=e!==void 0&&e.native&&e.native.secret||`Zgfr56gFe87jJOM`,this._systemConfig=e?.common||{},this.socket.getObject(this.instanceId))).then(async e=>{let t,n=e,r=(await this.socket.getState(`${this.instanceId}.plugins.sentry.enabled`))?.val!==!1&&this._systemConfig?.diag!==`none`&&n?.common&&n.common.name&&n.common.version&&!n.common.disableDataReporting&&window.location.host!==`localhost:3000`;!this.sentryStarted&&this.sentryDSN&&r&&(this.sentryStarted=!0,Gg({dsn:this.sentryDSN,release:`iobroker.${n.common.name}@${n.common.version}`,integrations:[gm()]}),console.log(`Sentry initialized`)),!this.sentryInited&&r&&(this.sentryInited=!0,t=this.socket.getObject(`system.meta.uuid`).then(e=>{e&&e.native&&e.native.uuid&&gu().setUser({id:e.native.uuid})})),t=t instanceof Promise?t:Promise.resolve(),t.then(()=>{n?(this.common=n?.common,this.onPrepareLoad(n.native,n.encryptedNative),this.savedNative=JSON.parse(JSON.stringify(n.native)),this.setState({native:n.native,loaded:!0,expertMode:this.getExpertMode()},()=>this.onConnectionReady&&this.onConnectionReady())):(console.warn(`Cannot load instance settings`),this.setState({native:{},loaded:!0,expertMode:this.getExpertMode()},()=>this.onConnectionReady&&this.onConnectionReady()))})}).catch(e=>window.alert(`Cannot settings: ${e}`))},onError:e=>{console.error(e),this.showError(e)}})}static isWeb(){return window.socketUrl!==void 0}showAlert(e,t){t!==`error`&&t!==`warning`&&t!==`info`&&t!==`success`&&(t=`info`),this.setState({_alert:!0,_alertType:t,_alertMessage:e})}renderAlertSnackbar(){return this.alertDialogRendered=!0,B.createElement(pD,{style:this.state._alertType===`error`?{backgroundColor:`#f44336`}:this.state._alertType===`success`?{backgroundColor:`#4caf50`}:void 0,open:this.state._alert,autoHideDuration:6e3,onClose:(e,t)=>t!==`clickaway`&&this.setState({_alert:!1}),message:this.state._alertMessage})}onSystemConfigChanged=(e,t)=>{t&&e===`system.config`&&(this.socket.systemLang!==t?.common.language&&(this.socket.systemLang=t?.common.language||`en`,vA.setLanguage(this.socket.systemLang)),this._systemConfig?.expertMode===!!t?.common?.expertMode?this._systemConfig=t?.common||{}:(this._systemConfig=t?.common||{},this.setState({expertMode:this.getExpertMode()})))};componentDidMount(){window.addEventListener(`resize`,this.onResize,!0),window.addEventListener(`message`,this.onReceiveMessage,!1),super.componentDidMount()}componentWillUnmount(){window.removeEventListener(`resize`,this.onResize,!0),window.removeEventListener(`message`,this.onReceiveMessage,!1),this.resizeTimer&&=(clearTimeout(this.resizeTimer),null),window.iobOldAlert&&(window.alert=window.iobOldAlert,delete window.iobOldAlert),super.componentWillUnmount()}onReceiveMessage=e=>{if(e?.data)if(typeof e.data==`string`&&e.data===`updateTheme`||e.data&&typeof e.data==`object`&&e.data.type===`updateTheme`){let e=wA.getThemeName();wA.setThemeName(e);let t=this.createTheme(e);this.setState({theme:t,themeName:this.getThemeName(t),themeType:this.getThemeType(t)},()=>{this.props.onThemeChange&&this.props.onThemeChange(e),this.onThemeChanged&&this.onThemeChanged(e)})}else e.data===`updateExpertMode`?this.onToggleExpertMode&&this.onToggleExpertMode(this.getExpertMode()):e.data!==`chartReady`&&console.debug(`Received unknown message: "${JSON.stringify(e.data)}". May be it will be processed later`)};onResize=()=>{this.resizeTimer&&clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.resizeTimer=null,this.setState({width:e.getWidth()})},200)};static getWidth(){let e={xs:0,sm:600,md:960,lg:1280,xl:1920},t=window.innerWidth;return Object.keys(e).reverse().find(n=>t>=e[n])||`xs`}createTheme(e){return Ms(wA.getThemeName(e))}getThemeName(e){return e.name}getThemeType(e){return e.palette.mode}onThemeChanged(e){}onToggleExpertMode(e){}toggleTheme(e){let t=this.state.themeName;if(e||=t===`dark`||t===`blue`||t===`colored`?`light`:`dark`,e!==t){wA.setThemeName(e);let t=this.createTheme(e);this.setState({theme:t,themeName:this.getThemeName(t),themeType:this.getThemeType(t)},()=>{this.props.onThemeChange&&this.props.onThemeChange(e||`light`),this.onThemeChanged&&this.onThemeChanged(e||`light`)})}}getSystemConfig(){return this.socket.getSystemConfig()}getExpertMode(){return window.sessionStorage.getItem(`App.expertMode`)===`true`||!!this._systemConfig?.expertMode}onConnectionReady(){}encrypt(e){let t=``;if(this._secret)for(let n=0;n<e.length;n++)t+=String.fromCharCode(this._secret[n%this._secret.length].charCodeAt(0)^e.charCodeAt(n));return t}decrypt(e){let t=``;if(this._secret)for(let n=0;n<e.length;n++)t+=String.fromCharCode(this._secret[n%this._secret.length].charCodeAt(0)^e.charCodeAt(n));return t}onHashChanged(){let e=fA.getLocation();e.tab!==this.state.selectedTab&&this.selectTab(e.tab)}selectTab(e,t){(window._localStorage||window.localStorage).setItem(`${this.adapterName}-adapter`,e),this.setState({selectedTab:e,selectedTabNum:t})}onPrepareSave(e){return this.encryptedFields?.forEach(t=>{e[t]&&(e[t]=this.encrypt(e[t]))}),!0}onPrepareLoad(e,t){this.encryptedFields?.forEach(t=>{e[t]&&(e[t]=this.decrypt(e[t]))}),t?.forEach(t=>{this.encryptedFields=this.encryptedFields||[],!this.encryptedFields.includes(t)&&this.encryptedFields.push(t),e[t]&&(e[t]=this.decrypt(e[t]))})}async getExtendableInstances(){try{let e=await this.socket.getObjectViewSystem(`instance`,`system.adapter.`,`system.adapter.香`);return Object.values(e).filter(e=>!!e?.common?.webExtendable)}catch{return[]}}async getIpAddresses(e){let t=await this.socket.getHostByIp(e||this.common?.host||``),n=t.find(e=>e.address===`0.0.0.0`);n&&(n.name=`[IPv4] 0.0.0.0 - ${vA.t(`ra_Listen on all IPs`)}`);let r=t.find(e=>e.address===`::`);return r&&(r.name=`[IPv6] :: - ${vA.t(`ra_Listen on all IPs`)}`),t}onSave(t){let n;if(this.state.isConfigurationError){this.setState({errorText:this.state.isConfigurationError});return}this.socket.getObject(this.instanceId).then(e=>{n=e||{};for(let e in this.state.native)Object.prototype.hasOwnProperty.call(this.state.native,e)&&(this.state.native[e]===null?n.native[e]=null:this.state.native[e]===void 0?delete n.native[e]:n.native[e]=JSON.parse(JSON.stringify(this.state.native[e])));if(this.state.common)for(let e in this.state.common)this.state.common[e]===null?n.common[e]=null:this.state.common[e]===void 0?delete n.common[e]:n.common[e]=JSON.parse(JSON.stringify(this.state.common[e]));return this.onPrepareSave(n.native)===!1?Promise.reject(Error(`Invalid configuration`)):this.socket.setObject(this.instanceId,n)}).then(()=>{this.savedNative=n.native,globalThis.changed=!1;try{window.parent.postMessage(`nochange`,`*`)}catch{}this.setState({changed:!1},()=>{t&&e.onClose()})}).catch(e=>console.error(`Cannot save configuration: ${e}`))}renderToast(){return this.state.toast?B.createElement(pD,{anchorOrigin:{vertical:`bottom`,horizontal:`left`},open:!0,autoHideDuration:6e3,onClose:()=>this.setState({toast:``}),ContentProps:{"aria-describedby":`message-id`},message:B.createElement(`span`,{id:`message-id`},this.state.toast),action:[B.createElement(Ev,{key:`close`,"aria-label":`Close`,color:`inherit`,onClick:()=>this.setState({toast:``}),size:`large`},B.createElement(uk,null))]}):null}static onClose(){if(window.parent!==void 0&&window.parent)try{window.parent.$iframeDialog&&typeof window.parent.$iframeDialog.close==`function`?window.parent.$iframeDialog.close():window.parent.postMessage(`close`,`*`)}catch{window.parent.postMessage(`close`,`*`)}}renderError(){return this.state.errorText?B.createElement(kA,{text:this.state.errorText,onClose:()=>this.setState({errorText:``})}):null}getIsChanged(e){e||=this.state.native;let t=JSON.stringify(e)!==JSON.stringify(this.savedNative);return globalThis.changed=t,t}onLoadConfig(e){JSON.stringify(e)!==JSON.stringify(this.state.native)&&this.setState({native:e,changed:this.getIsChanged(e)})}setConfigurationError(e){this.state.isConfigurationError!==e&&this.setState({isConfigurationError:e})}renderSaveCloseButtons(){return!this.state.confirmClose&&!this.state.bottomButtons?null:B.createElement(B.Fragment,null,this.state.bottomButtons?B.createElement(EA,{theme:this.state.theme,newReact:this.newReact,noTextOnButtons:this.state.width===`xs`||this.state.width===`sm`||this.state.width===`md`,changed:this.state.changed,onSave:e=>this.onSave(e),onClose:()=>{this.state.changed?this.setState({confirmClose:!0}):e.onClose()},error:!!this.state.isConfigurationError}):null,this.state.confirmClose?B.createElement(OA,{title:vA.t(`ra_Please confirm`),text:vA.t(`ra_Some data are not stored. Discard?`),ok:vA.t(`ra_Discard`),cancel:vA.t(`ra_Cancel`),onClose:t=>this.setState({confirmClose:!1},()=>t&&e.onClose())}):null)}_updateNativeValue(e,t,n){typeof t!=`object`&&(t=t.split(`.`));let r=t.shift()||``;if(!t.length)return n&&typeof n==`object`?JSON.stringify(e[r])===JSON.stringify(n)?!1:(e[r]=n,!0):e[r]===n?!1:(e[r]=n,!0);if(e[r]=e[r]||{},typeof e[r]!=`object`)throw Error(`attribute ${r} is no object, but ${typeof e[r]}`);return this._updateNativeValue(e[r],t,n)}updateNativeValue(e,t,n){let r=JSON.parse(JSON.stringify(this.state.native));if(this._updateNativeValue(r,e,t)){let e=this.getIsChanged(r);if(e!==this.state.changed)try{window.parent.postMessage(e?`change`:`nochange`,`*`)}catch{}this.setState({native:r,changed:e},n)}}showError(e){this.setState({errorText:e})}showToast(e){this.setState({toast:e})}renderHelperDialogs(){return B.createElement(B.Fragment,null,this.renderError(),this.renderToast(),this.renderSaveCloseButtons(),this.renderAlertSnackbar())}render(){return this.state.loaded?B.createElement(`div`,{className:`App`},this.renderError(),this.renderToast(),this.renderSaveCloseButtons(),this.renderAlertSnackbar()):B.createElement(dA,{themeType:this.state.themeType})}},PA=o(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),FA=o(((e,t)=>{var n=PA(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),IA=o(((e,t)=>{t.exports=FA().Symbol})),LA=o(((e,t)=>{var n=IA(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),RA=o(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),zA=o(((e,t)=>{var n=IA(),r=LA(),i=RA(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),BA=o(((e,t)=>{t.exports=Array.isArray})),VA=o(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),HA=o(((e,t)=>{var n=zA(),r=BA(),i=VA(),a=`[object String]`;function o(e){return typeof e==`string`||!r(e)&&i(e)&&n(e)==a}t.exports=o})),UA=o(((e,t)=>{function n(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}t.exports=n})),WA=o(((e,t)=>{t.exports=UA()()})),GA=o(((e,t)=>{function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}t.exports=n})),KA=o(((e,t)=>{var n=zA(),r=VA(),i=`[object Arguments]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),qA=o(((e,t)=>{var n=KA(),r=VA(),i=Object.prototype,a=i.hasOwnProperty,o=i.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(e){return r(e)&&a.call(e,`callee`)&&!o.call(e,`callee`)}})),JA=o(((e,t)=>{function n(){return!1}t.exports=n})),YA=o(((e,t)=>{var n=FA(),r=JA(),i=typeof e==`object`&&e&&!e.nodeType&&e,a=i&&typeof t==`object`&&t&&!t.nodeType&&t,o=a&&a.exports===i?n.Buffer:void 0;t.exports=(o?o.isBuffer:void 0)||r})),XA=o(((e,t)=>{var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t??=n,!!t&&(i==`number`||i!=`symbol`&&r.test(e))&&e>-1&&e%1==0&&e<t}t.exports=i})),ZA=o(((e,t)=>{var n=9007199254740991;function r(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}t.exports=r})),QA=o(((e,t)=>{var n=zA(),r=ZA(),i=VA(),a=`[object Arguments]`,o=`[object Array]`,s=`[object Boolean]`,c=`[object Date]`,l=`[object Error]`,u=`[object Function]`,d=`[object Map]`,f=`[object Number]`,p=`[object Object]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object WeakMap]`,v=`[object ArrayBuffer]`,y=`[object DataView]`,b=`[object Float32Array]`,x=`[object Float64Array]`,S=`[object Int8Array]`,C=`[object Int16Array]`,w=`[object Int32Array]`,T=`[object Uint8Array]`,E=`[object Uint8ClampedArray]`,D=`[object Uint16Array]`,O=`[object Uint32Array]`,k={};k[b]=k[x]=k[S]=k[C]=k[w]=k[T]=k[E]=k[D]=k[O]=!0,k[a]=k[o]=k[v]=k[s]=k[y]=k[c]=k[l]=k[u]=k[d]=k[f]=k[p]=k[m]=k[h]=k[g]=k[_]=!1;function A(e){return i(e)&&r(e.length)&&!!k[n(e)]}t.exports=A})),$A=o(((e,t)=>{function n(e){return function(t){return e(t)}}t.exports=n})),ej=o(((e,t)=>{var n=PA(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r&&n.process;t.exports=function(){try{return i&&i.require&&i.require(`util`).types||a&&a.binding&&a.binding(`util`)}catch{}}()})),tj=o(((e,t)=>{var n=QA(),r=$A(),i=ej(),a=i&&i.isTypedArray;t.exports=a?r(a):n})),nj=o(((e,t)=>{var n=GA(),r=qA(),i=BA(),a=YA(),o=XA(),s=tj(),c=Object.prototype.hasOwnProperty;function l(e,t){var l=i(e),u=!l&&r(e),d=!l&&!u&&a(e),f=!l&&!u&&!d&&s(e),p=l||u||d||f,m=p?n(e.length,String):[],h=m.length;for(var g in e)(t||c.call(e,g))&&!(p&&(g==`length`||d&&(g==`offset`||g==`parent`)||f&&(g==`buffer`||g==`byteLength`||g==`byteOffset`)||o(g,h)))&&m.push(g);return m}t.exports=l})),rj=o(((e,t)=>{var n=Object.prototype;function r(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||n)}t.exports=r})),ij=o(((e,t)=>{function n(e,t){return function(n){return e(t(n))}}t.exports=n})),aj=o(((e,t)=>{t.exports=ij()(Object.keys,Object)})),oj=o(((e,t)=>{var n=rj(),r=aj(),i=Object.prototype.hasOwnProperty;function a(e){if(!n(e))return r(e);var t=[];for(var a in Object(e))i.call(e,a)&&a!=`constructor`&&t.push(a);return t}t.exports=a})),sj=o(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),cj=o(((e,t)=>{var n=zA(),r=sj(),i=`[object AsyncFunction]`,a=`[object Function]`,o=`[object GeneratorFunction]`,s=`[object Proxy]`;function c(e){if(!r(e))return!1;var t=n(e);return t==a||t==o||t==i||t==s}t.exports=c})),lj=o(((e,t)=>{var n=cj(),r=ZA();function i(e){return e!=null&&r(e.length)&&!n(e)}t.exports=i})),uj=o(((e,t)=>{var n=nj(),r=oj(),i=lj();function a(e){return i(e)?n(e):r(e)}t.exports=a})),dj=o(((e,t)=>{var n=WA(),r=uj();function i(e,t){return e&&n(e,t,r)}t.exports=i})),fj=o(((e,t)=>{function n(e){return e}t.exports=n})),pj=o(((e,t)=>{var n=fj();function r(e){return typeof e==`function`?e:n}t.exports=r})),mj=o(((e,t)=>{var n=dj(),r=pj();function i(e,t){return e&&n(e,r(t))}t.exports=i})),hj=o(((e,t)=>{t.exports=ij()(Object.getPrototypeOf,Object)})),gj=o(((e,t)=>{var n=zA(),r=hj(),i=VA(),a=`[object Object]`,o=Function.prototype,s=Object.prototype,c=o.toString,l=s.hasOwnProperty,u=c.call(Object);function d(e){if(!i(e)||n(e)!=a)return!1;var t=r(e);if(t===null)return!0;var o=l.call(t,`constructor`)&&t.constructor;return typeof o==`function`&&o instanceof o&&c.call(o)==u}t.exports=d})),_j=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}t.exports=n})),vj=o(((e,t)=>{function n(){this.__data__=[],this.size=0}t.exports=n})),yj=o(((e,t)=>{function n(e,t){return e===t||e!==e&&t!==t}t.exports=n})),bj=o(((e,t)=>{var n=yj();function r(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=r})),xj=o(((e,t)=>{var n=bj(),r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=i})),Sj=o(((e,t)=>{var n=bj();function r(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=r})),Cj=o(((e,t)=>{var n=bj();function r(e){return n(this.__data__,e)>-1}t.exports=r})),wj=o(((e,t)=>{var n=bj();function r(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=r})),Tj=o(((e,t)=>{var n=vj(),r=xj(),i=Sj(),a=Cj(),o=wj();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),Ej=o(((e,t)=>{var n=Tj();function r(){this.__data__=new n,this.size=0}t.exports=r})),Dj=o(((e,t)=>{function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}t.exports=n})),Oj=o(((e,t)=>{function n(e){return this.__data__.get(e)}t.exports=n})),kj=o(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),Aj=o(((e,t)=>{t.exports=FA()[`__core-js_shared__`]})),jj=o(((e,t)=>{var n=Aj(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function i(e){return!!r&&r in e}t.exports=i})),Mj=o(((e,t)=>{var n=Function.prototype.toString;function r(e){if(e!=null){try{return n.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=r})),Nj=o(((e,t)=>{var n=cj(),r=jj(),i=sj(),a=Mj(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp(`^`+u.call(d).replace(o,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function p(e){return!i(e)||r(e)?!1:(n(e)?f:s).test(a(e))}t.exports=p})),Pj=o(((e,t)=>{function n(e,t){return e?.[t]}t.exports=n})),Fj=o(((e,t)=>{var n=Nj(),r=Pj();function i(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=i})),Ij=o(((e,t)=>{t.exports=Fj()(FA(),`Map`)})),Lj=o(((e,t)=>{t.exports=Fj()(Object,`create`)})),Rj=o(((e,t)=>{var n=Lj();function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r})),zj=o(((e,t)=>{function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}t.exports=n})),Bj=o(((e,t)=>{var n=Lj(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=a})),Vj=o(((e,t)=>{var n=Lj(),r=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=i})),Hj=o(((e,t)=>{var n=Lj(),r=`__lodash_hash_undefined__`;function i(e,t){var i=this.__data__;return this.size+=+!this.has(e),i[e]=n&&t===void 0?r:t,this}t.exports=i})),Uj=o(((e,t)=>{var n=Rj(),r=zj(),i=Bj(),a=Vj(),o=Hj();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),Wj=o(((e,t)=>{var n=Uj(),r=Tj(),i=Ij();function a(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=a})),Gj=o(((e,t)=>{function n(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=n})),Kj=o(((e,t)=>{var n=Gj();function r(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=r})),qj=o(((e,t)=>{var n=Kj();function r(e){var t=n(this,e).delete(e);return this.size-=+!!t,t}t.exports=r})),Jj=o(((e,t)=>{var n=Kj();function r(e){return n(this,e).get(e)}t.exports=r})),Yj=o(((e,t)=>{var n=Kj();function r(e){return n(this,e).has(e)}t.exports=r})),Xj=o(((e,t)=>{var n=Kj();function r(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=r})),Zj=o(((e,t)=>{var n=Wj(),r=qj(),i=Jj(),a=Yj(),o=Xj();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),Qj=o(((e,t)=>{var n=Tj(),r=Ij(),i=Zj(),a=200;function o(e,t){var o=this.__data__;if(o instanceof n){var s=o.__data__;if(!r||s.length<a-1)return s.push([e,t]),this.size=++o.size,this;o=this.__data__=new i(s)}return o.set(e,t),this.size=o.size,this}t.exports=o})),$j=o(((e,t)=>{var n=Tj(),r=Ej(),i=Dj(),a=Oj(),o=kj(),s=Qj();function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,t.exports=c})),eM=o(((e,t)=>{var n=`__lodash_hash_undefined__`;function r(e){return this.__data__.set(e,n),this}t.exports=r})),tM=o(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),nM=o(((e,t)=>{var n=Zj(),r=eM(),i=tM();function a(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=r,a.prototype.has=i,t.exports=a})),rM=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}t.exports=n})),iM=o(((e,t)=>{function n(e,t){return e.has(t)}t.exports=n})),aM=o(((e,t)=>{var n=nM(),r=rM(),i=iM(),a=1,o=2;function s(e,t,s,c,l,u){var d=s&a,f=e.length,p=t.length;if(f!=p&&!(d&&p>f))return!1;var m=u.get(e),h=u.get(t);if(m&&h)return m==t&&h==e;var g=-1,_=!0,v=s&o?new n:void 0;for(u.set(e,t),u.set(t,e);++g<f;){var y=e[g],b=t[g];if(c)var x=d?c(b,y,g,t,e,u):c(y,b,g,e,t,u);if(x!==void 0){if(x)continue;_=!1;break}if(v){if(!r(t,function(e,t){if(!i(v,t)&&(y===e||l(y,e,s,c,u)))return v.push(t)})){_=!1;break}}else if(!(y===b||l(y,b,s,c,u))){_=!1;break}}return u.delete(e),u.delete(t),_}t.exports=s})),oM=o(((e,t)=>{t.exports=FA().Uint8Array})),sM=o(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}t.exports=n})),cM=o(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}t.exports=n})),lM=o(((e,t)=>{var n=IA(),r=oM(),i=yj(),a=aM(),o=sM(),s=cM(),c=1,l=2,u=`[object Boolean]`,d=`[object Date]`,f=`[object Error]`,p=`[object Map]`,m=`[object Number]`,h=`[object RegExp]`,g=`[object Set]`,_=`[object String]`,v=`[object Symbol]`,y=`[object ArrayBuffer]`,b=`[object DataView]`,x=n?n.prototype:void 0,S=x?x.valueOf:void 0;function C(e,t,n,x,C,w,T){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!w(new r(e),new r(t)));case u:case d:case m:return i(+e,+t);case f:return e.name==t.name&&e.message==t.message;case h:case _:return e==t+``;case p:var E=o;case g:var D=x&c;if(E||=s,e.size!=t.size&&!D)return!1;var O=T.get(e);if(O)return O==t;x|=l,T.set(e,t);var k=a(E(e),E(t),x,C,w,T);return T.delete(e),k;case v:if(S)return S.call(e)==S.call(t)}return!1}t.exports=C})),uM=o(((e,t)=>{function n(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}t.exports=n})),dM=o(((e,t)=>{var n=uM(),r=BA();function i(e,t,i){var a=t(e);return r(e)?a:n(a,i(e))}t.exports=i})),fM=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}t.exports=n})),pM=o(((e,t)=>{function n(){return[]}t.exports=n})),mM=o(((e,t)=>{var n=fM(),r=pM(),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;t.exports=a?function(e){return e==null?[]:(e=Object(e),n(a(e),function(t){return i.call(e,t)}))}:r})),hM=o(((e,t)=>{var n=dM(),r=mM(),i=uj();function a(e){return n(e,i,r)}t.exports=a})),gM=o(((e,t)=>{var n=hM(),r=1,i=Object.prototype.hasOwnProperty;function a(e,t,a,o,s,c){var l=a&r,u=n(e),d=u.length;if(d!=n(t).length&&!l)return!1;for(var f=d;f--;){var p=u[f];if(!(l?p in t:i.call(t,p)))return!1}var m=c.get(e),h=c.get(t);if(m&&h)return m==t&&h==e;var g=!0;c.set(e,t),c.set(t,e);for(var _=l;++f<d;){p=u[f];var v=e[p],y=t[p];if(o)var b=l?o(y,v,p,t,e,c):o(v,y,p,e,t,c);if(!(b===void 0?v===y||s(v,y,a,o,c):b)){g=!1;break}_||=p==`constructor`}if(g&&!_){var x=e.constructor,S=t.constructor;x!=S&&`constructor`in e&&`constructor`in t&&!(typeof x==`function`&&x instanceof x&&typeof S==`function`&&S instanceof S)&&(g=!1)}return c.delete(e),c.delete(t),g}t.exports=a})),_M=o(((e,t)=>{t.exports=Fj()(FA(),`DataView`)})),vM=o(((e,t)=>{t.exports=Fj()(FA(),`Promise`)})),yM=o(((e,t)=>{t.exports=Fj()(FA(),`Set`)})),bM=o(((e,t)=>{t.exports=Fj()(FA(),`WeakMap`)})),xM=o(((e,t)=>{var n=_M(),r=Ij(),i=vM(),a=yM(),o=bM(),s=zA(),c=Mj(),l=`[object Map]`,u=`[object Object]`,d=`[object Promise]`,f=`[object Set]`,p=`[object WeakMap]`,m=`[object DataView]`,h=c(n),g=c(r),_=c(i),v=c(a),y=c(o),b=s;(n&&b(new n(new ArrayBuffer(1)))!=m||r&&b(new r)!=l||i&&b(i.resolve())!=d||a&&b(new a)!=f||o&&b(new o)!=p)&&(b=function(e){var t=s(e),n=t==u?e.constructor:void 0,r=n?c(n):``;if(r)switch(r){case h:return m;case g:return l;case _:return d;case v:return f;case y:return p}return t}),t.exports=b})),SM=o(((e,t)=>{var n=$j(),r=aM(),i=lM(),a=gM(),o=xM(),s=BA(),c=YA(),l=tj(),u=1,d=`[object Arguments]`,f=`[object Array]`,p=`[object Object]`,m=Object.prototype.hasOwnProperty;function h(e,t,h,g,_,v){var y=s(e),b=s(t),x=y?f:o(e),S=b?f:o(t);x=x==d?p:x,S=S==d?p:S;var C=x==p,w=S==p,T=x==S;if(T&&c(e)){if(!c(t))return!1;y=!0,C=!1}if(T&&!C)return v||=new n,y||l(e)?r(e,t,h,g,_,v):i(e,t,x,h,g,_,v);if(!(h&u)){var E=C&&m.call(e,`__wrapped__`),D=w&&m.call(t,`__wrapped__`);if(E||D){var O=E?e.value():e,k=D?t.value():t;return v||=new n,_(O,k,h,g,v)}}return T?(v||=new n,a(e,t,h,g,_,v)):!1}t.exports=h})),CM=o(((e,t)=>{var n=SM(),r=VA();function i(e,t,a,o,s){return e===t?!0:e==null||t==null||!r(e)&&!r(t)?e!==e&&t!==t:n(e,t,a,o,i,s)}t.exports=i})),wM=o(((e,t)=>{var n=$j(),r=CM(),i=1,a=2;function o(e,t,o,s){var c=o.length,l=c,u=!s;if(e==null)return!l;for(e=Object(e);c--;){var d=o[c];if(u&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++c<l;){d=o[c];var f=d[0],p=e[f],m=d[1];if(u&&d[2]){if(p===void 0&&!(f in e))return!1}else{var h=new n;if(s)var g=s(p,m,f,e,t,h);if(!(g===void 0?r(m,p,i|a,s,h):g))return!1}}return!0}t.exports=o})),TM=o(((e,t)=>{var n=sj();function r(e){return e===e&&!n(e)}t.exports=r})),EM=o(((e,t)=>{var n=TM(),r=uj();function i(e){for(var t=r(e),i=t.length;i--;){var a=t[i],o=e[a];t[i]=[a,o,n(o)]}return t}t.exports=i})),DM=o(((e,t)=>{function n(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}t.exports=n})),OM=o(((e,t)=>{var n=wM(),r=EM(),i=DM();function a(e){var t=r(e);return t.length==1&&t[0][2]?i(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}t.exports=a})),kM=o(((e,t)=>{var n=zA(),r=VA(),i=`[object Symbol]`;function a(e){return typeof e==`symbol`||r(e)&&n(e)==i}t.exports=a})),AM=o(((e,t)=>{var n=BA(),r=kM(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function o(e,t){if(n(e))return!1;var o=typeof e;return o==`number`||o==`symbol`||o==`boolean`||e==null||r(e)?!0:a.test(e)||!i.test(e)||t!=null&&e in Object(t)}t.exports=o})),jM=o(((e,t)=>{var n=Zj(),r=`Expected a function`;function i(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(r);var a=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=a.cache;if(i.has(r))return i.get(r);var o=e.apply(this,n);return a.cache=i.set(r,o)||i,o};return a.cache=new(i.Cache||n),a}i.Cache=n,t.exports=i})),MM=o(((e,t)=>{var n=jM(),r=500;function i(e){var t=n(e,function(e){return i.size===r&&i.clear(),e}),i=t.cache;return t}t.exports=i})),NM=o(((e,t)=>{var n=MM(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;t.exports=n(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(r,function(e,n,r,a){t.push(r?a.replace(i,`$1`):n||e)}),t})})),PM=o(((e,t)=>{var n=IA(),r=_j(),i=BA(),a=kM(),o=1/0,s=n?n.prototype:void 0,c=s?s.toString:void 0;function l(e){if(typeof e==`string`)return e;if(i(e))return r(e,l)+``;if(a(e))return c?c.call(e):``;var t=e+``;return t==`0`&&1/e==-o?`-0`:t}t.exports=l})),FM=o(((e,t)=>{var n=PM();function r(e){return e==null?``:n(e)}t.exports=r})),IM=o(((e,t)=>{var n=BA(),r=AM(),i=NM(),a=FM();function o(e,t){return n(e)?e:r(e,t)?[e]:i(a(e))}t.exports=o})),LM=o(((e,t)=>{var n=kM(),r=1/0;function i(e){if(typeof e==`string`||n(e))return e;var t=e+``;return t==`0`&&1/e==-r?`-0`:t}t.exports=i})),RM=o(((e,t)=>{var n=IM(),r=LM();function i(e,t){t=n(t,e);for(var i=0,a=t.length;e!=null&&i<a;)e=e[r(t[i++])];return i&&i==a?e:void 0}t.exports=i})),zM=o(((e,t)=>{var n=RM();function r(e,t,r){var i=e==null?void 0:n(e,t);return i===void 0?r:i}t.exports=r})),BM=o(((e,t)=>{function n(e,t){return e!=null&&t in Object(e)}t.exports=n})),VM=o(((e,t)=>{var n=IM(),r=qA(),i=BA(),a=XA(),o=ZA(),s=LM();function c(e,t,c){t=n(t,e);for(var l=-1,u=t.length,d=!1;++l<u;){var f=s(t[l]);if(!(d=e!=null&&c(e,f)))break;e=e[f]}return d||++l!=u?d:(u=e==null?0:e.length,!!u&&o(u)&&a(f,u)&&(i(e)||r(e)))}t.exports=c})),HM=o(((e,t)=>{var n=BM(),r=VM();function i(e,t){return e!=null&&r(e,t,n)}t.exports=i})),UM=o(((e,t)=>{var n=CM(),r=zM(),i=HM(),a=AM(),o=TM(),s=DM(),c=LM(),l=1,u=2;function d(e,t){return a(e)&&o(t)?s(c(e),t):function(a){var o=r(a,e);return o===void 0&&o===t?i(a,e):n(t,o,l|u)}}t.exports=d})),WM=o(((e,t)=>{function n(e){return function(t){return t?.[e]}}t.exports=n})),GM=o(((e,t)=>{var n=RM();function r(e){return function(t){return n(t,e)}}t.exports=r})),KM=o(((e,t)=>{var n=WM(),r=GM(),i=AM(),a=LM();function o(e){return i(e)?n(a(e)):r(e)}t.exports=o})),qM=o(((e,t)=>{var n=OM(),r=UM(),i=fj(),a=BA(),o=KM();function s(e){return typeof e==`function`?e:e==null?i:typeof e==`object`?a(e)?r(e[0],e[1]):n(e):o(e)}t.exports=s})),JM=o(((e,t)=>{var n=lj();function r(e,t){return function(r,i){if(r==null)return r;if(!n(r))return e(r,i);for(var a=r.length,o=t?a:-1,s=Object(r);(t?o--:++o<a)&&i(s[o],o,s)!==!1;);return r}}t.exports=r})),YM=o(((e,t)=>{var n=dj();t.exports=JM()(n)})),XM=o(((e,t)=>{var n=YM(),r=lj();function i(e,t){var i=-1,a=r(e)?Array(e.length):[];return n(e,function(e,n,r){a[++i]=t(e,n,r)}),a}t.exports=i})),ZM=o(((e,t)=>{var n=_j(),r=qM(),i=XM(),a=BA();function o(e,t){return(a(e)?n:i)(e,r(t,3))}t.exports=o})),QM=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.flattenNames=void 0;var t=a(HA()),n=a(mj()),r=a(gj()),i=a(ZM());function a(e){return e&&e.__esModule?e:{default:e}}e.default=e.flattenNames=function e(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=[];return(0,i.default)(a,function(i){Array.isArray(i)?e(i).map(function(e){return o.push(e)}):(0,r.default)(i)?(0,n.default)(i,function(e,t){e===!0&&o.push(t),o.push(t+`-`+e)}):(0,t.default)(i)&&o.push(i)}),o}})),$M=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}t.exports=n})),eN=o(((e,t)=>{var n=Fj();t.exports=function(){try{var e=n(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),tN=o(((e,t)=>{var n=eN();function r(e,t,r){t==`__proto__`&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}t.exports=r})),nN=o(((e,t)=>{var n=tN(),r=yj(),i=Object.prototype.hasOwnProperty;function a(e,t,a){var o=e[t];(!(i.call(e,t)&&r(o,a))||a===void 0&&!(t in e))&&n(e,t,a)}t.exports=a})),rN=o(((e,t)=>{var n=nN(),r=tN();function i(e,t,i,a){var o=!i;i||={};for(var s=-1,c=t.length;++s<c;){var l=t[s],u=a?a(i[l],e[l],l,i,e):void 0;u===void 0&&(u=e[l]),o?r(i,l,u):n(i,l,u)}return i}t.exports=i})),iN=o(((e,t)=>{var n=rN(),r=uj();function i(e,t){return e&&n(t,r(t),e)}t.exports=i})),aN=o(((e,t)=>{function n(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}t.exports=n})),oN=o(((e,t)=>{var n=sj(),r=rj(),i=aN(),a=Object.prototype.hasOwnProperty;function o(e){if(!n(e))return i(e);var t=r(e),o=[];for(var s in e)s==`constructor`&&(t||!a.call(e,s))||o.push(s);return o}t.exports=o})),sN=o(((e,t)=>{var n=nj(),r=oN(),i=lj();function a(e){return i(e)?n(e,!0):r(e)}t.exports=a})),cN=o(((e,t)=>{var n=rN(),r=sN();function i(e,t){return e&&n(t,r(t),e)}t.exports=i})),lN=o(((e,t)=>{var n=FA(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r?n.Buffer:void 0,o=a?a.allocUnsafe:void 0;function s(e,t){if(t)return e.slice();var n=e.length,r=o?o(n):new e.constructor(n);return e.copy(r),r}t.exports=s})),uN=o(((e,t)=>{function n(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}t.exports=n})),dN=o(((e,t)=>{var n=rN(),r=mM();function i(e,t){return n(e,r(e),t)}t.exports=i})),fN=o(((e,t)=>{var n=uM(),r=hj(),i=mM(),a=pM();t.exports=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,i(e)),e=r(e);return t}:a})),pN=o(((e,t)=>{var n=rN(),r=fN();function i(e,t){return n(e,r(e),t)}t.exports=i})),mN=o(((e,t)=>{var n=dM(),r=fN(),i=sN();function a(e){return n(e,i,r)}t.exports=a})),hN=o(((e,t)=>{var n=Object.prototype.hasOwnProperty;function r(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]==`string`&&n.call(e,`index`)&&(r.index=e.index,r.input=e.input),r}t.exports=r})),gN=o(((e,t)=>{var n=oM();function r(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}t.exports=r})),_N=o(((e,t)=>{var n=gN();function r(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}t.exports=r})),vN=o(((e,t)=>{var n=/\w*$/;function r(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}t.exports=r})),yN=o(((e,t)=>{var n=IA(),r=n?n.prototype:void 0,i=r?r.valueOf:void 0;function a(e){return i?Object(i.call(e)):{}}t.exports=a})),bN=o(((e,t)=>{var n=gN();function r(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}t.exports=r})),xN=o(((e,t)=>{var n=gN(),r=_N(),i=vN(),a=yN(),o=bN(),s=`[object Boolean]`,c=`[object Date]`,l=`[object Map]`,u=`[object Number]`,d=`[object RegExp]`,f=`[object Set]`,p=`[object String]`,m=`[object Symbol]`,h=`[object ArrayBuffer]`,g=`[object DataView]`,_=`[object Float32Array]`,v=`[object Float64Array]`,y=`[object Int8Array]`,b=`[object Int16Array]`,x=`[object Int32Array]`,S=`[object Uint8Array]`,C=`[object Uint8ClampedArray]`,w=`[object Uint16Array]`,T=`[object Uint32Array]`;function E(e,t,E){var D=e.constructor;switch(t){case h:return n(e);case s:case c:return new D(+e);case g:return r(e,E);case _:case v:case y:case b:case x:case S:case C:case w:case T:return o(e,E);case l:return new D;case u:case p:return new D(e);case d:return i(e);case f:return new D;case m:return a(e)}}t.exports=E})),SN=o(((e,t)=>{var n=sj(),r=Object.create;t.exports=function(){function e(){}return function(t){if(!n(t))return{};if(r)return r(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}()})),CN=o(((e,t)=>{var n=SN(),r=hj(),i=rj();function a(e){return typeof e.constructor==`function`&&!i(e)?n(r(e)):{}}t.exports=a})),wN=o(((e,t)=>{var n=xM(),r=VA(),i=`[object Map]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),TN=o(((e,t)=>{var n=wN(),r=$A(),i=ej(),a=i&&i.isMap;t.exports=a?r(a):n})),EN=o(((e,t)=>{var n=xM(),r=VA(),i=`[object Set]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),DN=o(((e,t)=>{var n=EN(),r=$A(),i=ej(),a=i&&i.isSet;t.exports=a?r(a):n})),ON=o(((e,t)=>{var n=$j(),r=$M(),i=nN(),a=iN(),o=cN(),s=lN(),c=uN(),l=dN(),u=pN(),d=hM(),f=mN(),p=xM(),m=hN(),h=xN(),g=CN(),_=BA(),v=YA(),y=TN(),b=sj(),x=DN(),S=uj(),C=sN(),w=1,T=2,E=4,D=`[object Arguments]`,O=`[object Array]`,k=`[object Boolean]`,A=`[object Date]`,j=`[object Error]`,M=`[object Function]`,N=`[object GeneratorFunction]`,P=`[object Map]`,F=`[object Number]`,I=`[object Object]`,L=`[object RegExp]`,ee=`[object Set]`,R=`[object String]`,te=`[object Symbol]`,ne=`[object WeakMap]`,re=`[object ArrayBuffer]`,z=`[object DataView]`,ie=`[object Float32Array]`,ae=`[object Float64Array]`,oe=`[object Int8Array]`,se=`[object Int16Array]`,ce=`[object Int32Array]`,le=`[object Uint8Array]`,ue=`[object Uint8ClampedArray]`,de=`[object Uint16Array]`,fe=`[object Uint32Array]`,pe={};pe[D]=pe[O]=pe[re]=pe[z]=pe[k]=pe[A]=pe[ie]=pe[ae]=pe[oe]=pe[se]=pe[ce]=pe[P]=pe[F]=pe[I]=pe[L]=pe[ee]=pe[R]=pe[te]=pe[le]=pe[ue]=pe[de]=pe[fe]=!0,pe[j]=pe[M]=pe[ne]=!1;function me(e,t,O,k,A,j){var P,F=t&w,L=t&T,ee=t&E;if(O&&(P=A?O(e,k,A,j):O(e)),P!==void 0)return P;if(!b(e))return e;var R=_(e);if(R){if(P=m(e),!F)return c(e,P)}else{var te=p(e),ne=te==M||te==N;if(v(e))return s(e,F);if(te==I||te==D||ne&&!A){if(P=L||ne?{}:g(e),!F)return L?u(e,o(P,e)):l(e,a(P,e))}else{if(!pe[te])return A?e:{};P=h(e,te,F)}}j||=new n;var re=j.get(e);if(re)return re;j.set(e,P),x(e)?e.forEach(function(n){P.add(me(n,t,O,n,e,j))}):y(e)&&e.forEach(function(n,r){P.set(r,me(n,t,O,r,e,j))});var z=R?void 0:(ee?L?f:d:L?C:S)(e);return r(z||e,function(n,r){z&&(r=n,n=e[r]),i(P,r,me(n,t,O,r,e,j))}),P}t.exports=me})),kN=o(((e,t)=>{var n=ON(),r=1,i=4;function a(e){return n(e,r|i)}t.exports=a})),AN=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.mergeClasses=void 0;var t=i(mj()),n=i(kN()),r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function i(e){return e&&e.__esModule?e:{default:e}}e.default=e.mergeClasses=function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=e.default&&(0,n.default)(e.default)||{};return i.map(function(n){var i=e[n];return i&&(0,t.default)(i,function(e,t){a[t]||(a[t]={}),a[t]=r({},a[t],i[t])}),n}),a}})),jN=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.autoprefix=void 0;var t=r(mj()),n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e){return e&&e.__esModule?e:{default:e}}var i={borderRadius:function(e){return{msBorderRadius:e,MozBorderRadius:e,OBorderRadius:e,WebkitBorderRadius:e,borderRadius:e}},boxShadow:function(e){return{msBoxShadow:e,MozBoxShadow:e,OBoxShadow:e,WebkitBoxShadow:e,boxShadow:e}},userSelect:function(e){return{WebkitTouchCallout:e,KhtmlUserSelect:e,MozUserSelect:e,msUserSelect:e,WebkitUserSelect:e,userSelect:e}},flex:function(e){return{WebkitBoxFlex:e,MozBoxFlex:e,WebkitFlex:e,msFlex:e,flex:e}},flexBasis:function(e){return{WebkitFlexBasis:e,flexBasis:e}},justifyContent:function(e){return{WebkitJustifyContent:e,justifyContent:e}},transition:function(e){return{msTransition:e,MozTransition:e,OTransition:e,WebkitTransition:e,transition:e}},transform:function(e){return{msTransform:e,MozTransform:e,OTransform:e,WebkitTransform:e,transform:e}},absolute:function(e){var t=e&&e.split(` `);return{position:`absolute`,top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(e,t){return t[e]||{extend:e}}};e.default=e.autoprefix=function(e){var r={};return(0,t.default)(e,function(e,a){var o={};(0,t.default)(e,function(e,t){var r=i[t];r?o=n({},o,r(e)):o[t]=e}),r[a]=o}),r}})),MN=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.hover=void 0;var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n=r(u());function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function a(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function o(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=e.hover=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`span`;return function(s){o(c,s);function c(){var o,s,l,u;i(this,c);var d=[...arguments];return u=(s=(l=a(this,(o=c.__proto__||Object.getPrototypeOf(c)).call.apply(o,[this].concat(d))),l),l.state={hover:!1},l.handleMouseOver=function(){return l.setState({hover:!0})},l.handleMouseOut=function(){return l.setState({hover:!1})},l.render=function(){return n.default.createElement(r,{onMouseOver:l.handleMouseOver,onMouseOut:l.handleMouseOut},n.default.createElement(e,t({},l.props,l.state)))},s),a(l,u)}return c}(n.default.Component)}})),NN=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.active=void 0;var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n=r(u());function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function a(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function o(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=e.active=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`span`;return function(s){o(c,s);function c(){var o,s,l,u;i(this,c);var d=[...arguments];return u=(s=(l=a(this,(o=c.__proto__||Object.getPrototypeOf(c)).call.apply(o,[this].concat(d))),l),l.state={active:!1},l.handleMouseDown=function(){return l.setState({active:!0})},l.handleMouseUp=function(){return l.setState({active:!1})},l.render=function(){return n.default.createElement(r,{onMouseDown:l.handleMouseDown,onMouseUp:l.handleMouseUp},n.default.createElement(e,t({},l.props,l.state)))},s),a(l,u)}return c}(n.default.Component)}})),PN=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t){var n={},r=function(e){n[e]=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0};return e===0&&r(`first-child`),e===t-1&&r(`last-child`),(e===0||e%2==0)&&r(`even`),Math.abs(e%2)===1&&r(`odd`),r(`nth-child`,e),n}})),FN=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ReactCSS=e.loop=e.handleActive=e.handleHover=e.hover=void 0;var t=s(QM()),n=s(AN()),r=s(jN()),i=s(MN()),a=s(NN()),o=s(PN());function s(e){return e&&e.__esModule?e:{default:e}}e.hover=i.default,e.handleHover=i.default,e.handleActive=a.default,e.loop=o.default,e.default=e.ReactCSS=function(e){var i=[...arguments].slice(1),a=(0,t.default)(i),o=(0,n.default)(e,a);return(0,r.default)(o)}}))()),IN=function(e,t,n,r,i){var a=i.clientWidth,o=i.clientHeight,s=typeof e.pageX==`number`?e.pageX:e.touches[0].pageX,c=typeof e.pageY==`number`?e.pageY:e.touches[0].pageY,l=s-(i.getBoundingClientRect().left+window.pageXOffset),u=c-(i.getBoundingClientRect().top+window.pageYOffset);if(n===`vertical`){var d=void 0;if(d=u<0?0:u>o?1:Math.round(u*100/o)/100,t.a!==d)return{h:t.h,s:t.s,l:t.l,a:d,source:`rgb`}}else{var f=void 0;if(f=l<0?0:l>a?1:Math.round(l*100/a)/100,r!==f)return{h:t.h,s:t.s,l:t.l,a:f,source:`rgb`}}return null},LN={},RN=function(e,t,n,r){if(typeof document>`u`&&!r)return null;var i=r?new r:document.createElement(`canvas`);i.width=n*2,i.height=n*2;var a=i.getContext(`2d`);return a?(a.fillStyle=e,a.fillRect(0,0,i.width,i.height),a.fillStyle=t,a.fillRect(0,0,n,n),a.translate(n,n),a.fillRect(0,0,n,n),i.toDataURL()):null},zN=function(e,t,n,r){var i=e+`-`+t+`-`+n+(r?`-server`:``);if(LN[i])return LN[i];var a=RN(e,t,n,r);return LN[i]=a,a},BN=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VN=function(e){var t=e.white,n=e.grey,r=e.size,i=e.renderers,a=e.borderRadius,o=e.boxShadow,s=e.children,c=(0,FN.default)({default:{grid:{borderRadius:a,boxShadow:o,absolute:`0px 0px 0px 0px`,background:`url(`+zN(t,n,r,i.canvas)+`) center left`}}});return(0,B.isValidElement)(s)?B.cloneElement(s,BN({},s.props,{style:BN({},s.props.style,c.grid)})):B.createElement(`div`,{style:c.grid})};VN.defaultProps={size:8,white:`transparent`,grey:`rgba(0,0,0,.08)`,renderers:{}};var HN=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UN=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function WN(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function GN(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function KN(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var qN=function(e){KN(t,e);function t(){var e,n,r,i;WN(this,t);var a=[...arguments];return i=(n=(r=GN(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r),r.handleChange=function(e){var t=IN(e,r.props.hsl,r.props.direction,r.props.a,r.container);t&&typeof r.props.onChange==`function`&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener(`mousemove`,r.handleChange),window.addEventListener(`mouseup`,r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener(`mousemove`,r.handleChange),window.removeEventListener(`mouseup`,r.handleMouseUp)},n),GN(r,i)}return UN(t,[{key:`componentWillUnmount`,value:function(){this.unbindEventListeners()}},{key:`render`,value:function(){var e=this,t=this.props.rgb,n=(0,FN.default)({default:{alpha:{absolute:`0px 0px 0px 0px`,borderRadius:this.props.radius},checkboard:{absolute:`0px 0px 0px 0px`,overflow:`hidden`,borderRadius:this.props.radius},gradient:{absolute:`0px 0px 0px 0px`,background:`linear-gradient(to right, rgba(`+t.r+`,`+t.g+`,`+t.b+`, 0) 0%,
|
|
621
|
+
rgba(`+t.r+`,`+t.g+`,`+t.b+`, 1) 100%)`,boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:`relative`,height:`100%`,margin:`0 3px`},pointer:{position:`absolute`,left:t.a*100+`%`},slider:{width:`4px`,borderRadius:`1px`,height:`8px`,boxShadow:`0 0 2px rgba(0, 0, 0, .6)`,background:`#fff`,marginTop:`1px`,transform:`translateX(-2px)`}},vertical:{gradient:{background:`linear-gradient(to bottom, rgba(`+t.r+`,`+t.g+`,`+t.b+`, 0) 0%,
|
|
622
|
+
rgba(`+t.r+`,`+t.g+`,`+t.b+`, 1) 100%)`},pointer:{left:0,top:t.a*100+`%`}},overwrite:HN({},this.props.style)},{vertical:this.props.direction===`vertical`,overwrite:!0});return B.createElement(`div`,{style:n.alpha},B.createElement(`div`,{style:n.checkboard},B.createElement(VN,{renderers:this.props.renderers})),B.createElement(`div`,{style:n.gradient}),B.createElement(`div`,{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},B.createElement(`div`,{style:n.pointer},this.props.pointer?B.createElement(this.props.pointer,this.props):B.createElement(`div`,{style:n.slider}))))}}]),t}(B.PureComponent||B.Component),JN=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function YN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XN(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function ZN(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function QN(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var $N=1,eP=38,tP=[eP,40],nP=function(e){return tP.indexOf(e)>-1},rP=function(e){return Number(String(e).replace(/%/g,``))},iP=1,aP=function(e){QN(t,e);function t(e){XN(this,t);var n=ZN(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t=rP(e.target.value);if(!isNaN(t)&&nP(e.keyCode)){var r=n.getArrowOffset(),i=e.keyCode===eP?t+r:t-r;n.setUpdatedValue(i,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener(`mousemove`,n.handleDrag),window.addEventListener(`mouseup`,n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener(`mousemove`,n.handleDrag),window.removeEventListener(`mouseup`,n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n.inputId=`rc-editable-input-`+ iP++,n}return JN(t,[{key:`componentDidUpdate`,value:function(e,t){this.props.value!==this.state.value&&(e.value!==this.props.value||t.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:`componentWillUnmount`,value:function(){this.unbindEventListeners()}},{key:`getValueObjectWithLabel`,value:function(e){return YN({},this.props.label,e)}},{key:`getArrowOffset`,value:function(){return this.props.arrowOffset||$N}},{key:`setUpdatedValue`,value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:`render`,value:function(){var e=this,t=(0,FN.default)({default:{wrap:{position:`relative`}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:`ew-resize`}}},{"user-override":!0},this.props);return B.createElement(`div`,{style:t.wrap},B.createElement(`input`,{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:`false`}),this.props.label&&!this.props.hideLabel?B.createElement(`label`,{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(B.PureComponent||B.Component),oP=function(e,t,n,r){var i=r.clientWidth,a=r.clientHeight,o=typeof e.pageX==`number`?e.pageX:e.touches[0].pageX,s=typeof e.pageY==`number`?e.pageY:e.touches[0].pageY,c=o-(r.getBoundingClientRect().left+window.pageXOffset),l=s-(r.getBoundingClientRect().top+window.pageYOffset);if(t===`vertical`){var u=void 0;if(u=l<0?359:l>a?0:360*(-(l*100/a)+100)/100,n.h!==u)return{h:u,s:n.s,l:n.l,a:n.a,source:`hsl`}}else{var d=void 0;if(d=c<0?0:c>i?359:360*(c*100/i)/100,n.h!==d)return{h:d,s:n.s,l:n.l,a:n.a,source:`hsl`}}return null},sP=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function cP(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function lP(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function uP(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var dP=function(e){uP(t,e);function t(){var e,n,r,i;cP(this,t);var a=[...arguments];return i=(n=(r=lP(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r),r.handleChange=function(e){var t=oP(e,r.props.direction,r.props.hsl,r.container);t&&typeof r.props.onChange==`function`&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener(`mousemove`,r.handleChange),window.addEventListener(`mouseup`,r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},n),lP(r,i)}return sP(t,[{key:`componentWillUnmount`,value:function(){this.unbindEventListeners()}},{key:`unbindEventListeners`,value:function(){window.removeEventListener(`mousemove`,this.handleChange),window.removeEventListener(`mouseup`,this.handleMouseUp)}},{key:`render`,value:function(){var e=this,t=this.props.direction,n=t===void 0?`horizontal`:t,r=(0,FN.default)({default:{hue:{absolute:`0px 0px 0px 0px`,borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:`0 2px`,position:`relative`,height:`100%`,borderRadius:this.props.radius},pointer:{position:`absolute`,left:this.props.hsl.h*100/360+`%`},slider:{marginTop:`1px`,width:`4px`,borderRadius:`1px`,height:`8px`,boxShadow:`0 0 2px rgba(0, 0, 0, .6)`,background:`#fff`,transform:`translateX(-2px)`}},vertical:{pointer:{left:`0px`,top:-(this.props.hsl.h*100/360)+100+`%`}}},{vertical:n===`vertical`});return B.createElement(`div`,{style:r.hue},B.createElement(`div`,{className:`hue-`+n,style:r.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},B.createElement(`style`,null,`
|
|
623
|
+
.hue-horizontal {
|
|
624
|
+
background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
|
|
625
|
+
33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
|
626
|
+
background: -webkit-linear-gradient(to right, #f00 0%, #ff0
|
|
627
|
+
17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
.hue-vertical {
|
|
631
|
+
background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,
|
|
632
|
+
#0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
|
633
|
+
background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
|
|
634
|
+
#0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
|
635
|
+
}
|
|
636
|
+
`),B.createElement(`div`,{style:r.pointer},this.props.pointer?B.createElement(this.props.pointer,this.props):B.createElement(`div`,{style:r.slider}))))}}]),t}(B.PureComponent||B.Component);function fP(){this.__data__=[],this.size=0}function pP(e,t){return e===t||e!==e&&t!==t}function mP(e,t){for(var n=e.length;n--;)if(pP(e[n][0],t))return n;return-1}var hP=Array.prototype.splice;function gP(e){var t=this.__data__,n=mP(t,e);return n<0?!1:(n==t.length-1?t.pop():hP.call(t,n,1),--this.size,!0)}function _P(e){var t=this.__data__,n=mP(t,e);return n<0?void 0:t[n][1]}function vP(e){return mP(this.__data__,e)>-1}function yP(e,t){var n=this.__data__,r=mP(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function bP(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}bP.prototype.clear=fP,bP.prototype.delete=gP,bP.prototype.get=_P,bP.prototype.has=vP,bP.prototype.set=yP;function xP(){this.__data__=new bP,this.size=0}function SP(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function CP(e){return this.__data__.get(e)}function wP(e){return this.__data__.has(e)}var TP=typeof global==`object`&&global&&global.Object===Object&&global,EP=typeof self==`object`&&self&&self.Object===Object&&self,DP=TP||EP||Function(`return this`)(),OP=DP.Symbol,kP=Object.prototype,AP=kP.hasOwnProperty,jP=kP.toString,MP=OP?OP.toStringTag:void 0;function NP(e){var t=AP.call(e,MP),n=e[MP];try{e[MP]=void 0;var r=!0}catch{}var i=jP.call(e);return r&&(t?e[MP]=n:delete e[MP]),i}var PP=Object.prototype.toString;function FP(e){return PP.call(e)}var IP=`[object Null]`,LP=`[object Undefined]`,RP=OP?OP.toStringTag:void 0;function zP(e){return e==null?e===void 0?LP:IP:RP&&RP in Object(e)?NP(e):FP(e)}function BP(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}var VP=`[object AsyncFunction]`,HP=`[object Function]`,UP=`[object GeneratorFunction]`,WP=`[object Proxy]`;function GP(e){if(!BP(e))return!1;var t=zP(e);return t==HP||t==UP||t==VP||t==WP}var KP=DP[`__core-js_shared__`],qP=function(){var e=/[^.]+$/.exec(KP&&KP.keys&&KP.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function JP(e){return!!qP&&qP in e}var YP=Function.prototype.toString;function XP(e){if(e!=null){try{return YP.call(e)}catch{}try{return e+``}catch{}}return``}var ZP=/[\\^$.*+?()[\]{}|]/g,QP=/^\[object .+?Constructor\]$/,$P=Function.prototype,eF=Object.prototype,tF=$P.toString,nF=eF.hasOwnProperty,rF=RegExp(`^`+tF.call(nF).replace(ZP,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function iF(e){return!BP(e)||JP(e)?!1:(GP(e)?rF:QP).test(XP(e))}function aF(e,t){return e?.[t]}function oF(e,t){var n=aF(e,t);return iF(n)?n:void 0}var sF=oF(DP,`Map`),cF=oF(Object,`create`);function lF(){this.__data__=cF?cF(null):{},this.size=0}function uF(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}var dF=`__lodash_hash_undefined__`,fF=Object.prototype.hasOwnProperty;function pF(e){var t=this.__data__;if(cF){var n=t[e];return n===dF?void 0:n}return fF.call(t,e)?t[e]:void 0}var mF=Object.prototype.hasOwnProperty;function hF(e){var t=this.__data__;return cF?t[e]!==void 0:mF.call(t,e)}var gF=`__lodash_hash_undefined__`;function _F(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=cF&&t===void 0?gF:t,this}function vF(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}vF.prototype.clear=lF,vF.prototype.delete=uF,vF.prototype.get=pF,vF.prototype.has=hF,vF.prototype.set=_F;function yF(){this.size=0,this.__data__={hash:new vF,map:new(sF||bP),string:new vF}}function bF(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function xF(e,t){var n=e.__data__;return bF(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function SF(e){var t=xF(this,e).delete(e);return this.size-=+!!t,t}function CF(e){return xF(this,e).get(e)}function wF(e){return xF(this,e).has(e)}function TF(e,t){var n=xF(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function EF(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}EF.prototype.clear=yF,EF.prototype.delete=SF,EF.prototype.get=CF,EF.prototype.has=wF,EF.prototype.set=TF;var DF=200;function OF(e,t){var n=this.__data__;if(n instanceof bP){var r=n.__data__;if(!sF||r.length<DF-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new EF(r)}return n.set(e,t),this.size=n.size,this}function kF(e){var t=this.__data__=new bP(e);this.size=t.size}kF.prototype.clear=xP,kF.prototype.delete=SP,kF.prototype.get=CP,kF.prototype.has=wP,kF.prototype.set=OF;var AF=function(){try{var e=oF(Object,`defineProperty`);return e({},``,{}),e}catch{}}();function jF(e,t,n){t==`__proto__`&&AF?AF(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function MF(e,t,n){(n!==void 0&&!pP(e[t],n)||n===void 0&&!(t in e))&&jF(e,t,n)}function NF(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}var PF=NF(),FF=typeof exports==`object`&&exports&&!exports.nodeType&&exports,IF=FF&&typeof module==`object`&&module&&!module.nodeType&&module,LF=IF&&IF.exports===FF?DP.Buffer:void 0,RF=LF?LF.allocUnsafe:void 0;function zF(e,t){if(t)return e.slice();var n=e.length,r=RF?RF(n):new e.constructor(n);return e.copy(r),r}var BF=DP.Uint8Array;function VF(e){var t=new e.constructor(e.byteLength);return new BF(t).set(new BF(e)),t}function HF(e,t){var n=t?VF(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function UF(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}var WF=Object.create,GF=function(){function e(){}return function(t){if(!BP(t))return{};if(WF)return WF(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function KF(e,t){return function(n){return e(t(n))}}var qF=KF(Object.getPrototypeOf,Object),JF=Object.prototype;function YF(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||JF)}function XF(e){return typeof e.constructor==`function`&&!YF(e)?GF(qF(e)):{}}function ZF(e){return typeof e==`object`&&!!e}var QF=`[object Arguments]`;function $F(e){return ZF(e)&&zP(e)==QF}var eI=Object.prototype,tI=eI.hasOwnProperty,nI=eI.propertyIsEnumerable,rI=$F(function(){return arguments}())?$F:function(e){return ZF(e)&&tI.call(e,`callee`)&&!nI.call(e,`callee`)},iI=Array.isArray,aI=9007199254740991;function oI(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=aI}function sI(e){return e!=null&&oI(e.length)&&!GP(e)}function cI(e){return ZF(e)&&sI(e)}function lI(){return!1}var uI=typeof exports==`object`&&exports&&!exports.nodeType&&exports,dI=uI&&typeof module==`object`&&module&&!module.nodeType&&module,fI=dI&&dI.exports===uI?DP.Buffer:void 0,pI=(fI?fI.isBuffer:void 0)||lI,mI=`[object Object]`,hI=Function.prototype,gI=Object.prototype,_I=hI.toString,vI=gI.hasOwnProperty,yI=_I.call(Object);function bI(e){if(!ZF(e)||zP(e)!=mI)return!1;var t=qF(e);if(t===null)return!0;var n=vI.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&_I.call(n)==yI}var xI=`[object Arguments]`,SI=`[object Array]`,CI=`[object Boolean]`,wI=`[object Date]`,TI=`[object Error]`,EI=`[object Function]`,DI=`[object Map]`,OI=`[object Number]`,kI=`[object Object]`,AI=`[object RegExp]`,jI=`[object Set]`,MI=`[object String]`,NI=`[object WeakMap]`,PI=`[object ArrayBuffer]`,FI=`[object DataView]`,II=`[object Float32Array]`,LI=`[object Float64Array]`,RI=`[object Int8Array]`,zI=`[object Int16Array]`,BI=`[object Int32Array]`,VI=`[object Uint8Array]`,HI=`[object Uint8ClampedArray]`,UI=`[object Uint16Array]`,WI=`[object Uint32Array]`,GI={};GI[II]=GI[LI]=GI[RI]=GI[zI]=GI[BI]=GI[VI]=GI[HI]=GI[UI]=GI[WI]=!0,GI[xI]=GI[SI]=GI[PI]=GI[CI]=GI[FI]=GI[wI]=GI[TI]=GI[EI]=GI[DI]=GI[OI]=GI[kI]=GI[AI]=GI[jI]=GI[MI]=GI[NI]=!1;function KI(e){return ZF(e)&&oI(e.length)&&!!GI[zP(e)]}function qI(e){return function(t){return e(t)}}var JI=typeof exports==`object`&&exports&&!exports.nodeType&&exports,YI=JI&&typeof module==`object`&&module&&!module.nodeType&&module,XI=YI&&YI.exports===JI&&TP.process,ZI=function(){try{return YI&&YI.require&&YI.require(`util`).types||XI&&XI.binding&&XI.binding(`util`)}catch{}}(),QI=ZI&&ZI.isTypedArray,$I=QI?qI(QI):KI;function eL(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}var tL=Object.prototype.hasOwnProperty;function nL(e,t,n){var r=e[t];(!(tL.call(e,t)&&pP(r,n))||n===void 0&&!(t in e))&&jF(e,t,n)}function rL(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?jF(n,s,c):nL(n,s,c)}return n}function iL(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var aL=9007199254740991,oL=/^(?:0|[1-9]\d*)$/;function sL(e,t){var n=typeof e;return t??=aL,!!t&&(n==`number`||n!=`symbol`&&oL.test(e))&&e>-1&&e%1==0&&e<t}var cL=Object.prototype.hasOwnProperty;function lL(e,t){var n=iI(e),r=!n&&rI(e),i=!n&&!r&&pI(e),a=!n&&!r&&!i&&$I(e),o=n||r||i||a,s=o?iL(e.length,String):[],c=s.length;for(var l in e)(t||cL.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||sL(l,c)))&&s.push(l);return s}function uL(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var dL=Object.prototype.hasOwnProperty;function fL(e){if(!BP(e))return uL(e);var t=YF(e),n=[];for(var r in e)r==`constructor`&&(t||!dL.call(e,r))||n.push(r);return n}function pL(e){return sI(e)?lL(e,!0):fL(e)}function mL(e){return rL(e,pL(e))}function hL(e,t,n,r,i,a,o){var s=eL(e,n),c=eL(t,n),l=o.get(c);if(l){MF(e,n,l);return}var u=a?a(s,c,n+``,e,t,o):void 0,d=u===void 0;if(d){var f=iI(c),p=!f&&pI(c),m=!f&&!p&&$I(c);u=c,f||p||m?iI(s)?u=s:cI(s)?u=UF(s):p?(d=!1,u=zF(c,!0)):m?(d=!1,u=HF(c,!0)):u=[]:bI(c)||rI(c)?(u=s,rI(s)?u=mL(s):(!BP(s)||GP(s))&&(u=XF(c))):d=!1}d&&(o.set(c,u),i(u,c,r,a,o),o.delete(c)),MF(e,n,u)}function gL(e,t,n,r,i){e!==t&&PF(t,function(a,o){if(i||=new kF,BP(a))hL(e,t,o,n,gL,r,i);else{var s=r?r(eL(e,o),a,o+``,e,t,i):void 0;s===void 0&&(s=a),MF(e,o,s)}},pL)}function _L(e){return e}function vL(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var yL=Math.max;function bL(e,t,n){return t=yL(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=yL(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),vL(e,this,s)}}function xL(e){return function(){return e}}var SL=AF?function(e,t){return AF(e,`toString`,{configurable:!0,enumerable:!1,value:xL(t),writable:!0})}:_L,CL=800,wL=16,TL=Date.now;function EL(e){var t=0,n=0;return function(){var r=TL(),i=wL-(r-n);if(n=r,i>0){if(++t>=CL)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var DL=EL(SL);function OL(e,t){return DL(bL(e,t,_L),e+``)}function kL(e,t,n){if(!BP(n))return!1;var r=typeof t;return(r==`number`?sI(n)&&sL(t,n.length):r==`string`&&t in n)?pP(n[t],e):!1}function AL(e){return OL(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&kL(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}var jL=AL(function(e,t,n){gL(e,t,n)}),Z=c(qt()),ML=function(e){var t=e.zDepth,n=e.radius,r=e.background,i=e.children,a=e.styles,o=a===void 0?{}:a,s=(0,FN.default)(jL({default:{wrap:{position:`relative`,display:`inline-block`},content:{position:`relative`},bg:{absolute:`0px 0px 0px 0px`,boxShadow:`0 `+t+`px `+t*4+`px rgba(0,0,0,.24)`,borderRadius:n,background:r}},"zDepth-0":{bg:{boxShadow:`none`}},"zDepth-1":{bg:{boxShadow:`0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)`}},"zDepth-2":{bg:{boxShadow:`0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)`}},"zDepth-3":{bg:{boxShadow:`0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)`}},"zDepth-4":{bg:{boxShadow:`0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)`}},"zDepth-5":{bg:{boxShadow:`0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)`}},square:{bg:{borderRadius:`0`}},circle:{bg:{borderRadius:`50%`}}},o),{"zDepth-1":t===1});return B.createElement(`div`,{style:s.wrap},B.createElement(`div`,{style:s.bg}),B.createElement(`div`,{style:s.content},i))};ML.propTypes={background:Z.default.string,zDepth:Z.default.oneOf([0,1,2,3,4,5]),radius:Z.default.number,styles:Z.default.object},ML.defaultProps={background:`#fff`,zDepth:1,radius:2,styles:{}};var NL=function(){return DP.Date.now()},PL=/\s/;function FL(e){for(var t=e.length;t--&&PL.test(e.charAt(t)););return t}var IL=/^\s+/;function LL(e){return e&&e.slice(0,FL(e)+1).replace(IL,``)}var RL=`[object Symbol]`;function zL(e){return typeof e==`symbol`||ZF(e)&&zP(e)==RL}var BL=NaN,VL=/^[-+]0x[0-9a-f]+$/i,HL=/^0b[01]+$/i,UL=/^0o[0-7]+$/i,WL=parseInt;function GL(e){if(typeof e==`number`)return e;if(zL(e))return BL;if(BP(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=BP(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=LL(e);var n=HL.test(e);return n||UL.test(e)?WL(e.slice(2),n?2:8):VL.test(e)?BL:+e}var KL=`Expected a function`,qL=Math.max,JL=Math.min;function YL(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,f=!0;if(typeof e!=`function`)throw TypeError(KL);t=GL(t)||0,BP(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?qL(GL(n.maxWait)||0,t):a,f=`trailing`in n?!!n.trailing:f);function p(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function m(e){return l=e,s=setTimeout(_,t),u?p(e):o}function h(e){var n=e-c,r=e-l,i=t-n;return d?JL(i,a-r):i}function g(e){var n=e-c,r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function _(){var e=NL();if(g(e))return v(e);s=setTimeout(_,h(e))}function v(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function y(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function b(){return s===void 0?o:v(NL())}function x(){var e=NL(),n=g(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return clearTimeout(s),s=setTimeout(_,t),p(c)}return s===void 0&&(s=setTimeout(_,t)),o}return x.cancel=y,x.flush=b,x}var XL=`Expected a function`;function ZL(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(XL);return BP(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),YL(e,t,{leading:r,maxWait:t,trailing:i})}var QL=function(e,t,n){var r=n.getBoundingClientRect(),i=r.width,a=r.height,o=typeof e.pageX==`number`?e.pageX:e.touches[0].pageX,s=typeof e.pageY==`number`?e.pageY:e.touches[0].pageY,c=o-(n.getBoundingClientRect().left+window.pageXOffset),l=s-(n.getBoundingClientRect().top+window.pageYOffset);c<0?c=0:c>i&&(c=i),l<0?l=0:l>a&&(l=a);var u=c/i,d=1-l/a;return{h:t.h,s:u,v:d,a:t.a,source:`hsv`}},$L=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function eR(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function tR(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function nR(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var rR=function(e){nR(t,e);function t(e){eR(this,t);var n=tR(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=function(e){typeof n.props.onChange==`function`&&n.throttle(n.props.onChange,QL(e,n.props.hsl,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e);var t=n.getContainerRenderWindow();t.addEventListener(`mousemove`,n.handleChange),t.addEventListener(`mouseup`,n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=ZL(function(e,t,n){e(t,n)},50),n}return $L(t,[{key:`componentWillUnmount`,value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:`getContainerRenderWindow`,value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:`unbindEventListeners`,value:function(){var e=this.getContainerRenderWindow();e.removeEventListener(`mousemove`,this.handleChange),e.removeEventListener(`mouseup`,this.handleMouseUp)}},{key:`render`,value:function(){var e=this,t=this.props.style||{},n=t.color,r=t.white,i=t.black,a=t.pointer,o=t.circle,s=(0,FN.default)({default:{color:{absolute:`0px 0px 0px 0px`,background:`hsl(`+this.props.hsl.h+`,100%, 50%)`,borderRadius:this.props.radius},white:{absolute:`0px 0px 0px 0px`,borderRadius:this.props.radius},black:{absolute:`0px 0px 0px 0px`,boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:`absolute`,top:-(this.props.hsv.v*100)+100+`%`,left:this.props.hsv.s*100+`%`,cursor:`default`},circle:{width:`4px`,height:`4px`,boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),
|
|
637
|
+
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:`50%`,cursor:`hand`,transform:`translate(-2px, -2px)`}},custom:{color:n,white:r,black:i,pointer:a,circle:o}},{custom:!!this.props.style});return B.createElement(`div`,{style:s.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},B.createElement(`style`,null,`
|
|
638
|
+
.saturation-white {
|
|
639
|
+
background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
|
|
640
|
+
background: linear-gradient(to right, #fff, rgba(255,255,255,0));
|
|
641
|
+
}
|
|
642
|
+
.saturation-black {
|
|
643
|
+
background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
|
|
644
|
+
background: linear-gradient(to top, #000, rgba(0,0,0,0));
|
|
645
|
+
}
|
|
646
|
+
`),B.createElement(`div`,{style:s.white,className:`saturation-white`},B.createElement(`div`,{style:s.black,className:`saturation-black`}),B.createElement(`div`,{style:s.pointer},this.props.pointer?B.createElement(this.props.pointer,this.props):B.createElement(`div`,{style:s.circle}))))}}]),t}(B.PureComponent||B.Component);function iR(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var aR=KF(Object.keys,Object),oR=Object.prototype.hasOwnProperty;function sR(e){if(!YF(e))return aR(e);var t=[];for(var n in Object(e))oR.call(e,n)&&n!=`constructor`&&t.push(n);return t}function cR(e){return sI(e)?lL(e):sR(e)}function lR(e,t){return e&&PF(e,t,cR)}function uR(e,t){return function(n,r){if(n==null)return n;if(!sI(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var dR=uR(lR);function fR(e){return typeof e==`function`?e:_L}function pR(e,t){return(iI(e)?iR:dR)(e,fR(t))}function mR(e){"@babel/helpers - typeof";return mR=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},mR(e)}var hR=/^\s+/,gR=/\s+$/;function _R(e,t){if(e||=``,t||={},e instanceof _R)return e;if(!(this instanceof _R))return new _R(e,t);var n=vR(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}_R.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255,i=t<=.03928?t/12.92:((t+.055)/1.055)**2.4,a=n<=.03928?n/12.92:((n+.055)/1.055)**2.4,o=r<=.03928?r/12.92:((r+.055)/1.055)**2.4;return .2126*i+.7152*a+.0722*o},setAlpha:function(e){return this._a=HR(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=SR(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=SR(this._r,this._g,this._b),t=Math.round(e.h*360),n=Math.round(e.s*100),r=Math.round(e.v*100);return this._a==1?`hsv(`+t+`, `+n+`%, `+r+`%)`:`hsva(`+t+`, `+n+`%, `+r+`%, `+this._roundA+`)`},toHsl:function(){var e=bR(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=bR(this._r,this._g,this._b),t=Math.round(e.h*360),n=Math.round(e.s*100),r=Math.round(e.l*100);return this._a==1?`hsl(`+t+`, `+n+`%, `+r+`%)`:`hsla(`+t+`, `+n+`%, `+r+`%, `+this._roundA+`)`},toHex:function(e){return wR(this._r,this._g,this._b,e)},toHexString:function(e){return`#`+this.toHex(e)},toHex8:function(e){return TR(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return`#`+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?`rgb(`+Math.round(this._r)+`, `+Math.round(this._g)+`, `+Math.round(this._b)+`)`:`rgba(`+Math.round(this._r)+`, `+Math.round(this._g)+`, `+Math.round(this._b)+`, `+this._roundA+`)`},toPercentageRgb:function(){return{r:Math.round(UR(this._r,255)*100)+`%`,g:Math.round(UR(this._g,255)*100)+`%`,b:Math.round(UR(this._b,255)*100)+`%`,a:this._a}},toPercentageRgbString:function(){return this._a==1?`rgb(`+Math.round(UR(this._r,255)*100)+`%, `+Math.round(UR(this._g,255)*100)+`%, `+Math.round(UR(this._b,255)*100)+`%)`:`rgba(`+Math.round(UR(this._r,255)*100)+`%, `+Math.round(UR(this._g,255)*100)+`%, `+Math.round(UR(this._b,255)*100)+`%, `+this._roundA+`)`},toName:function(){return this._a===0?`transparent`:this._a<1?!1:BR[wR(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var t=`#`+ER(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?`GradientType = 1, `:``;if(e){var i=_R(e);n=`#`+ER(i._r,i._g,i._b,i._a)}return`progid:DXImageTransform.Microsoft.gradient(`+r+`startColorstr=`+t+`,endColorstr=`+n+`)`},toString:function(e){var t=!!e;e||=this._format;var n=!1,r=this._a<1&&this._a>=0;return!t&&r&&(e===`hex`||e===`hex6`||e===`hex3`||e===`hex4`||e===`hex8`||e===`name`)?e===`name`&&this._a===0?this.toName():this.toRgbString():(e===`rgb`&&(n=this.toRgbString()),e===`prgb`&&(n=this.toPercentageRgbString()),(e===`hex`||e===`hex6`)&&(n=this.toHexString()),e===`hex3`&&(n=this.toHexString(!0)),e===`hex4`&&(n=this.toHex8String(!0)),e===`hex8`&&(n=this.toHex8String()),e===`name`&&(n=this.toName()),e===`hsl`&&(n=this.toHslString()),e===`hsv`&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return _R(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(AR,arguments)},brighten:function(){return this._applyModification(jR,arguments)},darken:function(){return this._applyModification(MR,arguments)},desaturate:function(){return this._applyModification(DR,arguments)},saturate:function(){return this._applyModification(OR,arguments)},greyscale:function(){return this._applyModification(kR,arguments)},spin:function(){return this._applyModification(NR,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(LR,arguments)},complement:function(){return this._applyCombination(PR,arguments)},monochromatic:function(){return this._applyCombination(RR,arguments)},splitcomplement:function(){return this._applyCombination(IR,arguments)},triad:function(){return this._applyCombination(FR,[3])},tetrad:function(){return this._applyCombination(FR,[4])}},_R.fromRatio=function(e,t){if(mR(e)==`object`){var n={};for(var r in e)e.hasOwnProperty(r)&&(r===`a`?n[r]=e[r]:n[r]=YR(e[r]));e=n}return _R(e,t)};function vR(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,o=!1,s=!1;return typeof e==`string`&&(e=ez(e)),mR(e)==`object`&&($R(e.r)&&$R(e.g)&&$R(e.b)?(t=yR(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)===`%`?`prgb`:`rgb`):$R(e.h)&&$R(e.s)&&$R(e.v)?(r=YR(e.s),i=YR(e.v),t=CR(e.h,r,i),o=!0,s=`hsv`):$R(e.h)&&$R(e.s)&&$R(e.l)&&(r=YR(e.s),a=YR(e.l),t=xR(e.h,r,a),o=!0,s=`hsl`),e.hasOwnProperty(`a`)&&(n=e.a)),n=HR(n),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function yR(e,t,n){return{r:UR(e,255)*255,g:UR(t,255)*255,b:UR(n,255)*255}}function bR(e,t,n){e=UR(e,255),t=UR(t,255),n=UR(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a,o,s=(r+i)/2;if(r==i)a=o=0;else{var c=r-i;switch(o=s>.5?c/(2-r-i):c/(r+i),r){case e:a=(t-n)/c+(t<n?6:0);break;case t:a=(n-e)/c+2;break;case n:a=(e-t)/c+4;break}a/=6}return{h:a,s:o,l:s}}function xR(e,t,n){var r,i,a;e=UR(e,360),t=UR(t,100),n=UR(n,100);function o(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(t===0)r=i=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;r=o(c,s,e+1/3),i=o(c,s,e),a=o(c,s,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function SR(e,t,n){e=UR(e,255),t=UR(t,255),n=UR(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a,o,s=r,c=r-i;if(o=r===0?0:c/r,r==i)a=0;else{switch(r){case e:a=(t-n)/c+(t<n?6:0);break;case t:a=(n-e)/c+2;break;case n:a=(e-t)/c+4;break}a/=6}return{h:a,s:o,v:s}}function CR(e,t,n){e=UR(e,360)*6,t=UR(t,100),n=UR(n,100);var r=Math.floor(e),i=e-r,a=n*(1-t),o=n*(1-i*t),s=n*(1-(1-i)*t),c=r%6,l=[n,o,a,a,s,n][c],u=[s,n,n,o,a,a][c],d=[a,a,s,n,n,o][c];return{r:l*255,g:u*255,b:d*255}}function wR(e,t,n,r){var i=[JR(Math.round(e).toString(16)),JR(Math.round(t).toString(16)),JR(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join(``)}function TR(e,t,n,r,i){var a=[JR(Math.round(e).toString(16)),JR(Math.round(t).toString(16)),JR(Math.round(n).toString(16)),JR(XR(r))];return i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join(``)}function ER(e,t,n,r){return[JR(XR(r)),JR(Math.round(e).toString(16)),JR(Math.round(t).toString(16)),JR(Math.round(n).toString(16))].join(``)}_R.equals=function(e,t){return!e||!t?!1:_R(e).toRgbString()==_R(t).toRgbString()},_R.random=function(){return _R.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function DR(e,t){t=t===0?0:t||10;var n=_R(e).toHsl();return n.s-=t/100,n.s=WR(n.s),_R(n)}function OR(e,t){t=t===0?0:t||10;var n=_R(e).toHsl();return n.s+=t/100,n.s=WR(n.s),_R(n)}function kR(e){return _R(e).desaturate(100)}function AR(e,t){t=t===0?0:t||10;var n=_R(e).toHsl();return n.l+=t/100,n.l=WR(n.l),_R(n)}function jR(e,t){t=t===0?0:t||10;var n=_R(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),_R(n)}function MR(e,t){t=t===0?0:t||10;var n=_R(e).toHsl();return n.l-=t/100,n.l=WR(n.l),_R(n)}function NR(e,t){var n=_R(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,_R(n)}function PR(e){var t=_R(e).toHsl();return t.h=(t.h+180)%360,_R(t)}function FR(e,t){if(isNaN(t)||t<=0)throw Error(`Argument to polyad must be a positive number`);for(var n=_R(e).toHsl(),r=[_R(e)],i=360/t,a=1;a<t;a++)r.push(_R({h:(n.h+a*i)%360,s:n.s,l:n.l}));return r}function IR(e){var t=_R(e).toHsl(),n=t.h;return[_R(e),_R({h:(n+72)%360,s:t.s,l:t.l}),_R({h:(n+216)%360,s:t.s,l:t.l})]}function LR(e,t,n){t||=6,n||=30;var r=_R(e).toHsl(),i=360/n,a=[_R(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(_R(r));return a}function RR(e,t){t||=6;for(var n=_R(e).toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(_R({h:r,s:i,v:a})),a=(a+s)%1;return o}_R.mix=function(e,t,n){n=n===0?0:n||50;var r=_R(e).toRgb(),i=_R(t).toRgb(),a=n/100;return _R({r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a})},_R.readability=function(e,t){var n=_R(e),r=_R(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},_R.isReadable=function(e,t,n){var r=_R.readability(e,t),i,a=!1;switch(i=tz(n),i.level+i.size){case`AAsmall`:case`AAAlarge`:a=r>=4.5;break;case`AAlarge`:a=r>=3;break;case`AAAsmall`:a=r>=7;break}return a},_R.mostReadable=function(e,t,n){var r=null,i=0,a,o,s,c;n||={},o=n.includeFallbackColors,s=n.level,c=n.size;for(var l=0;l<t.length;l++)a=_R.readability(e,t[l]),a>i&&(i=a,r=_R(t[l]));return _R.isReadable(e,r,{level:s,size:c})||!o?r:(n.includeFallbackColors=!1,_R.mostReadable(e,[`#fff`,`#000`],n))};var zR=_R.names={aliceblue:`f0f8ff`,antiquewhite:`faebd7`,aqua:`0ff`,aquamarine:`7fffd4`,azure:`f0ffff`,beige:`f5f5dc`,bisque:`ffe4c4`,black:`000`,blanchedalmond:`ffebcd`,blue:`00f`,blueviolet:`8a2be2`,brown:`a52a2a`,burlywood:`deb887`,burntsienna:`ea7e5d`,cadetblue:`5f9ea0`,chartreuse:`7fff00`,chocolate:`d2691e`,coral:`ff7f50`,cornflowerblue:`6495ed`,cornsilk:`fff8dc`,crimson:`dc143c`,cyan:`0ff`,darkblue:`00008b`,darkcyan:`008b8b`,darkgoldenrod:`b8860b`,darkgray:`a9a9a9`,darkgreen:`006400`,darkgrey:`a9a9a9`,darkkhaki:`bdb76b`,darkmagenta:`8b008b`,darkolivegreen:`556b2f`,darkorange:`ff8c00`,darkorchid:`9932cc`,darkred:`8b0000`,darksalmon:`e9967a`,darkseagreen:`8fbc8f`,darkslateblue:`483d8b`,darkslategray:`2f4f4f`,darkslategrey:`2f4f4f`,darkturquoise:`00ced1`,darkviolet:`9400d3`,deeppink:`ff1493`,deepskyblue:`00bfff`,dimgray:`696969`,dimgrey:`696969`,dodgerblue:`1e90ff`,firebrick:`b22222`,floralwhite:`fffaf0`,forestgreen:`228b22`,fuchsia:`f0f`,gainsboro:`dcdcdc`,ghostwhite:`f8f8ff`,gold:`ffd700`,goldenrod:`daa520`,gray:`808080`,green:`008000`,greenyellow:`adff2f`,grey:`808080`,honeydew:`f0fff0`,hotpink:`ff69b4`,indianred:`cd5c5c`,indigo:`4b0082`,ivory:`fffff0`,khaki:`f0e68c`,lavender:`e6e6fa`,lavenderblush:`fff0f5`,lawngreen:`7cfc00`,lemonchiffon:`fffacd`,lightblue:`add8e6`,lightcoral:`f08080`,lightcyan:`e0ffff`,lightgoldenrodyellow:`fafad2`,lightgray:`d3d3d3`,lightgreen:`90ee90`,lightgrey:`d3d3d3`,lightpink:`ffb6c1`,lightsalmon:`ffa07a`,lightseagreen:`20b2aa`,lightskyblue:`87cefa`,lightslategray:`789`,lightslategrey:`789`,lightsteelblue:`b0c4de`,lightyellow:`ffffe0`,lime:`0f0`,limegreen:`32cd32`,linen:`faf0e6`,magenta:`f0f`,maroon:`800000`,mediumaquamarine:`66cdaa`,mediumblue:`0000cd`,mediumorchid:`ba55d3`,mediumpurple:`9370db`,mediumseagreen:`3cb371`,mediumslateblue:`7b68ee`,mediumspringgreen:`00fa9a`,mediumturquoise:`48d1cc`,mediumvioletred:`c71585`,midnightblue:`191970`,mintcream:`f5fffa`,mistyrose:`ffe4e1`,moccasin:`ffe4b5`,navajowhite:`ffdead`,navy:`000080`,oldlace:`fdf5e6`,olive:`808000`,olivedrab:`6b8e23`,orange:`ffa500`,orangered:`ff4500`,orchid:`da70d6`,palegoldenrod:`eee8aa`,palegreen:`98fb98`,paleturquoise:`afeeee`,palevioletred:`db7093`,papayawhip:`ffefd5`,peachpuff:`ffdab9`,peru:`cd853f`,pink:`ffc0cb`,plum:`dda0dd`,powderblue:`b0e0e6`,purple:`800080`,rebeccapurple:`663399`,red:`f00`,rosybrown:`bc8f8f`,royalblue:`4169e1`,saddlebrown:`8b4513`,salmon:`fa8072`,sandybrown:`f4a460`,seagreen:`2e8b57`,seashell:`fff5ee`,sienna:`a0522d`,silver:`c0c0c0`,skyblue:`87ceeb`,slateblue:`6a5acd`,slategray:`708090`,slategrey:`708090`,snow:`fffafa`,springgreen:`00ff7f`,steelblue:`4682b4`,tan:`d2b48c`,teal:`008080`,thistle:`d8bfd8`,tomato:`ff6347`,turquoise:`40e0d0`,violet:`ee82ee`,wheat:`f5deb3`,white:`fff`,whitesmoke:`f5f5f5`,yellow:`ff0`,yellowgreen:`9acd32`},BR=_R.hexNames=VR(zR);function VR(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function HR(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function UR(e,t){KR(e)&&(e=`100%`);var n=qR(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function WR(e){return Math.min(1,Math.max(0,e))}function GR(e){return parseInt(e,16)}function KR(e){return typeof e==`string`&&e.indexOf(`.`)!=-1&&parseFloat(e)===1}function qR(e){return typeof e==`string`&&e.indexOf(`%`)!=-1}function JR(e){return e.length==1?`0`+e:``+e}function YR(e){return e<=1&&(e=e*100+`%`),e}function XR(e){return Math.round(parseFloat(e)*255).toString(16)}function ZR(e){return GR(e)/255}var QR=function(){var e=`(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)`,t=`[\\s|\\(]+(`+e+`)[,|\\s]+(`+e+`)[,|\\s]+(`+e+`)\\s*\\)?`,n=`[\\s|\\(]+(`+e+`)[,|\\s]+(`+e+`)[,|\\s]+(`+e+`)[,|\\s]+(`+e+`)\\s*\\)?`;return{CSS_UNIT:new RegExp(e),rgb:RegExp(`rgb`+t),rgba:RegExp(`rgba`+n),hsl:RegExp(`hsl`+t),hsla:RegExp(`hsla`+n),hsv:RegExp(`hsv`+t),hsva:RegExp(`hsva`+n),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function $R(e){return!!QR.CSS_UNIT.exec(e)}function ez(e){e=e.replace(hR,``).replace(gR,``).toLowerCase();var t=!1;if(zR[e])e=zR[e],t=!0;else if(e==`transparent`)return{r:0,g:0,b:0,a:0,format:`name`};var n;return(n=QR.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=QR.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=QR.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=QR.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=QR.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=QR.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=QR.hex8.exec(e))?{r:GR(n[1]),g:GR(n[2]),b:GR(n[3]),a:ZR(n[4]),format:t?`name`:`hex8`}:(n=QR.hex6.exec(e))?{r:GR(n[1]),g:GR(n[2]),b:GR(n[3]),format:t?`name`:`hex`}:(n=QR.hex4.exec(e))?{r:GR(n[1]+``+n[1]),g:GR(n[2]+``+n[2]),b:GR(n[3]+``+n[3]),a:ZR(n[4]+``+n[4]),format:t?`name`:`hex8`}:(n=QR.hex3.exec(e))?{r:GR(n[1]+``+n[1]),g:GR(n[2]+``+n[2]),b:GR(n[3]+``+n[3]),format:t?`name`:`hex`}:!1}function tz(e){var t,n;return e||={level:`AA`,size:`small`},t=(e.level||`AA`).toUpperCase(),n=(e.size||`small`).toLowerCase(),t!==`AA`&&t!==`AAA`&&(t=`AA`),n!==`small`&&n!==`large`&&(n=`small`),{level:t,size:n}}var nz=function(e){var t=[`r`,`g`,`b`,`a`,`h`,`s`,`l`,`v`],n=0,r=0;return pR(t,function(t){e[t]&&(n+=1,isNaN(e[t])||(r+=1),(t===`s`||t===`l`)&&/^\d+%$/.test(e[t])&&(r+=1))}),n===r?e:!1},rz=function(e,t){var n=e.hex?_R(e.hex):_R(e),r=n.toHsl(),i=n.toHsv(),a=n.toRgb(),o=n.toHex();return r.s===0&&(r.h=t||0,i.h=t||0),{hsl:r,hex:o===`000000`&&a.a===0?`transparent`:`#`+o,rgb:a,hsv:i,oldHue:e.h||t||r.h,source:e.source}},iz=function(e){if(e===`transparent`)return!0;var t=+(String(e).charAt(0)===`#`);return e.length!==4+t&&e.length<7+t&&_R(e).isValid()},az=function(e){if(!e)return`#fff`;var t=rz(e);return t.hex===`transparent`?`rgba(0,0,0,0.4)`:(t.rgb.r*299+t.rgb.g*587+t.rgb.b*114)/1e3>=128?`#000`:`#fff`},oz=function(e,t){var n=e.replace(`°`,``);return _R(t+` (`+n+`)`)._ok},sz=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cz=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function lz(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function uz(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function dz(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var fz=function(e){var t=function(t){dz(n,t);function n(e){lz(this,n);var t=uz(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.handleChange=function(e,n){if(nz(e)){var r=rz(e,e.h||t.state.oldHue);t.setState(r),t.props.onChangeComplete&&t.debounce(t.props.onChangeComplete,r,n),t.props.onChange&&t.props.onChange(r,n)}},t.handleSwatchHover=function(e,n){if(nz(e)){var r=rz(e,e.h||t.state.oldHue);t.props.onSwatchHover&&t.props.onSwatchHover(r,n)}},t.state=sz({},rz(e.color,0)),t.debounce=YL(function(e,t,n){e(t,n)},100),t}return cz(n,[{key:`render`,value:function(){var t={};return this.props.onSwatchHover&&(t.onSwatchHover=this.handleSwatchHover),B.createElement(e,sz({},this.props,this.state,{onChange:this.handleChange},t))}}],[{key:`getDerivedStateFromProps`,value:function(e,t){return sz({},rz(e.color,t.oldHue))}}]),n}(B.PureComponent||B.Component);return t.propTypes=sz({},e.propTypes),t.defaultProps=sz({},e.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),t},pz=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mz=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function hz(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function gz(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function _z(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var vz=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`span`;return function(n){_z(r,n);function r(){var e,t,n,i;hz(this,r);var a=[...arguments];return i=(t=(n=gz(this,(e=r.__proto__||Object.getPrototypeOf(r)).call.apply(e,[this].concat(a))),n),n.state={focus:!1},n.handleFocus=function(){return n.setState({focus:!0})},n.handleBlur=function(){return n.setState({focus:!1})},t),gz(n,i)}return mz(r,[{key:`render`,value:function(){return B.createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},B.createElement(e,pz({},this.props,this.state)))}}]),r}(B.Component)},yz=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bz=13,xz=vz(function(e){var t=e.color,n=e.style,r=e.onClick,i=r===void 0?function(){}:r,a=e.onHover,o=e.title,s=o===void 0?t:o,c=e.children,l=e.focus,u=e.focusStyle,d=u===void 0?{}:u,f=t===`transparent`,p=(0,FN.default)({default:{swatch:yz({background:t,height:`100%`,width:`100%`,cursor:`pointer`,position:`relative`,outline:`none`},n,l?d:{})}}),m=function(e){return i(t,e)},h=function(e){return e.keyCode===bz&&i(t,e)},g=function(e){return a(t,e)},_={};return a&&(_.onMouseOver=g),B.createElement(`div`,yz({style:p.swatch,onClick:m,title:s,tabIndex:0,onKeyDown:h},_),c,f&&B.createElement(VN,{borderRadius:p.swatch.borderRadius,boxShadow:`inset 0 0 0 1px rgba(0,0,0,0.1)`}))}),Sz=function(e){var t=e.direction,n=(0,FN.default)({default:{picker:{width:`18px`,height:`18px`,borderRadius:`50%`,transform:`translate(-9px, -1px)`,backgroundColor:`rgb(248, 248, 248)`,boxShadow:`0 1px 4px 0 rgba(0, 0, 0, 0.37)`}},vertical:{picker:{transform:`translate(-3px, -9px)`}}},{vertical:t===`vertical`});return B.createElement(`div`,{style:n.picker})},Cz=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wz=function(e){var t=e.rgb,n=e.hsl,r=e.width,i=e.height,a=e.onChange,o=e.direction,s=e.style,c=e.renderers,l=e.pointer,u=e.className,d=u===void 0?``:u,f=(0,FN.default)({default:{picker:{position:`relative`,width:r,height:i},alpha:{radius:`2px`,style:s}}});return B.createElement(`div`,{style:f.picker,className:`alpha-picker `+d},B.createElement(qN,Cz({},f.alpha,{rgb:t,hsl:n,pointer:l,renderers:c,onChange:a,direction:o})))};wz.defaultProps={width:`316px`,height:`16px`,direction:`horizontal`,pointer:Sz},fz(wz);function Tz(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var Ez=`__lodash_hash_undefined__`;function Dz(e){return this.__data__.set(e,Ez),this}function Oz(e){return this.__data__.has(e)}function kz(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new EF;++t<n;)this.add(e[t])}kz.prototype.add=kz.prototype.push=Dz,kz.prototype.has=Oz;function Az(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function jz(e,t){return e.has(t)}var Mz=1,Nz=2;function Pz(e,t,n,r,i,a){var o=n&Mz,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&Nz?new kz:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],h=t[d];if(r)var g=o?r(h,m,d,t,e,a):r(m,h,d,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!Az(t,function(e,t){if(!jz(p,t)&&(m===e||i(m,e,n,r,a)))return p.push(t)})){f=!1;break}}else if(!(m===h||i(m,h,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}function Fz(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Iz(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var Lz=1,Rz=2,zz=`[object Boolean]`,Bz=`[object Date]`,Vz=`[object Error]`,Hz=`[object Map]`,Uz=`[object Number]`,Wz=`[object RegExp]`,Gz=`[object Set]`,Kz=`[object String]`,qz=`[object Symbol]`,Jz=`[object ArrayBuffer]`,Yz=`[object DataView]`,Xz=OP?OP.prototype:void 0,Zz=Xz?Xz.valueOf:void 0;function Qz(e,t,n,r,i,a,o){switch(n){case Yz:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Jz:return!(e.byteLength!=t.byteLength||!a(new BF(e),new BF(t)));case zz:case Bz:case Uz:return pP(+e,+t);case Vz:return e.name==t.name&&e.message==t.message;case Wz:case Kz:return e==t+``;case Hz:var s=Fz;case Gz:var c=r&Lz;if(s||=Iz,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=Rz,o.set(e,t);var u=Pz(s(e),s(t),r,i,a,o);return o.delete(e),u;case qz:if(Zz)return Zz.call(e)==Zz.call(t)}return!1}function $z(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function eB(e,t,n){var r=t(e);return iI(e)?r:$z(r,n(e))}function tB(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function nB(){return[]}var rB=Object.prototype.propertyIsEnumerable,iB=Object.getOwnPropertySymbols,aB=iB?function(e){return e==null?[]:(e=Object(e),tB(iB(e),function(t){return rB.call(e,t)}))}:nB;function oB(e){return eB(e,cR,aB)}var sB=1,cB=Object.prototype.hasOwnProperty;function lB(e,t,n,r,i,a){var o=n&sB,s=oB(e),c=s.length;if(c!=oB(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:cB.call(t,u)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=o;++l<c;){u=s[l];var h=e[u],g=t[u];if(r)var _=o?r(g,h,u,t,e,a):r(h,g,u,e,t,a);if(!(_===void 0?h===g||i(h,g,n,r,a):_)){p=!1;break}m||=u==`constructor`}if(p&&!m){var v=e.constructor,y=t.constructor;v!=y&&`constructor`in e&&`constructor`in t&&!(typeof v==`function`&&v instanceof v&&typeof y==`function`&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}var uB=oF(DP,`DataView`),dB=oF(DP,`Promise`),fB=oF(DP,`Set`),pB=oF(DP,`WeakMap`),mB=`[object Map]`,hB=`[object Object]`,gB=`[object Promise]`,_B=`[object Set]`,vB=`[object WeakMap]`,yB=`[object DataView]`,bB=XP(uB),xB=XP(sF),SB=XP(dB),CB=XP(fB),wB=XP(pB),TB=zP;(uB&&TB(new uB(new ArrayBuffer(1)))!=yB||sF&&TB(new sF)!=mB||dB&&TB(dB.resolve())!=gB||fB&&TB(new fB)!=_B||pB&&TB(new pB)!=vB)&&(TB=function(e){var t=zP(e),n=t==hB?e.constructor:void 0,r=n?XP(n):``;if(r)switch(r){case bB:return yB;case xB:return mB;case SB:return gB;case CB:return _B;case wB:return vB}return t});var EB=TB,DB=1,OB=`[object Arguments]`,kB=`[object Array]`,AB=`[object Object]`,jB=Object.prototype.hasOwnProperty;function MB(e,t,n,r,i,a){var o=iI(e),s=iI(t),c=o?kB:EB(e),l=s?kB:EB(t);c=c==OB?AB:c,l=l==OB?AB:l;var u=c==AB,d=l==AB,f=c==l;if(f&&pI(e)){if(!pI(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new kF,o||$I(e)?Pz(e,t,n,r,i,a):Qz(e,t,c,n,r,i,a);if(!(n&DB)){var p=u&&jB.call(e,`__wrapped__`),m=d&&jB.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new kF,i(h,g,n,r,a)}}return f?(a||=new kF,lB(e,t,n,r,i,a)):!1}function NB(e,t,n,r,i){return e===t?!0:e==null||t==null||!ZF(e)&&!ZF(t)?e!==e&&t!==t:MB(e,t,n,r,NB,i)}var PB=1,FB=2;function IB(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var c=s[0],l=e[c],u=s[1];if(o&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new kF;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?NB(u,l,PB|FB,r,d):f))return!1}}return!0}function LB(e){return e===e&&!BP(e)}function RB(e){for(var t=cR(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,LB(i)]}return t}function zB(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function BB(e){var t=RB(e);return t.length==1&&t[0][2]?zB(t[0][0],t[0][1]):function(n){return n===e||IB(n,e,t)}}var VB=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,HB=/^\w*$/;function UB(e,t){if(iI(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||zL(e)?!0:HB.test(e)||!VB.test(e)||t!=null&&e in Object(t)}var WB=`Expected a function`;function GB(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(WB);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(GB.Cache||EF),n}GB.Cache=EF;var KB=500;function qB(e){var t=GB(e,function(e){return n.size===KB&&n.clear(),e}),n=t.cache;return t}var JB=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,YB=/\\(\\)?/g,XB=qB(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(JB,function(e,n,r,i){t.push(r?i.replace(YB,`$1`):n||e)}),t}),ZB=1/0,QB=OP?OP.prototype:void 0,$B=QB?QB.toString:void 0;function eV(e){if(typeof e==`string`)return e;if(iI(e))return Tz(e,eV)+``;if(zL(e))return $B?$B.call(e):``;var t=e+``;return t==`0`&&1/e==-ZB?`-0`:t}function tV(e){return e==null?``:eV(e)}function nV(e,t){return iI(e)?e:UB(e,t)?[e]:XB(tV(e))}var rV=1/0;function iV(e){if(typeof e==`string`||zL(e))return e;var t=e+``;return t==`0`&&1/e==-rV?`-0`:t}function aV(e,t){t=nV(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[iV(t[n++])];return n&&n==r?e:void 0}function oV(e,t,n){var r=e==null?void 0:aV(e,t);return r===void 0?n:r}function sV(e,t){return e!=null&&t in Object(e)}function cV(e,t,n){t=nV(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=iV(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&oI(i)&&sL(o,i)&&(iI(e)||rI(e)))}function lV(e,t){return e!=null&&cV(e,t,sV)}var uV=1,dV=2;function fV(e,t){return UB(e)&&LB(t)?zB(iV(e),t):function(n){var r=oV(n,e);return r===void 0&&r===t?lV(n,e):NB(t,r,uV|dV)}}function pV(e){return function(t){return t?.[e]}}function mV(e){return function(t){return aV(t,e)}}function hV(e){return UB(e)?pV(iV(e)):mV(e)}function gV(e){return typeof e==`function`?e:e==null?_L:typeof e==`object`?iI(e)?fV(e[0],e[1]):BB(e):hV(e)}function _V(e,t){var n=-1,r=sI(e)?Array(e.length):[];return dR(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function vV(e,t){return(iI(e)?Tz:_V)(e,gV(t,3))}var yV=function(e){var t=e.colors,n=e.onClick,r=e.onSwatchHover,i=(0,FN.default)({default:{swatches:{marginRight:`-10px`},swatch:{width:`22px`,height:`22px`,float:`left`,marginRight:`10px`,marginBottom:`10px`,borderRadius:`4px`},clear:{clear:`both`}}});return B.createElement(`div`,{style:i.swatches},vV(t,function(e){return B.createElement(xz,{key:e,color:e,style:i.swatch,onClick:n,onHover:r,focusStyle:{boxShadow:`0 0 4px `+e}})}),B.createElement(`div`,{style:i.clear}))},bV=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.hex,i=e.colors,a=e.width,o=e.triangle,s=e.styles,c=s===void 0?{}:s,l=e.className,u=l===void 0?``:l,d=r===`transparent`,f=function(e,n){iz(e)&&t({hex:e,source:`hex`},n)},p=(0,FN.default)(jL({default:{card:{width:a,background:`#fff`,boxShadow:`0 1px rgba(0,0,0,.1)`,borderRadius:`6px`,position:`relative`},head:{height:`110px`,background:r,borderRadius:`6px 6px 0 0`,display:`flex`,alignItems:`center`,justifyContent:`center`,position:`relative`},body:{padding:`10px`},label:{fontSize:`18px`,color:az(r),position:`relative`},triangle:{width:`0px`,height:`0px`,borderStyle:`solid`,borderWidth:`0 10px 10px 10px`,borderColor:`transparent transparent `+r+` transparent`,position:`absolute`,top:`-10px`,left:`50%`,marginLeft:`-10px`},input:{width:`100%`,fontSize:`12px`,color:`#666`,border:`0px`,outline:`none`,height:`22px`,boxShadow:`inset 0 0 0 1px #ddd`,borderRadius:`4px`,padding:`0 7px`,boxSizing:`border-box`}},"hide-triangle":{triangle:{display:`none`}}},c),{"hide-triangle":o===`hide`});return B.createElement(`div`,{style:p.card,className:`block-picker `+u},B.createElement(`div`,{style:p.triangle}),B.createElement(`div`,{style:p.head},d&&B.createElement(VN,{borderRadius:`6px 6px 0 0`}),B.createElement(`div`,{style:p.label},r)),B.createElement(`div`,{style:p.body},B.createElement(yV,{colors:i,onClick:f,onSwatchHover:n}),B.createElement(aP,{style:{input:p.input},value:r,onChange:f})))};bV.propTypes={width:Z.default.oneOfType([Z.default.string,Z.default.number]),colors:Z.default.arrayOf(Z.default.string),triangle:Z.default.oneOf([`top`,`hide`]),styles:Z.default.object},bV.defaultProps={width:170,colors:[`#D9E3F0`,`#F47373`,`#697689`,`#37D67A`,`#2CCCE4`,`#555555`,`#dce775`,`#ff8a65`,`#ba68c8`],triangle:`top`,styles:{}},fz(bV);var xV={50:`#ffebee`,100:`#ffcdd2`,200:`#ef9a9a`,300:`#e57373`,400:`#ef5350`,500:`#f44336`,600:`#e53935`,700:`#d32f2f`,800:`#c62828`,900:`#b71c1c`,a100:`#ff8a80`,a200:`#ff5252`,a400:`#ff1744`,a700:`#d50000`},SV={50:`#fce4ec`,100:`#f8bbd0`,200:`#f48fb1`,300:`#f06292`,400:`#ec407a`,500:`#e91e63`,600:`#d81b60`,700:`#c2185b`,800:`#ad1457`,900:`#880e4f`,a100:`#ff80ab`,a200:`#ff4081`,a400:`#f50057`,a700:`#c51162`},CV={50:`#f3e5f5`,100:`#e1bee7`,200:`#ce93d8`,300:`#ba68c8`,400:`#ab47bc`,500:`#9c27b0`,600:`#8e24aa`,700:`#7b1fa2`,800:`#6a1b9a`,900:`#4a148c`,a100:`#ea80fc`,a200:`#e040fb`,a400:`#d500f9`,a700:`#aa00ff`},wV={50:`#ede7f6`,100:`#d1c4e9`,200:`#b39ddb`,300:`#9575cd`,400:`#7e57c2`,500:`#673ab7`,600:`#5e35b1`,700:`#512da8`,800:`#4527a0`,900:`#311b92`,a100:`#b388ff`,a200:`#7c4dff`,a400:`#651fff`,a700:`#6200ea`},TV={50:`#e8eaf6`,100:`#c5cae9`,200:`#9fa8da`,300:`#7986cb`,400:`#5c6bc0`,500:`#3f51b5`,600:`#3949ab`,700:`#303f9f`,800:`#283593`,900:`#1a237e`,a100:`#8c9eff`,a200:`#536dfe`,a400:`#3d5afe`,a700:`#304ffe`},EV={50:`#e3f2fd`,100:`#bbdefb`,200:`#90caf9`,300:`#64b5f6`,400:`#42a5f5`,500:`#2196f3`,600:`#1e88e5`,700:`#1976d2`,800:`#1565c0`,900:`#0d47a1`,a100:`#82b1ff`,a200:`#448aff`,a400:`#2979ff`,a700:`#2962ff`},DV={50:`#e1f5fe`,100:`#b3e5fc`,200:`#81d4fa`,300:`#4fc3f7`,400:`#29b6f6`,500:`#03a9f4`,600:`#039be5`,700:`#0288d1`,800:`#0277bd`,900:`#01579b`,a100:`#80d8ff`,a200:`#40c4ff`,a400:`#00b0ff`,a700:`#0091ea`},OV={50:`#e0f7fa`,100:`#b2ebf2`,200:`#80deea`,300:`#4dd0e1`,400:`#26c6da`,500:`#00bcd4`,600:`#00acc1`,700:`#0097a7`,800:`#00838f`,900:`#006064`,a100:`#84ffff`,a200:`#18ffff`,a400:`#00e5ff`,a700:`#00b8d4`},kV={50:`#e0f2f1`,100:`#b2dfdb`,200:`#80cbc4`,300:`#4db6ac`,400:`#26a69a`,500:`#009688`,600:`#00897b`,700:`#00796b`,800:`#00695c`,900:`#004d40`,a100:`#a7ffeb`,a200:`#64ffda`,a400:`#1de9b6`,a700:`#00bfa5`},AV={50:`#e8f5e9`,100:`#c8e6c9`,200:`#a5d6a7`,300:`#81c784`,400:`#66bb6a`,500:`#4caf50`,600:`#43a047`,700:`#388e3c`,800:`#2e7d32`,900:`#1b5e20`,a100:`#b9f6ca`,a200:`#69f0ae`,a400:`#00e676`,a700:`#00c853`},jV={50:`#f1f8e9`,100:`#dcedc8`,200:`#c5e1a5`,300:`#aed581`,400:`#9ccc65`,500:`#8bc34a`,600:`#7cb342`,700:`#689f38`,800:`#558b2f`,900:`#33691e`,a100:`#ccff90`,a200:`#b2ff59`,a400:`#76ff03`,a700:`#64dd17`},MV={50:`#f9fbe7`,100:`#f0f4c3`,200:`#e6ee9c`,300:`#dce775`,400:`#d4e157`,500:`#cddc39`,600:`#c0ca33`,700:`#afb42b`,800:`#9e9d24`,900:`#827717`,a100:`#f4ff81`,a200:`#eeff41`,a400:`#c6ff00`,a700:`#aeea00`},NV={50:`#fffde7`,100:`#fff9c4`,200:`#fff59d`,300:`#fff176`,400:`#ffee58`,500:`#ffeb3b`,600:`#fdd835`,700:`#fbc02d`,800:`#f9a825`,900:`#f57f17`,a100:`#ffff8d`,a200:`#ffff00`,a400:`#ffea00`,a700:`#ffd600`},PV={50:`#fff8e1`,100:`#ffecb3`,200:`#ffe082`,300:`#ffd54f`,400:`#ffca28`,500:`#ffc107`,600:`#ffb300`,700:`#ffa000`,800:`#ff8f00`,900:`#ff6f00`,a100:`#ffe57f`,a200:`#ffd740`,a400:`#ffc400`,a700:`#ffab00`},FV={50:`#fff3e0`,100:`#ffe0b2`,200:`#ffcc80`,300:`#ffb74d`,400:`#ffa726`,500:`#ff9800`,600:`#fb8c00`,700:`#f57c00`,800:`#ef6c00`,900:`#e65100`,a100:`#ffd180`,a200:`#ffab40`,a400:`#ff9100`,a700:`#ff6d00`},IV={50:`#fbe9e7`,100:`#ffccbc`,200:`#ffab91`,300:`#ff8a65`,400:`#ff7043`,500:`#ff5722`,600:`#f4511e`,700:`#e64a19`,800:`#d84315`,900:`#bf360c`,a100:`#ff9e80`,a200:`#ff6e40`,a400:`#ff3d00`,a700:`#dd2c00`},LV={50:`#efebe9`,100:`#d7ccc8`,200:`#bcaaa4`,300:`#a1887f`,400:`#8d6e63`,500:`#795548`,600:`#6d4c41`,700:`#5d4037`,800:`#4e342e`,900:`#3e2723`},RV={50:`#eceff1`,100:`#cfd8dc`,200:`#b0bec5`,300:`#90a4ae`,400:`#78909c`,500:`#607d8b`,600:`#546e7a`,700:`#455a64`,800:`#37474f`,900:`#263238`},zV=function(e){var t=e.color,n=e.onClick,r=e.onSwatchHover,i=e.hover,a=e.active,o=e.circleSize,s=e.circleSpacing,c=(0,FN.default)({default:{swatch:{width:o,height:o,marginRight:s,marginBottom:s,transform:`scale(1)`,transition:`100ms transform ease`},Swatch:{borderRadius:`50%`,background:`transparent`,boxShadow:`inset 0 0 0 `+(o/2+1)+`px `+t,transition:`100ms box-shadow ease`}},hover:{swatch:{transform:`scale(1.2)`}},active:{Swatch:{boxShadow:`inset 0 0 0 3px `+t}}},{hover:i,active:a});return B.createElement(`div`,{style:c.swatch},B.createElement(xz,{style:c.Swatch,color:t,onClick:n,onHover:r,focusStyle:{boxShadow:c.Swatch.boxShadow+`, 0 0 5px `+t}}))};zV.defaultProps={circleSize:28,circleSpacing:14};var BV=(0,FN.handleHover)(zV),VV=function(e){var t=e.width,n=e.onChange,r=e.onSwatchHover,i=e.colors,a=e.hex,o=e.circleSize,s=e.styles,c=s===void 0?{}:s,l=e.circleSpacing,u=e.className,d=u===void 0?``:u,f=(0,FN.default)(jL({default:{card:{width:t,display:`flex`,flexWrap:`wrap`,marginRight:-l,marginBottom:-l}}},c)),p=function(e,t){return n({hex:e,source:`hex`},t)};return B.createElement(`div`,{style:f.card,className:`circle-picker `+d},vV(i,function(e){return B.createElement(BV,{key:e,color:e,onClick:p,onSwatchHover:r,active:a===e.toLowerCase(),circleSize:o,circleSpacing:l})}))};VV.propTypes={width:Z.default.oneOfType([Z.default.string,Z.default.number]),circleSize:Z.default.number,circleSpacing:Z.default.number,styles:Z.default.object},VV.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[xV[500],SV[500],CV[500],wV[500],TV[500],EV[500],DV[500],OV[500],kV[500],AV[500],jV[500],MV[500],NV[500],PV[500],FV[500],IV[500],LV[500],RV[500]],styles:{}},fz(VV);function HV(e){return e===void 0}var UV=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n=r(u());function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var a=24;e.default=function(e){var r=e.fill,o=r===void 0?`currentColor`:r,s=e.width,c=s===void 0?a:s,l=e.height,u=l===void 0?a:l,d=e.style,f=d===void 0?{}:d,p=i(e,[`fill`,`width`,`height`,`style`]);return n.default.createElement(`svg`,t({viewBox:`0 0 `+a+` `+a,style:t({fill:o,width:c,height:u},f)},p),n.default.createElement(`path`,{d:`M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z`}))}}))()),WV=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function GV(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function KV(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function qV(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var JV=function(e){qV(t,e);function t(e){GV(this,t);var n=KV(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.toggleViews=function(){n.state.view===`hex`?n.setState({view:`rgb`}):n.state.view===`rgb`?n.setState({view:`hsl`}):n.state.view===`hsl`&&(n.props.hsl.a===1?n.setState({view:`hex`}):n.setState({view:`rgb`}))},n.handleChange=function(e,t){e.hex?iz(e.hex)&&n.props.onChange({hex:e.hex,source:`hex`},t):e.r||e.g||e.b?n.props.onChange({r:e.r||n.props.rgb.r,g:e.g||n.props.rgb.g,b:e.b||n.props.rgb.b,source:`rgb`},t):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(e.a*100)/100,source:`rgb`},t)):(e.h||e.s||e.l)&&(typeof e.s==`string`&&e.s.includes(`%`)&&(e.s=e.s.replace(`%`,``)),typeof e.l==`string`&&e.l.includes(`%`)&&(e.l=e.l.replace(`%`,``)),e.s==1?e.s=.01:e.l==1&&(e.l=.01),n.props.onChange({h:e.h||n.props.hsl.h,s:Number(HV(e.s)?n.props.hsl.s:e.s),l:Number(HV(e.l)?n.props.hsl.l:e.l),source:`hsl`},t))},n.showHighlight=function(e){e.currentTarget.style.background=`#eee`},n.hideHighlight=function(e){e.currentTarget.style.background=`transparent`},e.hsl.a!==1&&e.view===`hex`?n.state={view:`rgb`}:n.state={view:e.view},n}return WV(t,[{key:`render`,value:function(){var e=this,t=(0,FN.default)({default:{wrap:{paddingTop:`16px`,display:`flex`},fields:{flex:`1`,display:`flex`,marginLeft:`-6px`},field:{paddingLeft:`6px`,width:`100%`},alpha:{paddingLeft:`6px`,width:`100%`},toggle:{width:`32px`,textAlign:`right`,position:`relative`},icon:{marginRight:`-4px`,marginTop:`12px`,cursor:`pointer`,position:`relative`},iconHighlight:{position:`absolute`,width:`24px`,height:`28px`,background:`#eee`,borderRadius:`4px`,top:`10px`,left:`12px`,display:`none`},input:{fontSize:`11px`,color:`#333`,width:`100%`,borderRadius:`2px`,border:`none`,boxShadow:`inset 0 0 0 1px #dadada`,height:`21px`,textAlign:`center`},label:{textTransform:`uppercase`,fontSize:`11px`,lineHeight:`11px`,color:`#969696`,textAlign:`center`,display:`block`,marginTop:`12px`},svg:{fill:`#333`,width:`24px`,height:`24px`,border:`1px transparent solid`,borderRadius:`5px`}},disableAlpha:{alpha:{display:`none`}}},this.props,this.state),n=void 0;return this.state.view===`hex`?n=B.createElement(`div`,{style:t.fields,className:`flexbox-fix`},B.createElement(`div`,{style:t.field},B.createElement(aP,{style:{input:t.input,label:t.label},label:`hex`,value:this.props.hex,onChange:this.handleChange}))):this.state.view===`rgb`?n=B.createElement(`div`,{style:t.fields,className:`flexbox-fix`},B.createElement(`div`,{style:t.field},B.createElement(aP,{style:{input:t.input,label:t.label},label:`r`,value:this.props.rgb.r,onChange:this.handleChange})),B.createElement(`div`,{style:t.field},B.createElement(aP,{style:{input:t.input,label:t.label},label:`g`,value:this.props.rgb.g,onChange:this.handleChange})),B.createElement(`div`,{style:t.field},B.createElement(aP,{style:{input:t.input,label:t.label},label:`b`,value:this.props.rgb.b,onChange:this.handleChange})),B.createElement(`div`,{style:t.alpha},B.createElement(aP,{style:{input:t.input,label:t.label},label:`a`,value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view===`hsl`&&(n=B.createElement(`div`,{style:t.fields,className:`flexbox-fix`},B.createElement(`div`,{style:t.field},B.createElement(aP,{style:{input:t.input,label:t.label},label:`h`,value:Math.round(this.props.hsl.h),onChange:this.handleChange})),B.createElement(`div`,{style:t.field},B.createElement(aP,{style:{input:t.input,label:t.label},label:`s`,value:Math.round(this.props.hsl.s*100)+`%`,onChange:this.handleChange})),B.createElement(`div`,{style:t.field},B.createElement(aP,{style:{input:t.input,label:t.label},label:`l`,value:Math.round(this.props.hsl.l*100)+`%`,onChange:this.handleChange})),B.createElement(`div`,{style:t.alpha},B.createElement(aP,{style:{input:t.input,label:t.label},label:`a`,value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),B.createElement(`div`,{style:t.wrap,className:`flexbox-fix`},n,B.createElement(`div`,{style:t.toggle},B.createElement(`div`,{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},B.createElement(UV.default,{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:`getDerivedStateFromProps`,value:function(e,t){return e.hsl.a!==1&&t.view===`hex`?{view:`rgb`}:null}}]),t}(B.Component);JV.defaultProps={view:`hex`};var YV=function(){var e=(0,FN.default)({default:{picker:{width:`12px`,height:`12px`,borderRadius:`6px`,transform:`translate(-6px, -1px)`,backgroundColor:`rgb(248, 248, 248)`,boxShadow:`0 1px 4px 0 rgba(0, 0, 0, 0.37)`}}});return B.createElement(`div`,{style:e.picker})},XV=function(){var e=(0,FN.default)({default:{picker:{width:`12px`,height:`12px`,borderRadius:`6px`,boxShadow:`inset 0 0 0 1px #fff`,transform:`translate(-6px, -6px)`}}});return B.createElement(`div`,{style:e.picker})},ZV=function(e){var t=e.width,n=e.onChange,r=e.disableAlpha,i=e.rgb,a=e.hsl,o=e.hsv,s=e.hex,c=e.renderers,l=e.styles,u=l===void 0?{}:l,d=e.className,f=d===void 0?``:d,p=e.defaultView,m=(0,FN.default)(jL({default:{picker:{width:t,background:`#fff`,borderRadius:`2px`,boxShadow:`0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)`,boxSizing:`initial`,fontFamily:`Menlo`},saturation:{width:`100%`,paddingBottom:`55%`,position:`relative`,borderRadius:`2px 2px 0 0`,overflow:`hidden`},Saturation:{radius:`2px 2px 0 0`},body:{padding:`16px 16px 12px`},controls:{display:`flex`},color:{width:`32px`},swatch:{marginTop:`6px`,width:`16px`,height:`16px`,borderRadius:`8px`,position:`relative`,overflow:`hidden`},active:{absolute:`0px 0px 0px 0px`,borderRadius:`8px`,boxShadow:`inset 0 0 0 1px rgba(0,0,0,.1)`,background:`rgba(`+i.r+`, `+i.g+`, `+i.b+`, `+i.a+`)`,zIndex:`2`},toggles:{flex:`1`},hue:{height:`10px`,position:`relative`,marginBottom:`8px`},Hue:{radius:`2px`},alpha:{height:`10px`,position:`relative`},Alpha:{radius:`2px`}},disableAlpha:{color:{width:`22px`},alpha:{display:`none`},hue:{marginBottom:`0px`},swatch:{width:`10px`,height:`10px`,marginTop:`0px`}}},u),{disableAlpha:r});return B.createElement(`div`,{style:m.picker,className:`chrome-picker `+f},B.createElement(`div`,{style:m.saturation},B.createElement(rR,{style:m.Saturation,hsl:a,hsv:o,pointer:XV,onChange:n})),B.createElement(`div`,{style:m.body},B.createElement(`div`,{style:m.controls,className:`flexbox-fix`},B.createElement(`div`,{style:m.color},B.createElement(`div`,{style:m.swatch},B.createElement(`div`,{style:m.active}),B.createElement(VN,{renderers:c}))),B.createElement(`div`,{style:m.toggles},B.createElement(`div`,{style:m.hue},B.createElement(dP,{style:m.Hue,hsl:a,pointer:YV,onChange:n})),B.createElement(`div`,{style:m.alpha},B.createElement(qN,{style:m.Alpha,rgb:i,hsl:a,pointer:YV,renderers:c,onChange:n})))),B.createElement(JV,{rgb:i,hsl:a,hex:s,view:p,onChange:n,disableAlpha:r})))};ZV.propTypes={width:Z.default.oneOfType([Z.default.string,Z.default.number]),disableAlpha:Z.default.bool,styles:Z.default.object,defaultView:Z.default.oneOf([`hex`,`rgb`,`hsl`])},ZV.defaultProps={width:225,disableAlpha:!1,styles:{}},fz(ZV);var QV=function(e){var t=e.color,n=e.onClick,r=n===void 0?function(){}:n,i=e.onSwatchHover,a=e.active,o=(0,FN.default)({default:{color:{background:t,width:`15px`,height:`15px`,float:`left`,marginRight:`5px`,marginBottom:`5px`,position:`relative`,cursor:`pointer`},dot:{absolute:`5px 5px 5px 5px`,background:az(t),borderRadius:`50%`,opacity:`0`}},active:{dot:{opacity:`1`}},"color-#FFFFFF":{color:{boxShadow:`inset 0 0 0 1px #ddd`},dot:{background:`#000`}},transparent:{dot:{background:`#000`}}},{active:a,"color-#FFFFFF":t===`#FFFFFF`,transparent:t===`transparent`});return B.createElement(xz,{style:o.color,color:t,onClick:r,onHover:i,focusStyle:{boxShadow:`0 0 4px `+t}},B.createElement(`div`,{style:o.dot}))},$V=function(e){var t=e.hex,n=e.rgb,r=e.onChange,i=(0,FN.default)({default:{fields:{display:`flex`,paddingBottom:`6px`,paddingRight:`5px`,position:`relative`},active:{position:`absolute`,top:`6px`,left:`5px`,height:`9px`,width:`9px`,background:t},HEXwrap:{flex:`6`,position:`relative`},HEXinput:{width:`80%`,padding:`0px`,paddingLeft:`20%`,border:`none`,outline:`none`,background:`none`,fontSize:`12px`,color:`#333`,height:`16px`},HEXlabel:{display:`none`},RGBwrap:{flex:`3`,position:`relative`},RGBinput:{width:`70%`,padding:`0px`,paddingLeft:`30%`,border:`none`,outline:`none`,background:`none`,fontSize:`12px`,color:`#333`,height:`16px`},RGBlabel:{position:`absolute`,top:`3px`,left:`0px`,lineHeight:`16px`,textTransform:`uppercase`,fontSize:`12px`,color:`#999`}}}),a=function(e,t){e.r||e.g||e.b?r({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:`rgb`},t):r({hex:e.hex,source:`hex`},t)};return B.createElement(`div`,{style:i.fields,className:`flexbox-fix`},B.createElement(`div`,{style:i.active}),B.createElement(aP,{style:{wrap:i.HEXwrap,input:i.HEXinput,label:i.HEXlabel},label:`hex`,value:t,onChange:a}),B.createElement(aP,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:`r`,value:n.r,onChange:a}),B.createElement(aP,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:`g`,value:n.g,onChange:a}),B.createElement(aP,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:`b`,value:n.b,onChange:a}))},eH=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.colors,i=e.hex,a=e.rgb,o=e.styles,s=o===void 0?{}:o,c=e.className,l=c===void 0?``:c,u=(0,FN.default)(jL({default:{Compact:{background:`#f6f6f6`,radius:`4px`},compact:{paddingTop:`5px`,paddingLeft:`5px`,boxSizing:`initial`,width:`240px`},clear:{clear:`both`}}},s)),d=function(e,n){e.hex?iz(e.hex)&&t({hex:e.hex,source:`hex`},n):t(e,n)};return B.createElement(ML,{style:u.Compact,styles:s},B.createElement(`div`,{style:u.compact,className:`compact-picker `+l},B.createElement(`div`,null,vV(r,function(e){return B.createElement(QV,{key:e,color:e,active:e.toLowerCase()===i,onClick:d,onSwatchHover:n})}),B.createElement(`div`,{style:u.clear})),B.createElement($V,{hex:i,rgb:a,onChange:d})))};eH.propTypes={colors:Z.default.arrayOf(Z.default.string),styles:Z.default.object},eH.defaultProps={colors:`#4D4D4D.#999999.#FFFFFF.#F44E3B.#FE9200.#FCDC00.#DBDF00.#A4DD00.#68CCCA.#73D8FF.#AEA1FF.#FDA1FF.#333333.#808080.#cccccc.#D33115.#E27300.#FCC400.#B0BC00.#68BC00.#16A5A5.#009CE0.#7B64FF.#FA28FF.#000000.#666666.#B3B3B3.#9F0500.#C45100.#FB9E00.#808900.#194D33.#0C797D.#0062B1.#653294.#AB149E`.split(`.`),styles:{}},fz(eH);var tH=(0,FN.handleHover)(function(e){var t=e.hover,n=e.color,r=e.onClick,i=e.onSwatchHover,a={position:`relative`,zIndex:`2`,outline:`2px solid #fff`,boxShadow:`0 0 5px 2px rgba(0,0,0,0.25)`},o=(0,FN.default)({default:{swatch:{width:`25px`,height:`25px`,fontSize:`0`}},hover:{swatch:a}},{hover:t});return B.createElement(`div`,{style:o.swatch},B.createElement(xz,{color:n,onClick:r,onHover:i,focusStyle:a}))}),nH=function(e){var t=e.width,n=e.colors,r=e.onChange,i=e.onSwatchHover,a=e.triangle,o=e.styles,s=o===void 0?{}:o,c=e.className,l=c===void 0?``:c,u=(0,FN.default)(jL({default:{card:{width:t,background:`#fff`,border:`1px solid rgba(0,0,0,0.2)`,boxShadow:`0 3px 12px rgba(0,0,0,0.15)`,borderRadius:`4px`,position:`relative`,padding:`5px`,display:`flex`,flexWrap:`wrap`},triangle:{position:`absolute`,border:`7px solid transparent`,borderBottomColor:`#fff`},triangleShadow:{position:`absolute`,border:`8px solid transparent`,borderBottomColor:`rgba(0,0,0,0.15)`}},"hide-triangle":{triangle:{display:`none`},triangleShadow:{display:`none`}},"top-left-triangle":{triangle:{top:`-14px`,left:`10px`},triangleShadow:{top:`-16px`,left:`9px`}},"top-right-triangle":{triangle:{top:`-14px`,right:`10px`},triangleShadow:{top:`-16px`,right:`9px`}},"bottom-left-triangle":{triangle:{top:`35px`,left:`10px`,transform:`rotate(180deg)`},triangleShadow:{top:`37px`,left:`9px`,transform:`rotate(180deg)`}},"bottom-right-triangle":{triangle:{top:`35px`,right:`10px`,transform:`rotate(180deg)`},triangleShadow:{top:`37px`,right:`9px`,transform:`rotate(180deg)`}}},s),{"hide-triangle":a===`hide`,"top-left-triangle":a===`top-left`,"top-right-triangle":a===`top-right`,"bottom-left-triangle":a===`bottom-left`,"bottom-right-triangle":a===`bottom-right`}),d=function(e,t){return r({hex:e,source:`hex`},t)};return B.createElement(`div`,{style:u.card,className:`github-picker `+l},B.createElement(`div`,{style:u.triangleShadow}),B.createElement(`div`,{style:u.triangle}),vV(n,function(e){return B.createElement(tH,{color:e,key:e,onClick:d,onSwatchHover:i})}))};nH.propTypes={width:Z.default.oneOfType([Z.default.string,Z.default.number]),colors:Z.default.arrayOf(Z.default.string),triangle:Z.default.oneOf([`hide`,`top-left`,`top-right`,`bottom-left`,`bottom-right`]),styles:Z.default.object},nH.defaultProps={width:200,colors:[`#B80000`,`#DB3E00`,`#FCCB00`,`#008B02`,`#006B76`,`#1273DE`,`#004DCF`,`#5300EB`,`#EB9694`,`#FAD0C3`,`#FEF3BD`,`#C1E1C5`,`#BEDADC`,`#C4DEF6`,`#BED3F3`,`#D4C4FB`],triangle:`top-left`,styles:{}},fz(nH);var rH=function(e){var t=e.direction,n=(0,FN.default)({default:{picker:{width:`18px`,height:`18px`,borderRadius:`50%`,transform:`translate(-9px, -1px)`,backgroundColor:`rgb(248, 248, 248)`,boxShadow:`0 1px 4px 0 rgba(0, 0, 0, 0.37)`}},vertical:{picker:{transform:`translate(-3px, -9px)`}}},{vertical:t===`vertical`});return B.createElement(`div`,{style:n.picker})},iH=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aH=function(e){var t=e.width,n=e.height,r=e.onChange,i=e.hsl,a=e.direction,o=e.pointer,s=e.styles,c=s===void 0?{}:s,l=e.className,u=l===void 0?``:l,d=(0,FN.default)(jL({default:{picker:{position:`relative`,width:t,height:n},hue:{radius:`2px`}}},c));return B.createElement(`div`,{style:d.picker,className:`hue-picker `+u},B.createElement(dP,iH({},d.hue,{hsl:i,pointer:o,onChange:function(e){return r({a:1,h:e.h,l:.5,s:1})},direction:a})))};aH.propTypes={styles:Z.default.object},aH.defaultProps={width:`316px`,height:`16px`,direction:`horizontal`,pointer:rH,styles:{}},fz(aH),fz(function(e){var t=e.onChange,n=e.hex,r=e.rgb,i=e.styles,a=i===void 0?{}:i,o=e.className,s=o===void 0?``:o,c=(0,FN.default)(jL({default:{material:{width:`98px`,height:`98px`,padding:`16px`,fontFamily:`Roboto`},HEXwrap:{position:`relative`},HEXinput:{width:`100%`,marginTop:`12px`,fontSize:`15px`,color:`#333`,padding:`0px`,border:`0px`,borderBottom:`2px solid `+n,outline:`none`,height:`30px`},HEXlabel:{position:`absolute`,top:`0px`,left:`0px`,fontSize:`11px`,color:`#999999`,textTransform:`capitalize`},Hex:{style:{}},RGBwrap:{position:`relative`},RGBinput:{width:`100%`,marginTop:`12px`,fontSize:`15px`,color:`#333`,padding:`0px`,border:`0px`,borderBottom:`1px solid #eee`,outline:`none`,height:`30px`},RGBlabel:{position:`absolute`,top:`0px`,left:`0px`,fontSize:`11px`,color:`#999999`,textTransform:`capitalize`},split:{display:`flex`,marginRight:`-10px`,paddingTop:`11px`},third:{flex:`1`,paddingRight:`10px`}}},a)),l=function(e,n){e.hex?iz(e.hex)&&t({hex:e.hex,source:`hex`},n):(e.r||e.g||e.b)&&t({r:e.r||r.r,g:e.g||r.g,b:e.b||r.b,source:`rgb`},n)};return B.createElement(ML,{styles:a},B.createElement(`div`,{style:c.material,className:`material-picker `+s},B.createElement(aP,{style:{wrap:c.HEXwrap,input:c.HEXinput,label:c.HEXlabel},label:`hex`,value:n,onChange:l}),B.createElement(`div`,{style:c.split,className:`flexbox-fix`},B.createElement(`div`,{style:c.third},B.createElement(aP,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:`r`,value:r.r,onChange:l})),B.createElement(`div`,{style:c.third},B.createElement(aP,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:`g`,value:r.g,onChange:l})),B.createElement(`div`,{style:c.third},B.createElement(aP,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:`b`,value:r.b,onChange:l})))))});var oH=function(e){var t=e.onChange,n=e.rgb,r=e.hsv,i=e.hex,a=(0,FN.default)({default:{fields:{paddingTop:`5px`,paddingBottom:`9px`,width:`80px`,position:`relative`},divider:{height:`5px`},RGBwrap:{position:`relative`},RGBinput:{marginLeft:`40%`,width:`40%`,height:`18px`,border:`1px solid #888888`,boxShadow:`inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC`,marginBottom:`5px`,fontSize:`13px`,paddingLeft:`3px`,marginRight:`10px`},RGBlabel:{left:`0px`,top:`0px`,width:`34px`,textTransform:`uppercase`,fontSize:`13px`,height:`18px`,lineHeight:`22px`,position:`absolute`},HEXwrap:{position:`relative`},HEXinput:{marginLeft:`20%`,width:`80%`,height:`18px`,border:`1px solid #888888`,boxShadow:`inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC`,marginBottom:`6px`,fontSize:`13px`,paddingLeft:`3px`},HEXlabel:{position:`absolute`,top:`0px`,left:`0px`,width:`14px`,textTransform:`uppercase`,fontSize:`13px`,height:`18px`,lineHeight:`22px`},fieldSymbols:{position:`absolute`,top:`5px`,right:`-7px`,fontSize:`13px`},symbol:{height:`20px`,lineHeight:`22px`,paddingBottom:`7px`}}}),o=function(e,i){e[`#`]?iz(e[`#`])&&t({hex:e[`#`],source:`hex`},i):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:`rgb`},i):(e.h||e.s||e.v)&&t({h:e.h||r.h,s:e.s||r.s,v:e.v||r.v,source:`hsv`},i)};return B.createElement(`div`,{style:a.fields},B.createElement(aP,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:`h`,value:Math.round(r.h),onChange:o}),B.createElement(aP,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:`s`,value:Math.round(r.s*100),onChange:o}),B.createElement(aP,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:`v`,value:Math.round(r.v*100),onChange:o}),B.createElement(`div`,{style:a.divider}),B.createElement(aP,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:`r`,value:n.r,onChange:o}),B.createElement(aP,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:`g`,value:n.g,onChange:o}),B.createElement(aP,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:`b`,value:n.b,onChange:o}),B.createElement(`div`,{style:a.divider}),B.createElement(aP,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:`#`,value:i.replace(`#`,``),onChange:o}),B.createElement(`div`,{style:a.fieldSymbols},B.createElement(`div`,{style:a.symbol},`°`),B.createElement(`div`,{style:a.symbol},`%`),B.createElement(`div`,{style:a.symbol},`%`)))},sH=function(e){var t=e.hsl,n=(0,FN.default)({default:{picker:{width:`12px`,height:`12px`,borderRadius:`6px`,boxShadow:`inset 0 0 0 1px #fff`,transform:`translate(-6px, -6px)`}},"black-outline":{picker:{boxShadow:`inset 0 0 0 1px #000`}}},{"black-outline":t.l>.5});return B.createElement(`div`,{style:n.picker})},cH=function(){var e=(0,FN.default)({default:{triangle:{width:0,height:0,borderStyle:`solid`,borderWidth:`4px 0 4px 6px`,borderColor:`transparent transparent transparent #fff`,position:`absolute`,top:`1px`,left:`1px`},triangleBorder:{width:0,height:0,borderStyle:`solid`,borderWidth:`5px 0 5px 8px`,borderColor:`transparent transparent transparent #555`},left:{Extend:`triangleBorder`,transform:`translate(-13px, -4px)`},leftInside:{Extend:`triangle`,transform:`translate(-8px, -5px)`},right:{Extend:`triangleBorder`,transform:`translate(20px, -14px) rotate(180deg)`},rightInside:{Extend:`triangle`,transform:`translate(-8px, -5px)`}}});return B.createElement(`div`,{style:e.pointer},B.createElement(`div`,{style:e.left},B.createElement(`div`,{style:e.leftInside})),B.createElement(`div`,{style:e.right},B.createElement(`div`,{style:e.rightInside})))},lH=function(e){var t=e.onClick,n=e.label,r=e.children,i=e.active,a=(0,FN.default)({default:{button:{backgroundImage:`linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)`,border:`1px solid #878787`,borderRadius:`2px`,height:`20px`,boxShadow:`0 1px 0 0 #EAEAEA`,fontSize:`14px`,color:`#000`,lineHeight:`20px`,textAlign:`center`,marginBottom:`10px`,cursor:`pointer`}},active:{button:{boxShadow:`0 0 0 1px #878787`}}},{active:i});return B.createElement(`div`,{style:a.button,onClick:t},n||r)},uH=function(e){var t=e.rgb,n=e.currentColor,r=(0,FN.default)({default:{swatches:{border:`1px solid #B3B3B3`,borderBottom:`1px solid #F0F0F0`,marginBottom:`2px`,marginTop:`1px`},new:{height:`34px`,background:`rgb(`+t.r+`,`+t.g+`, `+t.b+`)`,boxShadow:`inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000`},current:{height:`34px`,background:n,boxShadow:`inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000`},label:{fontSize:`14px`,color:`#000`,textAlign:`center`}}});return B.createElement(`div`,null,B.createElement(`div`,{style:r.label},`new`),B.createElement(`div`,{style:r.swatches},B.createElement(`div`,{style:r.new}),B.createElement(`div`,{style:r.current})),B.createElement(`div`,{style:r.label},`current`))},dH=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function fH(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function pH(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function mH(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var hH=function(e){mH(t,e);function t(e){fH(this,t);var n=pH(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:e.hex},n}return dH(t,[{key:`render`,value:function(){var e=this.props,t=e.styles,n=t===void 0?{}:t,r=e.className,i=r===void 0?``:r,a=(0,FN.default)(jL({default:{picker:{background:`#DCDCDC`,borderRadius:`4px`,boxShadow:`0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)`,boxSizing:`initial`,width:`513px`},head:{backgroundImage:`linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)`,borderBottom:`1px solid #B1B1B1`,boxShadow:`inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)`,height:`23px`,lineHeight:`24px`,borderRadius:`4px 4px 0 0`,fontSize:`13px`,color:`#4D4D4D`,textAlign:`center`},body:{padding:`15px 15px 0`,display:`flex`},saturation:{width:`256px`,height:`256px`,position:`relative`,border:`2px solid #B3B3B3`,borderBottom:`2px solid #F0F0F0`,overflow:`hidden`},hue:{position:`relative`,height:`256px`,width:`19px`,marginLeft:`10px`,border:`2px solid #B3B3B3`,borderBottom:`2px solid #F0F0F0`},controls:{width:`180px`,marginLeft:`10px`},top:{display:`flex`},previews:{width:`60px`},actions:{flex:`1`,marginLeft:`20px`}}},n));return B.createElement(`div`,{style:a.picker,className:`photoshop-picker `+i},B.createElement(`div`,{style:a.head},this.props.header),B.createElement(`div`,{style:a.body,className:`flexbox-fix`},B.createElement(`div`,{style:a.saturation},B.createElement(rR,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:sH,onChange:this.props.onChange})),B.createElement(`div`,{style:a.hue},B.createElement(dP,{direction:`vertical`,hsl:this.props.hsl,pointer:cH,onChange:this.props.onChange})),B.createElement(`div`,{style:a.controls},B.createElement(`div`,{style:a.top,className:`flexbox-fix`},B.createElement(`div`,{style:a.previews},B.createElement(uH,{rgb:this.props.rgb,currentColor:this.state.currentColor})),B.createElement(`div`,{style:a.actions},B.createElement(lH,{label:`OK`,onClick:this.props.onAccept,active:!0}),B.createElement(lH,{label:`Cancel`,onClick:this.props.onCancel}),B.createElement(oH,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(B.Component);hH.propTypes={header:Z.default.string,styles:Z.default.object},hH.defaultProps={header:`Color Picker`,styles:{}},fz(hH);var gH=function(e){var t=e.onChange,n=e.rgb,r=e.hsl,i=e.hex,a=e.disableAlpha,o=(0,FN.default)({default:{fields:{display:`flex`,paddingTop:`4px`},single:{flex:`1`,paddingLeft:`6px`},alpha:{flex:`1`,paddingLeft:`6px`},double:{flex:`2`},input:{width:`80%`,padding:`4px 10% 3px`,border:`none`,boxShadow:`inset 0 0 0 1px #ccc`,fontSize:`11px`},label:{display:`block`,textAlign:`center`,fontSize:`11px`,color:`#222`,paddingTop:`3px`,paddingBottom:`4px`,textTransform:`capitalize`}},disableAlpha:{alpha:{display:`none`}}},{disableAlpha:a}),s=function(e,i){e.hex?iz(e.hex)&&t({hex:e.hex,source:`hex`},i):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,a:n.a,source:`rgb`},i):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,t({h:r.h,s:r.s,l:r.l,a:e.a,source:`rgb`},i))};return B.createElement(`div`,{style:o.fields,className:`flexbox-fix`},B.createElement(`div`,{style:o.double},B.createElement(aP,{style:{input:o.input,label:o.label},label:`hex`,value:i.replace(`#`,``),onChange:s})),B.createElement(`div`,{style:o.single},B.createElement(aP,{style:{input:o.input,label:o.label},label:`r`,value:n.r,onChange:s,dragLabel:`true`,dragMax:`255`})),B.createElement(`div`,{style:o.single},B.createElement(aP,{style:{input:o.input,label:o.label},label:`g`,value:n.g,onChange:s,dragLabel:`true`,dragMax:`255`})),B.createElement(`div`,{style:o.single},B.createElement(aP,{style:{input:o.input,label:o.label},label:`b`,value:n.b,onChange:s,dragLabel:`true`,dragMax:`255`})),B.createElement(`div`,{style:o.alpha},B.createElement(aP,{style:{input:o.input,label:o.label},label:`a`,value:Math.round(n.a*100),onChange:s,dragLabel:`true`,dragMax:`100`})))},_H=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vH=function(e){var t=e.colors,n=e.onClick,r=n===void 0?function(){}:n,i=e.onSwatchHover,a=(0,FN.default)({default:{colors:{margin:`0 -10px`,padding:`10px 0 0 10px`,borderTop:`1px solid #eee`,display:`flex`,flexWrap:`wrap`,position:`relative`},swatchWrap:{width:`16px`,height:`16px`,margin:`0 10px 10px 0`},swatch:{borderRadius:`3px`,boxShadow:`inset 0 0 0 1px rgba(0,0,0,.15)`}},"no-presets":{colors:{display:`none`}}},{"no-presets":!t||!t.length}),o=function(e,t){r({hex:e,source:`hex`},t)};return B.createElement(`div`,{style:a.colors,className:`flexbox-fix`},t.map(function(e){var t=typeof e==`string`?{color:e}:e,n=``+t.color+(t.title||``);return B.createElement(`div`,{key:n,style:a.swatchWrap},B.createElement(xz,_H({},t,{style:a.swatch,onClick:o,onHover:i,focusStyle:{boxShadow:`inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px `+t.color}})))}))};vH.propTypes={colors:Z.default.arrayOf(Z.default.oneOfType([Z.default.string,Z.default.shape({color:Z.default.string,title:Z.default.string})])).isRequired};var yH=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bH=function(e){var t=e.width,n=e.rgb,r=e.hex,i=e.hsv,a=e.hsl,o=e.onChange,s=e.onSwatchHover,c=e.disableAlpha,l=e.presetColors,u=e.renderers,d=e.styles,f=d===void 0?{}:d,p=e.className,m=p===void 0?``:p,h=(0,FN.default)(jL({default:yH({picker:{width:t,padding:`10px 10px 0`,boxSizing:`initial`,background:`#fff`,borderRadius:`4px`,boxShadow:`0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)`},saturation:{width:`100%`,paddingBottom:`75%`,position:`relative`,overflow:`hidden`},Saturation:{radius:`3px`,shadow:`inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)`},controls:{display:`flex`},sliders:{padding:`4px 0`,flex:`1`},color:{width:`24px`,height:`24px`,position:`relative`,marginTop:`4px`,marginLeft:`4px`,borderRadius:`3px`},activeColor:{absolute:`0px 0px 0px 0px`,borderRadius:`2px`,background:`rgba(`+n.r+`,`+n.g+`,`+n.b+`,`+n.a+`)`,boxShadow:`inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)`},hue:{position:`relative`,height:`10px`,overflow:`hidden`},Hue:{radius:`2px`,shadow:`inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)`},alpha:{position:`relative`,height:`10px`,marginTop:`4px`,overflow:`hidden`},Alpha:{radius:`2px`,shadow:`inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)`}},f),disableAlpha:{color:{height:`10px`},hue:{height:`10px`},alpha:{display:`none`}}},f),{disableAlpha:c});return B.createElement(`div`,{style:h.picker,className:`sketch-picker `+m},B.createElement(`div`,{style:h.saturation},B.createElement(rR,{style:h.Saturation,hsl:a,hsv:i,onChange:o})),B.createElement(`div`,{style:h.controls,className:`flexbox-fix`},B.createElement(`div`,{style:h.sliders},B.createElement(`div`,{style:h.hue},B.createElement(dP,{style:h.Hue,hsl:a,onChange:o})),B.createElement(`div`,{style:h.alpha},B.createElement(qN,{style:h.Alpha,rgb:n,hsl:a,renderers:u,onChange:o}))),B.createElement(`div`,{style:h.color},B.createElement(VN,null),B.createElement(`div`,{style:h.activeColor}))),B.createElement(gH,{rgb:n,hsl:a,hex:r,onChange:o,disableAlpha:c}),B.createElement(vH,{colors:l,onClick:o,onSwatchHover:s}))};bH.propTypes={disableAlpha:Z.default.bool,width:Z.default.oneOfType([Z.default.string,Z.default.number]),styles:Z.default.object},bH.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:[`#D0021B`,`#F5A623`,`#F8E71C`,`#8B572A`,`#7ED321`,`#417505`,`#BD10E0`,`#9013FE`,`#4A90E2`,`#50E3C2`,`#B8E986`,`#000000`,`#4A4A4A`,`#9B9B9B`,`#FFFFFF`]},fz(bH);var xH=function(e){var t=e.hsl,n=e.offset,r=e.onClick,i=r===void 0?function(){}:r,a=e.active,o=e.first,s=e.last,c=(0,FN.default)({default:{swatch:{height:`12px`,background:`hsl(`+t.h+`, 50%, `+n*100+`%)`,cursor:`pointer`}},first:{swatch:{borderRadius:`2px 0 0 2px`}},last:{swatch:{borderRadius:`0 2px 2px 0`}},active:{swatch:{transform:`scaleY(1.8)`,borderRadius:`3.6px/2px`}}},{active:a,first:o,last:s});return B.createElement(`div`,{style:c.swatch,onClick:function(e){return i({h:t.h,s:.5,l:n,source:`hsl`},e)}})},SH=function(e){var t=e.onClick,n=e.hsl,r=(0,FN.default)({default:{swatches:{marginTop:`20px`},swatch:{boxSizing:`border-box`,width:`20%`,paddingRight:`1px`,float:`left`},clear:{clear:`both`}}}),i=.1;return B.createElement(`div`,{style:r.swatches},B.createElement(`div`,{style:r.swatch},B.createElement(xH,{hsl:n,offset:`.80`,active:Math.abs(n.l-.8)<i&&Math.abs(n.s-.5)<i,onClick:t,first:!0})),B.createElement(`div`,{style:r.swatch},B.createElement(xH,{hsl:n,offset:`.65`,active:Math.abs(n.l-.65)<i&&Math.abs(n.s-.5)<i,onClick:t})),B.createElement(`div`,{style:r.swatch},B.createElement(xH,{hsl:n,offset:`.50`,active:Math.abs(n.l-.5)<i&&Math.abs(n.s-.5)<i,onClick:t})),B.createElement(`div`,{style:r.swatch},B.createElement(xH,{hsl:n,offset:`.35`,active:Math.abs(n.l-.35)<i&&Math.abs(n.s-.5)<i,onClick:t})),B.createElement(`div`,{style:r.swatch},B.createElement(xH,{hsl:n,offset:`.20`,active:Math.abs(n.l-.2)<i&&Math.abs(n.s-.5)<i,onClick:t,last:!0})),B.createElement(`div`,{style:r.clear}))},CH=function(){var e=(0,FN.default)({default:{picker:{width:`14px`,height:`14px`,borderRadius:`6px`,transform:`translate(-7px, -1px)`,backgroundColor:`rgb(248, 248, 248)`,boxShadow:`0 1px 4px 0 rgba(0, 0, 0, 0.37)`}}});return B.createElement(`div`,{style:e.picker})},wH=function(e){var t=e.hsl,n=e.onChange,r=e.pointer,i=e.styles,a=i===void 0?{}:i,o=e.className,s=o===void 0?``:o,c=(0,FN.default)(jL({default:{hue:{height:`12px`,position:`relative`},Hue:{radius:`2px`}}},a));return B.createElement(`div`,{style:c.wrap||{},className:`slider-picker `+s},B.createElement(`div`,{style:c.hue},B.createElement(dP,{style:c.Hue,hsl:t,pointer:r,onChange:n})),B.createElement(`div`,{style:c.swatches},B.createElement(SH,{hsl:t,onClick:n})))};wH.propTypes={styles:Z.default.object},wH.defaultProps={pointer:CH,styles:{}},fz(wH);var TH=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n=r(u());function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var a=24;e.default=function(e){var r=e.fill,o=r===void 0?`currentColor`:r,s=e.width,c=s===void 0?a:s,l=e.height,u=l===void 0?a:l,d=e.style,f=d===void 0?{}:d,p=i(e,[`fill`,`width`,`height`,`style`]);return n.default.createElement(`svg`,t({viewBox:`0 0 `+a+` `+a,style:t({fill:o,width:c,height:u},f)},p),n.default.createElement(`path`,{d:`M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z`}))}}))()),EH=function(e){var t=e.color,n=e.onClick,r=n===void 0?function(){}:n,i=e.onSwatchHover,a=e.first,o=e.last,s=e.active,c=(0,FN.default)({default:{color:{width:`40px`,height:`24px`,cursor:`pointer`,background:t,marginBottom:`1px`},check:{color:az(t),marginLeft:`8px`,display:`none`}},first:{color:{overflow:`hidden`,borderRadius:`2px 2px 0 0`}},last:{color:{overflow:`hidden`,borderRadius:`0 0 2px 2px`}},active:{check:{display:`block`}},"color-#FFFFFF":{color:{boxShadow:`inset 0 0 0 1px #ddd`},check:{color:`#333`}},transparent:{check:{color:`#333`}}},{first:a,last:o,active:s,"color-#FFFFFF":t===`#FFFFFF`,transparent:t===`transparent`});return B.createElement(xz,{color:t,style:c.color,onClick:r,onHover:i,focusStyle:{boxShadow:`0 0 4px `+t}},B.createElement(`div`,{style:c.check},B.createElement(TH.default,null)))},DH=function(e){var t=e.onClick,n=e.onSwatchHover,r=e.group,i=e.active,a=(0,FN.default)({default:{group:{paddingBottom:`10px`,width:`40px`,float:`left`,marginRight:`10px`}}});return B.createElement(`div`,{style:a.group},vV(r,function(e,a){return B.createElement(EH,{key:e,color:e,active:e.toLowerCase()===i,first:a===0,last:a===r.length-1,onClick:t,onSwatchHover:n})}))},OH=function(e){var t=e.width,n=e.height,r=e.onChange,i=e.onSwatchHover,a=e.colors,o=e.hex,s=e.styles,c=s===void 0?{}:s,l=e.className,u=l===void 0?``:l,d=(0,FN.default)(jL({default:{picker:{width:t,height:n},overflow:{height:n,overflowY:`scroll`},body:{padding:`16px 0 6px 16px`},clear:{clear:`both`}}},c)),f=function(e,t){return r({hex:e,source:`hex`},t)};return B.createElement(`div`,{style:d.picker,className:`swatches-picker `+u},B.createElement(ML,null,B.createElement(`div`,{style:d.overflow},B.createElement(`div`,{style:d.body},vV(a,function(e){return B.createElement(DH,{key:e.toString(),group:e,active:o,onClick:f,onSwatchHover:i})}),B.createElement(`div`,{style:d.clear})))))};OH.propTypes={width:Z.default.oneOfType([Z.default.string,Z.default.number]),height:Z.default.oneOfType([Z.default.string,Z.default.number]),colors:Z.default.arrayOf(Z.default.arrayOf(Z.default.string)),styles:Z.default.object},OH.defaultProps={width:320,height:240,colors:[[xV[900],xV[700],xV[500],xV[300],xV[100]],[SV[900],SV[700],SV[500],SV[300],SV[100]],[CV[900],CV[700],CV[500],CV[300],CV[100]],[wV[900],wV[700],wV[500],wV[300],wV[100]],[TV[900],TV[700],TV[500],TV[300],TV[100]],[EV[900],EV[700],EV[500],EV[300],EV[100]],[DV[900],DV[700],DV[500],DV[300],DV[100]],[OV[900],OV[700],OV[500],OV[300],OV[100]],[kV[900],kV[700],kV[500],kV[300],kV[100]],[`#194D33`,AV[700],AV[500],AV[300],AV[100]],[jV[900],jV[700],jV[500],jV[300],jV[100]],[MV[900],MV[700],MV[500],MV[300],MV[100]],[NV[900],NV[700],NV[500],NV[300],NV[100]],[PV[900],PV[700],PV[500],PV[300],PV[100]],[FV[900],FV[700],FV[500],FV[300],FV[100]],[IV[900],IV[700],IV[500],IV[300],IV[100]],[LV[900],LV[700],LV[500],LV[300],LV[100]],[RV[900],RV[700],RV[500],RV[300],RV[100]],[`#000000`,`#525252`,`#969696`,`#D9D9D9`,`#FFFFFF`]],styles:{}},fz(OH);var kH=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.hex,i=e.colors,a=e.width,o=e.triangle,s=e.styles,c=s===void 0?{}:s,l=e.className,u=l===void 0?``:l,d=(0,FN.default)(jL({default:{card:{width:a,background:`#fff`,border:`0 solid rgba(0,0,0,0.25)`,boxShadow:`0 1px 4px rgba(0,0,0,0.25)`,borderRadius:`4px`,position:`relative`},body:{padding:`15px 9px 9px 15px`},label:{fontSize:`18px`,color:`#fff`},triangle:{width:`0px`,height:`0px`,borderStyle:`solid`,borderWidth:`0 9px 10px 9px`,borderColor:`transparent transparent #fff transparent`,position:`absolute`},triangleShadow:{width:`0px`,height:`0px`,borderStyle:`solid`,borderWidth:`0 9px 10px 9px`,borderColor:`transparent transparent rgba(0,0,0,.1) transparent`,position:`absolute`},hash:{background:`#F0F0F0`,height:`30px`,width:`30px`,borderRadius:`4px 0 0 4px`,float:`left`,color:`#98A1A4`,display:`flex`,alignItems:`center`,justifyContent:`center`},input:{width:`100px`,fontSize:`14px`,color:`#666`,border:`0px`,outline:`none`,height:`28px`,boxShadow:`inset 0 0 0 1px #F0F0F0`,boxSizing:`content-box`,borderRadius:`0 4px 4px 0`,float:`left`,paddingLeft:`8px`},swatch:{width:`30px`,height:`30px`,float:`left`,borderRadius:`4px`,margin:`0 6px 6px 0`},clear:{clear:`both`}},"hide-triangle":{triangle:{display:`none`},triangleShadow:{display:`none`}},"top-left-triangle":{triangle:{top:`-10px`,left:`12px`},triangleShadow:{top:`-11px`,left:`12px`}},"top-right-triangle":{triangle:{top:`-10px`,right:`12px`},triangleShadow:{top:`-11px`,right:`12px`}}},c),{"hide-triangle":o===`hide`,"top-left-triangle":o===`top-left`,"top-right-triangle":o===`top-right`}),f=function(e,n){iz(e)&&t({hex:e,source:`hex`},n)};return B.createElement(`div`,{style:d.card,className:`twitter-picker `+u},B.createElement(`div`,{style:d.triangleShadow}),B.createElement(`div`,{style:d.triangle}),B.createElement(`div`,{style:d.body},vV(i,function(e,t){return B.createElement(xz,{key:t,color:e,hex:e,style:d.swatch,onClick:f,onHover:n,focusStyle:{boxShadow:`0 0 4px `+e}})}),B.createElement(`div`,{style:d.hash},`#`),B.createElement(aP,{label:null,style:{input:d.input},value:r.replace(`#`,``),onChange:f}),B.createElement(`div`,{style:d.clear})))};kH.propTypes={width:Z.default.oneOfType([Z.default.string,Z.default.number]),triangle:Z.default.oneOf([`hide`,`top-left`,`top-right`]),colors:Z.default.arrayOf(Z.default.string),styles:Z.default.object},kH.defaultProps={width:276,colors:[`#FF6900`,`#FCB900`,`#7BDCB5`,`#00D084`,`#8ED1FC`,`#0693E3`,`#ABB8C3`,`#EB144C`,`#F78DA7`,`#9900EF`],triangle:`top-left`,styles:{}},fz(kH);var AH=function(e){var t=(0,FN.default)({default:{picker:{width:`20px`,height:`20px`,borderRadius:`22px`,border:`2px #fff solid`,transform:`translate(-12px, -13px)`,background:`hsl(`+Math.round(e.hsl.h)+`, `+Math.round(e.hsl.s*100)+`%, `+Math.round(e.hsl.l*100)+`%)`}}});return B.createElement(`div`,{style:t.picker})};AH.propTypes={hsl:Z.default.shape({h:Z.default.number,s:Z.default.number,l:Z.default.number,a:Z.default.number})},AH.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var jH=function(e){var t=(0,FN.default)({default:{picker:{width:`20px`,height:`20px`,borderRadius:`22px`,transform:`translate(-10px, -7px)`,background:`hsl(`+Math.round(e.hsl.h)+`, 100%, 50%)`,border:`2px white solid`}}});return B.createElement(`div`,{style:t.picker})};jH.propTypes={hsl:Z.default.shape({h:Z.default.number,s:Z.default.number,l:Z.default.number,a:Z.default.number})},jH.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var MH=function(e){var t=e.onChange,n=e.rgb,r=e.hsl,i=e.hex,a=e.hsv,o=function(e,n){if(e.hex)iz(e.hex)&&t({hex:e.hex,source:`hex`},n);else if(e.rgb){var r=e.rgb.split(`,`);oz(e.rgb,`rgb`)&&t({r:r[0],g:r[1],b:r[2],a:1,source:`rgb`},n)}else if(e.hsv){var i=e.hsv.split(`,`);oz(e.hsv,`hsv`)&&(i[2]=i[2].replace(`%`,``),i[1]=i[1].replace(`%`,``),i[0]=i[0].replace(`°`,``),i[1]==1?i[1]=.01:i[2]==1&&(i[2]=.01),t({h:Number(i[0]),s:Number(i[1]),v:Number(i[2]),source:`hsv`},n))}else if(e.hsl){var a=e.hsl.split(`,`);oz(e.hsl,`hsl`)&&(a[2]=a[2].replace(`%`,``),a[1]=a[1].replace(`%`,``),a[0]=a[0].replace(`°`,``),u[1]==1?u[1]=.01:u[2]==1&&(u[2]=.01),t({h:Number(a[0]),s:Number(a[1]),v:Number(a[2]),source:`hsl`},n))}},s=(0,FN.default)({default:{wrap:{display:`flex`,height:`100px`,marginTop:`4px`},fields:{width:`100%`},column:{paddingTop:`10px`,display:`flex`,justifyContent:`space-between`},double:{padding:`0px 4.4px`,boxSizing:`border-box`},input:{width:`100%`,height:`38px`,boxSizing:`border-box`,padding:`4px 10% 3px`,textAlign:`center`,border:`1px solid #dadce0`,fontSize:`11px`,textTransform:`lowercase`,borderRadius:`5px`,outline:`none`,fontFamily:`Roboto,Arial,sans-serif`},input2:{height:`38px`,width:`100%`,border:`1px solid #dadce0`,boxSizing:`border-box`,fontSize:`11px`,textTransform:`lowercase`,borderRadius:`5px`,outline:`none`,paddingLeft:`10px`,fontFamily:`Roboto,Arial,sans-serif`},label:{textAlign:`center`,fontSize:`12px`,background:`#fff`,position:`absolute`,textTransform:`uppercase`,color:`#3c4043`,width:`35px`,top:`-6px`,left:`0`,right:`0`,marginLeft:`auto`,marginRight:`auto`,fontFamily:`Roboto,Arial,sans-serif`},label2:{left:`10px`,textAlign:`center`,fontSize:`12px`,background:`#fff`,position:`absolute`,textTransform:`uppercase`,color:`#3c4043`,width:`32px`,top:`-6px`,fontFamily:`Roboto,Arial,sans-serif`},single:{flexGrow:`1`,margin:`0px 4.4px`}}}),c=n.r+`, `+n.g+`, `+n.b,l=Math.round(r.h)+`°, `+Math.round(r.s*100)+`%, `+Math.round(r.l*100)+`%`,u=Math.round(a.h)+`°, `+Math.round(a.s*100)+`%, `+Math.round(a.v*100)+`%`;return B.createElement(`div`,{style:s.wrap,className:`flexbox-fix`},B.createElement(`div`,{style:s.fields},B.createElement(`div`,{style:s.double},B.createElement(aP,{style:{input:s.input,label:s.label},label:`hex`,value:i,onChange:o})),B.createElement(`div`,{style:s.column},B.createElement(`div`,{style:s.single},B.createElement(aP,{style:{input:s.input2,label:s.label2},label:`rgb`,value:c,onChange:o})),B.createElement(`div`,{style:s.single},B.createElement(aP,{style:{input:s.input2,label:s.label2},label:`hsv`,value:u,onChange:o})),B.createElement(`div`,{style:s.single},B.createElement(aP,{style:{input:s.input2,label:s.label2},label:`hsl`,value:l,onChange:o})))))},NH=function(e){var t=e.width,n=e.onChange,r=e.rgb,i=e.hsl,a=e.hsv,o=e.hex,s=e.header,c=e.styles,l=c===void 0?{}:c,u=e.className,d=u===void 0?``:u,f=(0,FN.default)(jL({default:{picker:{width:t,background:`#fff`,border:`1px solid #dfe1e5`,boxSizing:`initial`,display:`flex`,flexWrap:`wrap`,borderRadius:`8px 8px 0px 0px`},head:{height:`57px`,width:`100%`,paddingTop:`16px`,paddingBottom:`16px`,paddingLeft:`16px`,fontSize:`20px`,boxSizing:`border-box`,fontFamily:`Roboto-Regular,HelveticaNeue,Arial,sans-serif`},saturation:{width:`70%`,padding:`0px`,position:`relative`,overflow:`hidden`},swatch:{width:`30%`,height:`228px`,padding:`0px`,background:`rgba(`+r.r+`, `+r.g+`, `+r.b+`, 1)`,position:`relative`,overflow:`hidden`},body:{margin:`auto`,width:`95%`},controls:{display:`flex`,boxSizing:`border-box`,height:`52px`,paddingTop:`22px`},color:{width:`32px`},hue:{height:`8px`,position:`relative`,margin:`0px 16px 0px 16px`,width:`100%`},Hue:{radius:`2px`}}},l));return B.createElement(`div`,{style:f.picker,className:`google-picker `+d},B.createElement(`div`,{style:f.head},s),B.createElement(`div`,{style:f.swatch}),B.createElement(`div`,{style:f.saturation},B.createElement(rR,{hsl:i,hsv:a,pointer:AH,onChange:n})),B.createElement(`div`,{style:f.body},B.createElement(`div`,{style:f.controls,className:`flexbox-fix`},B.createElement(`div`,{style:f.hue},B.createElement(dP,{style:f.Hue,hsl:i,radius:`4px`,pointer:jH,onChange:n}))),B.createElement(MH,{rgb:r,hsl:i,hex:o,hsv:a,onChange:n})))};NH.propTypes={width:Z.default.oneOfType([Z.default.string,Z.default.number]),styles:Z.default.object,header:Z.default.string},NH.defaultProps={width:652,styles:{},header:`Color picker`},fz(NH);var PH=o(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define(`cronstrue`,[],r):typeof e==`object`?e.cronstrue=r():n.cronstrue=r()})(globalThis,()=>(()=>{var e={949(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CronParser=void 0;var r=n(515);t.CronParser=function(){function e(e,t,n){t===void 0&&(t=!0),n===void 0&&(n=!1),this.expression=e,this.dayOfWeekStartIndexZero=t,this.monthStartIndexZero=n}return e.prototype.parse=function(){var e,t=this.expression??``;if(t===`@reboot`)return e=[`@reboot`,``,``,``,``,``,``],e;if(t.startsWith(`@`)){var n=this.parseSpecial(this.expression);e=this.extractParts(n)}else e=this.extractParts(this.expression);return this.normalize(e),this.validate(e),e},e.prototype.parseSpecial=function(e){var t={"@yearly":`0 0 1 1 *`,"@annually":`0 0 1 1 *`,"@monthly":`0 0 1 * *`,"@weekly":`0 0 * * 0`,"@daily":`0 0 * * *`,"@midnight":`0 0 * * *`,"@hourly":`0 * * * *`,"@reboot":`@reboot`}[e];if(!t)throw Error(`Unknown special expression.`);return t},e.prototype.extractParts=function(e){if(!this.expression)throw Error(`cron expression is empty`);for(var t=e.trim().split(/[ ]+/),n=0;n<t.length;n++)if(t[n].includes(`,`)){var r=t[n].split(`,`).map(function(e){return e.trim()}).filter(function(e){return e!==``}).map(function(e){return isNaN(Number(e))?e:Number(e)}).filter(function(e){return e!==null&&e!==``});r.length===0&&r.push(`*`),r.sort(function(e,t){return e!==null&&t!==null?e-t:0}),t[n]=r.map(function(e){return e===null?``:e.toString()}).join(`,`)}if(t.length<5)throw Error(`Expression has only ${t.length} part${t.length==1?``:`s`}. At least 5 parts are required.`);if(t.length==5)t.unshift(``),t.push(``);else if(t.length==6)/\d{4}$/.test(t[5])||t[4]==`?`||t[2]==`?`?t.unshift(``):t.push(``);else if(t.length>7)throw Error(`Expression has ${t.length} parts; too many!`);return t},e.prototype.normalize=function(e){var t=this;if(e[3]=e[3].replace(`?`,`*`),e[5]=e[5].replace(`?`,`*`),e[2]=e[2].replace(`?`,`*`),e[0].indexOf(`0/`)==0&&(e[0]=e[0].replace(`0/`,`*/`)),e[1].indexOf(`0/`)==0&&(e[1]=e[1].replace(`0/`,`*/`)),e[2].indexOf(`0/`)==0&&(e[2]=e[2].replace(`0/`,`*/`)),e[3].indexOf(`1/`)==0&&(e[3]=e[3].replace(`1/`,`*/`)),e[4].indexOf(`1/`)==0&&(e[4]=e[4].replace(`1/`,`*/`)),e[6].indexOf(`1/`)==0&&(e[6]=e[6].replace(`1/`,`*/`)),e[5]=e[5].replace(/(^\d)|([^#/\s]\d)/g,function(e){var n=e.replace(/\D/,``),r=n;return t.dayOfWeekStartIndexZero?n==`7`&&(r=`0`):r=(parseInt(n)-1).toString(),e.replace(n,r)}),e[5]==`L`&&(e[5]=`6`),e[3]==`?`&&(e[3]=`*`),e[3].indexOf(`W`)>-1&&(e[3].indexOf(`,`)>-1||e[3].indexOf(`-`)>-1))throw Error(`The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.`);var n={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var r in n)e[5]=e[5].replace(new RegExp(r,`gi`),n[r].toString());e[4]=e[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(e){var n=e.replace(/\D/,``),r=n;return t.monthStartIndexZero&&(r=(parseInt(n)+1).toString()),e.replace(n,r)});var i={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var a in i)e[4]=e[4].replace(new RegExp(a,`gi`),i[a].toString());e[0]==`0`&&(e[0]=``),!/\*|\-|\,|\//.test(e[2])&&(/\*|\//.test(e[1])||/\*|\//.test(e[0]))&&(e[2]+=`-${e[2]}`);for(var o=0;o<e.length;o++)if(e[o].indexOf(`,`)!=-1&&(e[o]=e[o].split(`,`).filter(function(e){return e!==``}).join(`,`)||`*`),e[o]==`*/1`&&(e[o]=`*`),e[o].indexOf(`/`)>-1&&!/^\*|\-|\,/.test(e[o])){var s=null;switch(o){case 4:s=`12`;break;case 5:s=`6`;break;case 6:s=`9999`;break;default:s=null;break}if(s!==null){var c=e[o].split(`/`);e[o]=`${c[0]}-${s}/${c[1]}`}}},e.prototype.validate=function(e){var t=`0-9,\\-*/`;this.validateOnlyExpectedCharactersFound(e[0],t),this.validateOnlyExpectedCharactersFound(e[1],t),this.validateOnlyExpectedCharactersFound(e[2],t),this.validateOnlyExpectedCharactersFound(e[3],`0-9,\\-*/LW`),this.validateOnlyExpectedCharactersFound(e[4],t),this.validateOnlyExpectedCharactersFound(e[5],`0-9,\\-*/L#`),this.validateOnlyExpectedCharactersFound(e[6],t),this.validateAnyRanges(e)},e.prototype.validateAnyRanges=function(e){r.default.secondRange(e[0]),r.default.minuteRange(e[1]),r.default.hourRange(e[2]),r.default.dayOfMonthRange(e[3]),r.default.monthRange(e[4],this.monthStartIndexZero),r.default.dayOfWeekRange(e[5],this.dayOfWeekStartIndexZero)},e.prototype.validateOnlyExpectedCharactersFound=function(e,t){var n=e.match(RegExp(`[^${t}]+`,`gi`));if(n&&n.length)throw Error(`Expression contains invalid values: '${n.toString()}'`)},e}()},333(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ExpressionDescriptor=void 0;var r=n(823),i=n(949);t.ExpressionDescriptor=function(){function e(t,n){if(this.expression=t,this.options=n,this.expressionParts=[,,,,,],!this.options.locale&&e.defaultLocale&&(this.options.locale=e.defaultLocale),!e.locales[this.options.locale]){var r=Object.keys(e.locales)[0];console.warn(`Locale '${this.options.locale}' could not be found; falling back to '${r}'.`),this.options.locale=r}this.i18n=e.locales[this.options.locale],n.use24HourTimeFormat===void 0&&(n.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return e.toString=function(t,n){var r=n===void 0?{}:n,i=r.throwExceptionOnParseError,a=i===void 0?!0:i,o=r.verbose,s=o===void 0?!1:o,c=r.dayOfWeekStartIndexZero,l=c===void 0?!0:c,u=r.monthStartIndexZero,d=u===void 0?!1:u,f=r.use24HourTimeFormat,p=r.trimHoursLeadingZero,m=p===void 0?!1:p,h=r.locale,g=h===void 0?null:h,_=r.logicalAndDayFields,v={throwExceptionOnParseError:a,verbose:s,dayOfWeekStartIndexZero:l,monthStartIndexZero:d,use24HourTimeFormat:f,trimHoursLeadingZero:m,locale:g,logicalAndDayFields:_===void 0?!1:_};return v.tzOffset&&console.warn(`'tzOffset' option has been deprecated and is no longer supported.`),new e(t,v).getFullDescription()},e.initialize=function(t,n){n===void 0&&(n=`en`),e.specialCharacters=[`/`,`-`,`,`,`*`],e.defaultLocale=n,t.load(e.locales)},e.prototype.getFullDescription=function(){var e,t=``;try{var n=new i.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);if(this.expressionParts=n.parse(),this.expressionParts[0]===`@reboot`)return(e=this.i18n).atReboot?.call(e)||`Run once, at startup`;var r=this.getTimeOfDayDescription(),a=this.getDayOfMonthDescription(),o=this.getMonthDescription(),s=this.getDayOfWeekDescription(),c=this.getYearDescription();t+=r+a+s+o+c,t=this.transformVerbosity(t,!!this.options.verbose),t=t.charAt(0).toLocaleUpperCase()+t.substr(1)}catch(e){if(!this.options.throwExceptionOnParseError)t=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw`${e}`}return t},e.prototype.getTimeOfDayDescription=function(){var t=this.expressionParts[0],n=this.expressionParts[1],i=this.expressionParts[2],a=``;if(!r.StringUtilities.containsAny(n,e.specialCharacters)&&!r.StringUtilities.containsAny(i,e.specialCharacters)&&!r.StringUtilities.containsAny(t,e.specialCharacters))a+=this.i18n.atSpace()+this.formatTime(i,n,t);else if(!t&&n.indexOf(`-`)>-1&&!(n.indexOf(`,`)>-1)&&!(n.indexOf(`/`)>-1)&&!r.StringUtilities.containsAny(i,e.specialCharacters)){var o=n.split(`-`);a+=r.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(i,o[0],``),this.formatTime(i,o[1],``))}else if(!t&&i.indexOf(`,`)>-1&&i.indexOf(`-`)==-1&&i.indexOf(`/`)==-1&&!r.StringUtilities.containsAny(n,e.specialCharacters)){var s=i.split(`,`);a+=this.i18n.at();for(var c=0;c<s.length;c++)a+=` `,a+=this.formatTime(s[c],n,``),c<s.length-2&&(a+=`,`),c==s.length-2&&(a+=this.i18n.spaceAnd())}else{var l=this.getSecondsDescription(),u=this.getMinutesDescription(),d=this.getHoursDescription();if(a+=l,a&&u&&(a+=`, `),a+=u,u===d)return a;a&&d&&(a+=`, `),a+=d}return a},e.prototype.getSecondsDescription=function(){var e=this;return this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(e){return e},function(t){return r.StringUtilities.format(e.i18n.everyX0Seconds(t),t)},function(t){return e.i18n.secondsX0ThroughX1PastTheMinute()},function(t){return t==`0`?``:parseInt(t)<20?e.i18n.atX0SecondsPastTheMinute(t):e.i18n.atX0SecondsPastTheMinuteGt20()||e.i18n.atX0SecondsPastTheMinute(t)})},e.prototype.getMinutesDescription=function(){var e=this,t=this.expressionParts[0],n=this.expressionParts[2];return this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(e){return e},function(t){return r.StringUtilities.format(e.i18n.everyX0Minutes(t),t)},function(t){return e.i18n.minutesX0ThroughX1PastTheHour()},function(r){var i;try{return r==`0`&&n.indexOf(`/`)==-1&&t==``?e.i18n.everyHour():r==`0`?(i=e.i18n).onTheHour?.call(i)||e.i18n.atX0MinutesPastTheHour(r):parseInt(r)<20?e.i18n.atX0MinutesPastTheHour(r):e.i18n.atX0MinutesPastTheHourGt20()||e.i18n.atX0MinutesPastTheHour(r)}catch{return e.i18n.atX0MinutesPastTheHour(r)}})},e.prototype.getHoursDescription=function(){var e=this,t=this.expressionParts[2],n=0,i=[];t.split(`/`)[0].split(`,`).forEach(function(e){var t=e.split(`-`);t.length===2&&i.push({value:t[1],index:n+1}),n+=t.length});var a=0;return this.getSegmentDescription(t,this.i18n.everyHour(),function(t){var n=i.find(function(e){return e.value===t&&e.index===a})&&e.expressionParts[1]!==`0`;return a++,n?e.formatTime(t,`59`,``):e.formatTime(t,`0`,``)},function(t){return r.StringUtilities.format(e.i18n.everyX0Hours(t),t)},function(t){return e.i18n.betweenX0AndX1()},function(t){return e.i18n.atX0()})},e.prototype.getDayOfWeekDescription=function(){var e=this,t=this.i18n.daysOfTheWeek(),n=null;return n=this.expressionParts[5]==`*`?``:this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(n,r){var i=n;n.indexOf(`#`)>-1?i=n.substring(0,n.indexOf(`#`)):n.indexOf(`L`)>-1&&(i=i.replace(`L`,``));var a=parseInt(i),o=e.i18n.daysOfTheWeekInCase?e.i18n.daysOfTheWeekInCase(r)[a]:t[a];if(n.indexOf(`#`)>-1){var s=null,c=n.substring(n.indexOf(`#`)+1),l=n.substring(0,n.indexOf(`#`));switch(c){case`1`:s=e.i18n.first(l);break;case`2`:s=e.i18n.second(l);break;case`3`:s=e.i18n.third(l);break;case`4`:s=e.i18n.fourth(l);break;case`5`:s=e.i18n.fifth(l);break}o=s+` `+o}return o},function(t){return parseInt(t)==1?``:r.StringUtilities.format(e.i18n.commaEveryX0DaysOfTheWeek(t),t)},function(t){var n=t.substring(0,t.indexOf(`-`));return e.expressionParts[3]==`*`?e.i18n.commaX0ThroughX1(n):e.i18n.commaAndX0ThroughX1(n)},function(t){var n=null;if(t.indexOf(`#`)>-1){var r=t.substring(t.indexOf(`#`)+1),i=t.substring(0,t.indexOf(`#`));n=e.i18n.commaOnThe(r,i).trim()+e.i18n.spaceX0OfTheMonth()}else n=t.indexOf(`L`)>-1?e.i18n.commaOnTheLastX0OfTheMonth(t.replace(`L`,``)):e.expressionParts[3]==`*`||e.options.logicalAndDayFields?e.i18n.commaOnlyOnX0(t):e.i18n.commaAndOnX0();return n}),n},e.prototype.getMonthDescription=function(){var e=this,t=this.i18n.monthsOfTheYear();return this.getSegmentDescription(this.expressionParts[4],``,function(n,r){return r&&e.i18n.monthsOfTheYearInCase?e.i18n.monthsOfTheYearInCase(r)[parseInt(n)-1]:t[parseInt(n)-1]},function(t){return parseInt(t)==1?``:r.StringUtilities.format(e.i18n.commaEveryX0Months(t),t)},function(t){return e.i18n.commaMonthX0ThroughMonthX1()||e.i18n.commaX0ThroughX1()},function(t){return e.i18n.commaOnlyInMonthX0?e.i18n.commaOnlyInMonthX0():e.i18n.commaOnlyInX0()})},e.prototype.getDayOfMonthDescription=function(){var e=this,t=null,n=this.expressionParts[3];switch(n){case`L`:t=this.i18n.commaOnTheLastDayOfTheMonth();break;case`WL`:case`LW`:t=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var i=n.match(/(\d{1,2}W)|(W\d{1,2})/);if(i){var a=parseInt(i[0].replace(`W`,``)),o=a==1?this.i18n.firstWeekday():r.StringUtilities.format(this.i18n.weekdayNearestDayX0(),a.toString());t=r.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),o);break}else{var s=n.match(/L-(\d{1,2})/);if(s){var c=s[1];t=r.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(c),c);break}else if(n==`*`&&this.expressionParts[5]!=`*`)return``;else t=this.getSegmentDescription(n,this.i18n.commaEveryDay(),function(t){return t==`L`?e.i18n.lastDay():e.i18n.dayX0?r.StringUtilities.format(e.i18n.dayX0(),t):t},function(t){return t==`1`?e.i18n.commaEveryDay():e.i18n.commaEveryX0Days(t)},function(t){return e.i18n.commaBetweenDayX0AndX1OfTheMonth(t)},function(t){return e.i18n.commaOnDayX0OfTheMonth(t)});break}}return t},e.prototype.getYearDescription=function(){var e=this;return this.getSegmentDescription(this.expressionParts[6],``,function(e){return/^\d+$/.test(e)?new Date(parseInt(e),1).getFullYear().toString():e},function(t){return r.StringUtilities.format(e.i18n.commaEveryX0Years(t),t)},function(t){return e.i18n.commaYearX0ThroughYearX1()||e.i18n.commaX0ThroughX1()},function(t){return e.i18n.commaOnlyInYearX0?e.i18n.commaOnlyInYearX0():e.i18n.commaOnlyInX0()})},e.prototype.getSegmentDescription=function(e,t,n,i,a,o){var s=null,c=e.indexOf(`/`)>-1,l=e.indexOf(`-`)>-1,u=e.indexOf(`,`)>-1;if(!e)s=``;else if(e===`*`)s=t;else if(!c&&!l&&!u)s=r.StringUtilities.format(o(e),n(e));else if(u){for(var d=e.split(`,`),f=``,p=0;p<d.length;p++)if(p>0&&d.length>2&&(f+=`,`,p<d.length-1&&(f+=` `)),p>0&&d.length>1&&(p==d.length-1||d.length==2)&&(f+=`${this.i18n.spaceAnd()} `),d[p].indexOf(`/`)>-1||d[p].indexOf(`-`)>-1){var m=d[p].indexOf(`-`)>-1&&d[p].indexOf(`/`)==-1,h=this.getSegmentDescription(d[p],t,n,i,m?this.i18n.commaX0ThroughX1:a,o);m&&(h=h.replace(`, `,``)),f+=h}else if(!c)f+=n(d[p]);else{var g=this.getSegmentDescription(d[p],t,n,i,a,o);g&&g.startsWith(`, `)&&(g=g.substring(2)),f+=g}s=c?f:r.StringUtilities.format(o(e),f)}else if(c){var d=e.split(`/`);if(s=r.StringUtilities.format(i(d[1]),d[1]),d[0].indexOf(`-`)>-1){var _=this.generateRangeSegmentDescription(d[0],a,n);_.indexOf(`, `)!=0&&(s+=`, `),s+=_}else if(d[0].indexOf(`*`)==-1){var v=r.StringUtilities.format(o(d[0]),n(d[0]));v=v.replace(`, `,``),s+=r.StringUtilities.format(this.i18n.commaStartingX0(),v)}}else l&&(s=this.generateRangeSegmentDescription(e,a,n));return s},e.prototype.generateRangeSegmentDescription=function(e,t,n){var i=``,a=e.split(`-`),o=n(a[0],1),s=n(a[1],2),c=t(e);return i+=r.StringUtilities.format(c,o,s),i},e.prototype.formatTime=function(e,t,n){var r=0,i=0,a=parseInt(e)+r,o=parseInt(t)+i;o>=60?(o-=60,a+=1):o<0&&(o+=60,--a),a>=24?a-=24:a<0&&(a=24+a);var s=``,c=!1;this.options.use24HourTimeFormat||(c=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),s=c?`${this.getPeriod(a)} `:` ${this.getPeriod(a)}`,a>12&&(a-=12),a===0&&(a=12));var l=``;n&&(l=`:${(`00`+n).substring(n.length)}`);var u=a.toString(),d=(`00`+u).substring(u.length),f=o.toString(),p=(`00`+f).substring(f.length),m=this.options.trimHoursLeadingZero?u:d;return`${c?s:``}${m}:${p}${l}${c?``:s}`},e.prototype.transformVerbosity=function(e,t){if(!t&&(e=e.replace(RegExp(`, ${this.i18n.everyMinute()}`,`g`),``),e=e.replace(RegExp(`, ${this.i18n.everyHour()}`,`g`),``),e=e.replace(new RegExp(this.i18n.commaEveryDay(),`g`),``),e=e.replace(/\, ?$/,``),this.i18n.conciseVerbosityReplacements))for(var n=0,r=Object.entries(this.i18n.conciseVerbosityReplacements());n<r.length;n++){var i=r[n],a=i[0],o=i[1];e=e.replace(new RegExp(a,`g`),o)}return e},e.prototype.getPeriod=function(e){return e>=12?this.i18n.pm&&this.i18n.pm()||`PM`:this.i18n.am&&this.i18n.am()||`AM`},e.locales={},e}()},747(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.enLocaleLoader=void 0;var r=n(486);t.enLocaleLoader=function(){function e(){}return e.prototype.load=function(e){e.en=new r.en},e}()},486(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.en=void 0,t.en=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!1},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return`An error occurred when generating the expression description. Check the cron expression syntax.`},e.prototype.everyMinute=function(){return`every minute`},e.prototype.everyHour=function(){return`every hour`},e.prototype.atSpace=function(){return`At `},e.prototype.everyMinuteBetweenX0AndX1=function(){return`Every minute between %s and %s`},e.prototype.at=function(){return`At`},e.prototype.spaceAnd=function(){return` and`},e.prototype.everySecond=function(){return`every second`},e.prototype.everyX0Seconds=function(){return`every %s seconds`},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return`seconds %s through %s past the minute`},e.prototype.atX0SecondsPastTheMinute=function(){return`at %s seconds past the minute`},e.prototype.everyX0Minutes=function(){return`every %s minutes`},e.prototype.minutesX0ThroughX1PastTheHour=function(){return`minutes %s through %s past the hour`},e.prototype.atX0MinutesPastTheHour=function(){return`at %s minutes past the hour`},e.prototype.everyX0Hours=function(){return`every %s hours`},e.prototype.betweenX0AndX1=function(){return`between %s and %s`},e.prototype.atX0=function(){return`at %s`},e.prototype.commaEveryDay=function(){return`, every day`},e.prototype.commaEveryX0DaysOfTheWeek=function(){return`, every %s days of the week`},e.prototype.commaX0ThroughX1=function(){return`, %s through %s`},e.prototype.commaAndX0ThroughX1=function(){return`, %s through %s`},e.prototype.first=function(){return`first`},e.prototype.second=function(){return`second`},e.prototype.third=function(){return`third`},e.prototype.fourth=function(){return`fourth`},e.prototype.fifth=function(){return`fifth`},e.prototype.commaOnThe=function(){return`, on the `},e.prototype.spaceX0OfTheMonth=function(){return` %s of the month`},e.prototype.lastDay=function(){return`the last day`},e.prototype.commaOnTheLastX0OfTheMonth=function(){return`, on the last %s of the month`},e.prototype.commaOnlyOnX0=function(){return`, only on %s`},e.prototype.commaAndOnX0=function(){return`, and on %s`},e.prototype.commaEveryX0Months=function(){return`, every %s months`},e.prototype.commaOnlyInX0=function(){return`, only in %s`},e.prototype.commaOnTheLastDayOfTheMonth=function(){return`, on the last day of the month`},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return`, on the last weekday of the month`},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return`, %s days before the last day of the month`},e.prototype.firstWeekday=function(){return`first weekday`},e.prototype.weekdayNearestDayX0=function(){return`weekday nearest day %s`},e.prototype.commaOnTheX0OfTheMonth=function(){return`, on the %s of the month`},e.prototype.commaEveryX0Days=function(){return`, every %s days in a month`},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return`, between day %s and %s of the month`},e.prototype.commaOnDayX0OfTheMonth=function(){return`, on day %s of the month`},e.prototype.commaEveryHour=function(){return`, every hour`},e.prototype.commaEveryX0Years=function(){return`, every %s years`},e.prototype.commaStartingX0=function(){return`, starting %s`},e.prototype.daysOfTheWeek=function(){return[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},e.prototype.monthsOfTheYear=function(){return[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},e.prototype.atReboot=function(){return`Run once, at startup`},e.prototype.onTheHour=function(){return`on the hour`},e}()},515(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(e,t){if(!e)throw Error(t)}t.default=function(){function e(){}return e.secondRange=function(e){for(var t=e.split(`,`),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=59,`seconds part must be >= 0 and <= 59`)}},e.minuteRange=function(e){for(var t=e.split(`,`),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=59,`minutes part must be >= 0 and <= 59`)}},e.hourRange=function(e){for(var t=e.split(`,`),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=23,`hours part must be >= 0 and <= 23`)}},e.dayOfMonthRange=function(e){for(var t=e.split(`,`),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=1&&i<=31,`DOM part must be >= 1 and <= 31`)}},e.monthRange=function(e,t){for(var r=e.split(`,`),i=0;i<r.length;i++)if(!isNaN(parseInt(r[i],10))){var a=parseInt(r[i],10);n(a>=1&&a<=12,t?`month part must be >= 0 and <= 11`:`month part must be >= 1 and <= 12`)}},e.dayOfWeekRange=function(e,t){for(var r=e.split(`,`),i=0;i<r.length;i++)if(!isNaN(parseInt(r[i],10))){var a=parseInt(r[i],10);n(a>=0&&a<=6,t?`DOW part must be >= 0 and <= 6`:`DOW part must be >= 1 and <= 7`)}},e}()},823(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.StringUtilities=void 0,t.StringUtilities=function(){function e(){}return e.format=function(e){var t=[...arguments].slice(1);return e.replace(/%s/g,function(e){return t.shift()})},e.containsAny=function(e,t){return t.some(function(t){return e.indexOf(t)>-1})},e}()}},t={};function n(r){var i=t[r];if(i!==void 0)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}var r={};return(()=>{var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.toString=void 0;var t=n(333),i=n(747);t.ExpressionDescriptor.initialize(new i.enLocaleLoader),e.default=t.ExpressionDescriptor,e.toString=t.ExpressionDescriptor.toString})(),r})())})),FH=o(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(PH()):typeof define==`function`&&define.amd?define(`locales/fr`,[`cronstrue`],r):typeof e==`object`?e["locales/fr"]=r(PH()):n[`locales/fr`]=r(n.cronstrue)})(globalThis,e=>(()=>{var t={93(t){t.exports=e}},n={};function r(e){var i=n[e];if(i!==void 0)return i.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};r.r(i);var a=r(93),o=r.n(a),s=i;Object.defineProperty(s,"__esModule",{value:!0}),s.fr=void 0;var c=function(){function e(){}return e.prototype.conciseVerbosityReplacements=function(){return{"de le":`du`}},e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return`Une erreur est survenue en générant la description de l'expression cron. Vérifiez sa syntaxe.`},e.prototype.everyMinute=function(){return`toutes les minutes`},e.prototype.everyHour=function(){return`toutes les heures`},e.prototype.atSpace=function(){return`À `},e.prototype.everyMinuteBetweenX0AndX1=function(){return`Toutes les minutes entre %s et %s`},e.prototype.at=function(){return`À`},e.prototype.spaceAnd=function(){return` et`},e.prototype.everySecond=function(){return`toutes les secondes`},e.prototype.everyX0Seconds=function(){return`toutes les %s secondes`},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return`les secondes entre %s et %s après la minute`},e.prototype.atX0SecondsPastTheMinute=function(){return`%s secondes après la minute`},e.prototype.everyX0Minutes=function(){return`toutes les %s minutes`},e.prototype.minutesX0ThroughX1PastTheHour=function(){return`les minutes entre %s et %s après l'heure`},e.prototype.atX0MinutesPastTheHour=function(){return`%s minutes après l'heure`},e.prototype.everyX0Hours=function(){return`toutes les %s heures`},e.prototype.betweenX0AndX1=function(){return`de %s à %s`},e.prototype.atX0=function(){return`%s`},e.prototype.commaEveryDay=function(){return`, tous les jours`},e.prototype.commaEveryX0DaysOfTheWeek=function(){return`, tous les %s jours de la semaine`},e.prototype.commaX0ThroughX1=function(){return`, de %s à %s`},e.prototype.commaAndX0ThroughX1=function(){return`, et de %s à %s`},e.prototype.first=function(){return`premier`},e.prototype.second=function(){return`second`},e.prototype.third=function(){return`troisième`},e.prototype.fourth=function(){return`quatrième`},e.prototype.fifth=function(){return`cinquième`},e.prototype.commaOnThe=function(){return`, le `},e.prototype.spaceX0OfTheMonth=function(){return` %s du mois`},e.prototype.lastDay=function(){return`le dernier jour`},e.prototype.commaOnTheLastX0OfTheMonth=function(){return`, le dernier %s du mois`},e.prototype.commaOnlyOnX0=function(){return`, uniquement le %s`},e.prototype.commaAndOnX0=function(){return`, et %s`},e.prototype.commaEveryX0Months=function(){return`, tous les %s mois`},e.prototype.commaOnlyInX0=function(){return`, uniquement en %s`},e.prototype.commaOnTheLastDayOfTheMonth=function(){return`, le dernier jour du mois`},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return`, le dernier jour ouvrable du mois`},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return`, %s jours avant le dernier jour du mois`},e.prototype.firstWeekday=function(){return`premier jour ouvrable`},e.prototype.weekdayNearestDayX0=function(){return`jour ouvrable le plus proche du %s`},e.prototype.commaOnTheX0OfTheMonth=function(){return`, le %s du mois`},e.prototype.commaEveryX0Days=function(){return`, tous les %s jours`},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return`, du %s au %s du mois`},e.prototype.commaOnDayX0OfTheMonth=function(){return`, le %s du mois`},e.prototype.commaEveryHour=function(){return`, chaque heure`},e.prototype.commaEveryX0Years=function(){return`, tous les %s ans`},e.prototype.commaDaysX0ThroughX1=function(){return`, du %s au %s`},e.prototype.commaStartingX0=function(){return`, à partir de %s`},e.prototype.daysOfTheWeek=function(){return[`dimanche`,`lundi`,`mardi`,`mercredi`,`jeudi`,`vendredi`,`samedi`]},e.prototype.monthsOfTheYear=function(){return[`janvier`,`février`,`mars`,`avril`,`mai`,`juin`,`juillet`,`août`,`septembre`,`octobre`,`novembre`,`décembre`]},e.prototype.onTheHour=function(){return`à l'heure pile`},e}();return s.fr=c,o().locales.fr=new c,i})())})),IH=o(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(PH()):typeof define==`function`&&define.amd?define(`locales/es`,[`cronstrue`],r):typeof e==`object`?e["locales/es"]=r(PH()):n[`locales/es`]=r(n.cronstrue)})(globalThis,e=>(()=>{var t={93(t){t.exports=e}},n={};function r(e){var i=n[e];if(i!==void 0)return i.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};r.r(i);var a=r(93),o=r.n(a),s=i;Object.defineProperty(s,"__esModule",{value:!0}),s.es=void 0;var c=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return`Ocurrió un error mientras se generaba la descripción de la expresión. Revise la sintaxis de la expresión de cron.`},e.prototype.at=function(){return`A las`},e.prototype.atSpace=function(){return`A las `},e.prototype.atX0=function(){return`a las %s`},e.prototype.atX0MinutesPastTheHour=function(){return`a los %s minutos de la hora`},e.prototype.atX0SecondsPastTheMinute=function(){return`a los %s segundos del minuto`},e.prototype.betweenX0AndX1=function(){return`entre las %s y las %s`},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return`, entre los días %s y %s del mes`},e.prototype.commaEveryDay=function(){return`, cada día`},e.prototype.commaEveryX0Days=function(){return`, cada %s días`},e.prototype.commaEveryX0DaysOfTheWeek=function(){return`, cada %s días de la semana`},e.prototype.commaEveryX0Months=function(){return`, cada %s meses`},e.prototype.commaOnDayX0OfTheMonth=function(){return`, el día %s del mes`},e.prototype.commaOnlyInX0=function(){return`, sólo en %s`},e.prototype.commaOnlyOnX0=function(){return`, sólo el %s`},e.prototype.commaAndOnX0=function(){return`, y el %s`},e.prototype.commaOnThe=function(){return`, en el `},e.prototype.commaOnTheLastDayOfTheMonth=function(){return`, en el último día del mes`},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return`, en el último día de la semana del mes`},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return`, %s días antes del último día del mes`},e.prototype.commaOnTheLastX0OfTheMonth=function(){return`, en el último %s del mes`},e.prototype.commaOnTheX0OfTheMonth=function(){return`, en el %s del mes`},e.prototype.commaX0ThroughX1=function(){return`, de %s a %s`},e.prototype.commaAndX0ThroughX1=function(){return`, y de %s a %s`},e.prototype.everyHour=function(){return`cada hora`},e.prototype.everyMinute=function(){return`cada minuto`},e.prototype.everyMinuteBetweenX0AndX1=function(){return`cada minuto entre las %s y las %s`},e.prototype.everySecond=function(){return`cada segundo`},e.prototype.everyX0Hours=function(){return`cada %s horas`},e.prototype.everyX0Minutes=function(){return`cada %s minutos`},e.prototype.everyX0Seconds=function(){return`cada %s segundos`},e.prototype.fifth=function(){return`quinto`},e.prototype.first=function(){return`primero`},e.prototype.firstWeekday=function(){return`primer día de la semana`},e.prototype.fourth=function(){return`cuarto`},e.prototype.minutesX0ThroughX1PastTheHour=function(){return`del minuto %s al %s pasada la hora`},e.prototype.second=function(){return`segundo`},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return`En los segundos %s al %s de cada minuto`},e.prototype.spaceAnd=function(){return` y`},e.prototype.spaceX0OfTheMonth=function(){return` %s del mes`},e.prototype.lastDay=function(){return`el último día`},e.prototype.third=function(){return`tercer`},e.prototype.weekdayNearestDayX0=function(){return`día de la semana más próximo al %s`},e.prototype.commaEveryX0Years=function(){return`, cada %s años`},e.prototype.commaStartingX0=function(){return`, comenzando %s`},e.prototype.daysOfTheWeek=function(){return[`domingo`,`lunes`,`martes`,`miércoles`,`jueves`,`viernes`,`sábado`]},e.prototype.monthsOfTheYear=function(){return[`enero`,`febrero`,`marzo`,`abril`,`mayo`,`junio`,`julio`,`agosto`,`septiembre`,`octubre`,`noviembre`,`diciembre`]},e.prototype.onTheHour=function(){return`en punto`},e}();return s.es=c,o().locales.es=new c,i})())})),LH=o(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(PH()):typeof define==`function`&&define.amd?define(`locales/de`,[`cronstrue`],r):typeof e==`object`?e["locales/de"]=r(PH()):n[`locales/de`]=r(n.cronstrue)})(globalThis,e=>(()=>{var t={93(t){t.exports=e}},n={};function r(e){var i=n[e];if(i!==void 0)return i.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};r.r(i);var a=r(93),o=r.n(a),s=i;Object.defineProperty(s,"__esModule",{value:!0}),s.de=void 0;var c=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.everyMinute=function(){return`jede Minute`},e.prototype.everyHour=function(){return`jede Stunde`},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return`Beim Generieren der Ausdrucksbeschreibung ist ein Fehler aufgetreten. Überprüfen Sie die Syntax des Cron-Ausdrucks.`},e.prototype.atSpace=function(){return`Um `},e.prototype.everyMinuteBetweenX0AndX1=function(){return`Jede Minute zwischen %s und %s`},e.prototype.at=function(){return`Um`},e.prototype.spaceAnd=function(){return` und`},e.prototype.everySecond=function(){return`Jede Sekunde`},e.prototype.everyX0Seconds=function(){return`alle %s Sekunden`},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return`Sekunden %s bis %s`},e.prototype.atX0SecondsPastTheMinute=function(){return`bei Sekunde %s`},e.prototype.everyX0Minutes=function(){return`alle %s Minuten`},e.prototype.minutesX0ThroughX1PastTheHour=function(){return`Minuten %s bis %s`},e.prototype.atX0MinutesPastTheHour=function(){return`bei Minute %s`},e.prototype.everyX0Hours=function(){return`alle %s Stunden`},e.prototype.betweenX0AndX1=function(){return`zwischen %s und %s`},e.prototype.atX0=function(){return`um %s`},e.prototype.commaEveryDay=function(){return`, jeden Tag`},e.prototype.commaEveryX0DaysOfTheWeek=function(){return`, alle %s Tage der Woche`},e.prototype.commaX0ThroughX1=function(){return`, %s bis %s`},e.prototype.commaAndX0ThroughX1=function(){return`, und %s bis %s`},e.prototype.first=function(){return`ersten`},e.prototype.second=function(){return`zweiten`},e.prototype.third=function(){return`dritten`},e.prototype.fourth=function(){return`vierten`},e.prototype.fifth=function(){return`fünften`},e.prototype.commaOnThe=function(){return`, am `},e.prototype.spaceX0OfTheMonth=function(){return` %s des Monats`},e.prototype.lastDay=function(){return`der letzte Tag`},e.prototype.commaOnTheLastX0OfTheMonth=function(){return`, am letzten %s des Monats`},e.prototype.commaOnlyOnX0=function(){return`, nur jeden %s`},e.prototype.commaAndOnX0=function(){return`, und jeden %s`},e.prototype.commaEveryX0Months=function(){return`, alle %s Monate`},e.prototype.commaOnlyInX0=function(){return`, nur im %s`},e.prototype.commaOnTheLastDayOfTheMonth=function(){return`, am letzten Tag des Monats`},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return`, am letzten Werktag des Monats`},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return`, %s tage vor dem letzten Tag des Monats`},e.prototype.firstWeekday=function(){return`ersten Werktag`},e.prototype.weekdayNearestDayX0=function(){return`Werktag am nächsten zum %s Tag`},e.prototype.commaOnTheX0OfTheMonth=function(){return`, am %s des Monats`},e.prototype.commaEveryX0Days=function(){return`, alle %s Tage`},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return`, zwischen Tag %s und %s des Monats`},e.prototype.commaOnDayX0OfTheMonth=function(){return`, an Tag %s des Monats`},e.prototype.commaEveryX0Years=function(){return`, alle %s Jahre`},e.prototype.commaStartingX0=function(){return`, beginnend %s`},e.prototype.daysOfTheWeek=function(){return[`Sonntag`,`Montag`,`Dienstag`,`Mittwoch`,`Donnerstag`,`Freitag`,`Samstag`]},e.prototype.monthsOfTheYear=function(){return[`Januar`,`Februar`,`März`,`April`,`Mai`,`Juni`,`Juli`,`August`,`September`,`Oktober`,`November`,`Dezember`]},e.prototype.onTheHour=function(){return`zur vollen Stunde`},e}();return s.de=c,o().locales.de=new c,i})())})),RH=o(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(PH()):typeof define==`function`&&define.amd?define(`locales/it`,[`cronstrue`],r):typeof e==`object`?e["locales/it"]=r(PH()):n[`locales/it`]=r(n.cronstrue)})(globalThis,e=>(()=>{var t={93(t){t.exports=e}},n={};function r(e){var i=n[e];if(i!==void 0)return i.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};r.r(i);var a=r(93),o=r.n(a),s=i;Object.defineProperty(s,"__esModule",{value:!0}),s.it=void 0;var c=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return`È verificato un errore durante la generazione la descrizione espressione. Controllare la sintassi delle espressioni cron.`},e.prototype.at=function(){return`Alle`},e.prototype.atSpace=function(){return`Alle `},e.prototype.atX0=function(){return`alle %s`},e.prototype.atX0MinutesPastTheHour=function(){return`al %s minuto passata l'ora`},e.prototype.atX0SecondsPastTheMinute=function(){return`al %s secondo passato il minuto`},e.prototype.betweenX0AndX1=function(){return`tra le %s e le %s`},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return`, tra il giorno %s e %s del mese`},e.prototype.commaEveryDay=function(){return`, ogni giorno`},e.prototype.commaEveryX0Days=function(){return`, ogni %s giorni`},e.prototype.commaEveryX0DaysOfTheWeek=function(){return`, ogni %s giorni della settimana`},e.prototype.commaEveryX0Months=function(){return`, ogni %s mesi`},e.prototype.commaEveryX0Years=function(){return`, ogni %s anni`},e.prototype.commaOnDayX0OfTheMonth=function(){return`, il giorno %s del mese`},e.prototype.commaOnlyInX0=function(){return`, solo in %s`},e.prototype.commaOnlyOnX0=function(){return`, solo il %s`},e.prototype.commaAndOnX0=function(){return`, e il %s`},e.prototype.commaOnThe=function(){return`, il `},e.prototype.commaOnTheLastDayOfTheMonth=function(){return`, l'ultimo giorno del mese`},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return`, nell'ultima settimana del mese`},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return`, %s giorni prima dell'ultimo giorno del mese`},e.prototype.commaOnTheLastX0OfTheMonth=function(){return`, l'ultimo %s del mese`},e.prototype.commaOnTheX0OfTheMonth=function(){return`, il %s del mese`},e.prototype.commaX0ThroughX1=function(){return`, %s al %s`},e.prototype.commaAndX0ThroughX1=function(){return`, e %s al %s`},e.prototype.everyHour=function(){return`ogni ora`},e.prototype.everyMinute=function(){return`ogni minuto`},e.prototype.everyMinuteBetweenX0AndX1=function(){return`Ogni minuto tra le %s e le %s`},e.prototype.everySecond=function(){return`ogni secondo`},e.prototype.everyX0Hours=function(){return`ogni %s ore`},e.prototype.everyX0Minutes=function(){return`ogni %s minuti`},e.prototype.everyX0Seconds=function(){return`ogni %s secondi`},e.prototype.fifth=function(){return`quinto`},e.prototype.first=function(){return`primo`},e.prototype.firstWeekday=function(){return`primo giorno della settimana`},e.prototype.fourth=function(){return`quarto`},e.prototype.minutesX0ThroughX1PastTheHour=function(){return`minuti %s al %s dopo l'ora`},e.prototype.second=function(){return`secondo`},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return`secondi %s al %s oltre il minuto`},e.prototype.spaceAnd=function(){return` e`},e.prototype.spaceX0OfTheMonth=function(){return` %s del mese`},e.prototype.lastDay=function(){return`l'ultimo giorno`},e.prototype.third=function(){return`terzo`},e.prototype.weekdayNearestDayX0=function(){return`giorno della settimana più vicino al %s`},e.prototype.commaStartingX0=function(){return`, a partire %s`},e.prototype.daysOfTheWeek=function(){return[`domenica`,`lunedì`,`martedì`,`mercoledì`,`giovedì`,`venerdì`,`sabato`]},e.prototype.monthsOfTheYear=function(){return[`gennaio`,`febbraio`,`marzo`,`aprile`,`maggio`,`giugno`,`luglio`,`agosto`,`settembre`,`ottobre`,`novembre`,`dicembre`]},e.prototype.onTheHour=function(){return`all'ora esatta`},e}();return s.it=c,o().locales.it=new c,i})())})),zH=o(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(PH()):typeof define==`function`&&define.amd?define(`locales/ru`,[`cronstrue`],r):typeof e==`object`?e["locales/ru"]=r(PH()):n[`locales/ru`]=r(n.cronstrue)})(globalThis,e=>(()=>{var t={93(t){t.exports=e}},n={};function r(e){var i=n[e];if(i!==void 0)return i.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};r.r(i);var a=r(93),o=r.n(a),s=i;Object.defineProperty(s,"__esModule",{value:!0}),s.ru=void 0;var c=function(e,t){var n=Number(e);return n===void 0?t[2]:t[n%100>4&&n%100<20?2:[2,0,1,1,1,2][n%10<5?Math.abs(n)%10:5]]},l=function(e,t){var n=Number(e);return n===void 0?t[1]:t[n===0?0:n===1||n===2||n===4?1:2]},u=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.everyMinute=function(){return`каждую минуту`},e.prototype.everyHour=function(){return`каждый час`},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return`Произошла ошибка во время генерации описания выражения. Проверьте синтаксис крон-выражения.`},e.prototype.atSpace=function(){return`В `},e.prototype.everyMinuteBetweenX0AndX1=function(){return`Каждую минуту с %s по %s`},e.prototype.at=function(){return`В`},e.prototype.spaceAnd=function(){return` и`},e.prototype.everySecond=function(){return`каждую секунду`},e.prototype.everyX0Seconds=function(e){return c(e,[`каждую %s секунду`,`каждые %s секунды`,`каждые %s секунд`])},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return`секунды с %s по %s`},e.prototype.atX0SecondsPastTheMinute=function(e){return c(e,[`в %s секунду`,`в %s секунды`,`в %s секунд`])},e.prototype.everyX0Minutes=function(e){return c(e,[`каждую %s минуту`,`каждые %s минуты`,`каждые %s минут`])},e.prototype.minutesX0ThroughX1PastTheHour=function(){return`минуты с %s по %s`},e.prototype.atX0MinutesPastTheHour=function(e){return c(e,[`в %s минуту`,`в %s минуты`,`в %s минут`])},e.prototype.everyX0Hours=function(e){return c(e,[`каждый %s час`,`каждые %s часа`,`каждые %s часов`])},e.prototype.betweenX0AndX1=function(){return`с %s по %s`},e.prototype.atX0=function(){return`в %s`},e.prototype.commaEveryDay=function(){return`, каждый день`},e.prototype.commaEveryX0DaysOfTheWeek=function(e){return c(e,[`, каждый %s день недели`,`, каждые %s дня недели`,`, каждые %s дней недели`])},e.prototype.commaX0ThroughX1=function(e){return e&&(e[0]==`2`||e[0]==`3`)?`, со %s по %s`:`, с %s по %s`},e.prototype.commaAndX0ThroughX1=function(e){return e&&(e[0]==`2`||e[0]==`3`)?` и со %s по %s`:` и с %s по %s`},e.prototype.first=function(e){return l(e,[`первое`,`первый`,`первую`])},e.prototype.second=function(e){return l(e,[`второе`,`второй`,`вторую`])},e.prototype.third=function(e){return l(e,[`третье`,`третий`,`третью`])},e.prototype.fourth=function(e){return l(e,[`четвертое`,`четвертый`,`четвертую`])},e.prototype.fifth=function(e){return l(e,[`пятое`,`пятый`,`пятую`])},e.prototype.commaOnThe=function(e){return e===`2`?`, во `:`, в `},e.prototype.spaceX0OfTheMonth=function(){return` %s месяца`},e.prototype.lastDay=function(){return`последний день`},e.prototype.commaOnTheLastX0OfTheMonth=function(e){return l(e,[`, в последнее %s месяца`,`, в последний %s месяца`,`, в последнюю %s месяца`])},e.prototype.commaOnlyOnX0=function(e){return e&&e[0]===`2`?`, только во %s`:`, только в %s`},e.prototype.commaAndOnX0=function(){return`, и %s`},e.prototype.commaEveryX0Months=function(e){return c(e,[``,` каждые %s месяца`,` каждые %s месяцев`])},e.prototype.commaOnlyInMonthX0=function(){return`, только %s`},e.prototype.commaOnlyInX0=function(){return`, только в %s`},e.prototype.commaOnTheLastDayOfTheMonth=function(){return`, в последний день месяца`},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return`, в последний будний день месяца`},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(e){return c(e,[`, за %s день до конца месяца`,`, за %s дня до конца месяца`,`, за %s дней до конца месяца`])},e.prototype.firstWeekday=function(){return`первый будний день`},e.prototype.weekdayNearestDayX0=function(){return`ближайший будний день к %s числу`},e.prototype.commaOnTheX0OfTheMonth=function(){return`, в %s месяца`},e.prototype.commaEveryX0Days=function(e){return c(e,[`, каждый %s день`,`, каждые %s дня`,`, каждые %s дней`])},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(e){return e&&e.substring(0,e.indexOf(`-`))==`2`?`, со %s по %s число месяца`:`, с %s по %s число месяца`},e.prototype.commaOnDayX0OfTheMonth=function(e){return e&&e[0]==`2`?`, во %s число месяца`:`, в %s число месяца`},e.prototype.commaEveryX0Years=function(e){return c(e,[`, каждый %s год`,`, каждые %s года`,`, каждые %s лет`])},e.prototype.commaStartingX0=function(){return`, начало %s`},e.prototype.daysOfTheWeek=function(){return[`воскресенье`,`понедельник`,`вторник`,`среда`,`четверг`,`пятница`,`суббота`]},e.prototype.daysOfTheWeekInCase=function(e){return e===void 0&&(e=2),e==1?[`воскресенья`,`понедельника`,`вторника`,`среды`,`четверга`,`пятницы`,`субботы`]:[`воскресенье`,`понедельник`,`вторник`,`среду`,`четверг`,`пятницу`,`субботу`]},e.prototype.monthsOfTheYear=function(){return[`январь`,`февраль`,`март`,`апрель`,`май`,`июнь`,`июль`,`август`,`сентябрь`,`октябрь`,`ноябрь`,`декабрь`]},e.prototype.monthsOfTheYearInCase=function(e){return e==1?[`января`,`февраля`,`марта`,`апреля`,`мая`,`июня`,`июля`,`августа`,`сентября`,`октября`,`ноября`,`декабря`]:this.monthsOfTheYear()},e.prototype.onTheHour=function(){return`ровно в час`},e}();return s.ru=u,o().locales.ru=new u,i})())})),BH=o(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(PH()):typeof define==`function`&&define.amd?define(`locales/zh_CN`,[`cronstrue`],r):typeof e==`object`?e["locales/zh_CN"]=r(PH()):n[`locales/zh_CN`]=r(n.cronstrue)})(globalThis,e=>(()=>{var t={93(t){t.exports=e}},n={};function r(e){var i=n[e];if(i!==void 0)return i.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};r.r(i);var a=r(93),o=r.n(a),s=i;Object.defineProperty(s,"__esModule",{value:!0}),s.zh_CN=void 0;var c=function(){function e(){}return e.prototype.setPeriodBeforeTime=function(){return!0},e.prototype.pm=function(){return`下午`},e.prototype.am=function(){return`上午`},e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return`, 从%s年至%s年`},e.prototype.use24HourTimeFormatByDefault=function(){return!1},e.prototype.everyMinute=function(){return`每分钟`},e.prototype.everyHour=function(){return`每小时`},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return`生成表达式描述时发生了错误,请检查cron表达式语法。`},e.prototype.atSpace=function(){return`在`},e.prototype.everyMinuteBetweenX0AndX1=function(){return`在 %s 至 %s 之间的每分钟`},e.prototype.at=function(){return`在`},e.prototype.spaceAnd=function(){return` 和`},e.prototype.everySecond=function(){return`每秒`},e.prototype.everyX0Seconds=function(){return`每隔 %s 秒`},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return`在一分钟后的第 %s 到 %s 秒`},e.prototype.atX0SecondsPastTheMinute=function(){return`在一分钟后的第 %s 秒`},e.prototype.everyX0Minutes=function(){return`每隔 %s 分钟`},e.prototype.minutesX0ThroughX1PastTheHour=function(){return`在整点后的第 %s 到 %s 分钟`},e.prototype.atX0MinutesPastTheHour=function(){return`在整点后的第 %s 分钟`},e.prototype.everyX0Hours=function(){return`每隔 %s 小时`},e.prototype.betweenX0AndX1=function(){return`在 %s 和 %s 之间`},e.prototype.atX0=function(){return`在%s`},e.prototype.commaEveryDay=function(){return`, 每天`},e.prototype.commaEveryX0DaysOfTheWeek=function(){return`, 每周的每 %s 天`},e.prototype.commaX0ThroughX1=function(){return`, %s至%s`},e.prototype.commaAndX0ThroughX1=function(){return`, 和%s至%s`},e.prototype.first=function(){return`第一个`},e.prototype.second=function(){return`第二个`},e.prototype.third=function(){return`第三个`},e.prototype.fourth=function(){return`第四个`},e.prototype.fifth=function(){return`第五个`},e.prototype.commaOnThe=function(){return`, 限每月的`},e.prototype.spaceX0OfTheMonth=function(){return`%s`},e.prototype.lastDay=function(){return`本月最后一天`},e.prototype.commaOnTheLastX0OfTheMonth=function(){return`, 限每月的最后一个%s`},e.prototype.commaOnlyOnX0=function(){return`, 仅%s`},e.prototype.commaAndOnX0=function(){return`, 或者为%s`},e.prototype.commaEveryX0Months=function(){return`, 每隔 %s 个月`},e.prototype.commaOnlyInX0=function(){return`, 仅限%s`},e.prototype.commaOnlyInMonthX0=function(){return`, 仅于%s份`},e.prototype.commaOnlyInYearX0=function(){return`, 仅于 %s 年`},e.prototype.commaOnTheLastDayOfTheMonth=function(){return`, 限每月的最后一天`},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return`, 限每月的最后一个工作日`},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return`, 限每月最后%s天`},e.prototype.firstWeekday=function(){return`第一个工作日`},e.prototype.weekdayNearestDayX0=function(){return`最接近 %s 号的工作日`},e.prototype.commaOnTheX0OfTheMonth=function(){return`, 限每月的%s`},e.prototype.commaEveryX0Days=function(){return`, 每隔 %s 天`},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return`, 限每月的 %s 至 %s 之间`},e.prototype.commaOnDayX0OfTheMonth=function(){return`, 限每月%s`},e.prototype.commaEveryX0Years=function(){return`, 每隔 %s 年`},e.prototype.commaStartingX0=function(){return`, %s开始`},e.prototype.dayX0=function(){return` %s 号`},e.prototype.daysOfTheWeek=function(){return[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`]},e.prototype.monthsOfTheYear=function(){return[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`]},e.prototype.onTheHour=function(){return`整点`},e}();return s.zh_CN=c,o().locales.zh_CN=new c,i})())})),VH=o(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(PH()):typeof define==`function`&&define.amd?define(`locales/uk`,[`cronstrue`],r):typeof e==`object`?e["locales/uk"]=r(PH()):n[`locales/uk`]=r(n.cronstrue)})(globalThis,e=>(()=>{var t={93(t){t.exports=e}},n={};function r(e){var i=n[e];if(i!==void 0)return i.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};r.r(i);var a=r(93),o=r.n(a),s=i;Object.defineProperty(s,"__esModule",{value:!0}),s.uk=void 0;var c=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.everyMinute=function(){return`щохвилини`},e.prototype.everyHour=function(){return`щогодини`},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return`ВІдбулася помилка підчас генерації опису. Перевірта правильність написання cron виразу.`},e.prototype.atSpace=function(){return`О `},e.prototype.everyMinuteBetweenX0AndX1=function(){return`Щохвилини між %s та %s`},e.prototype.at=function(){return`О`},e.prototype.spaceAnd=function(){return` та`},e.prototype.everySecond=function(){return`Щосекунди`},e.prototype.everyX0Seconds=function(){return`кожні %s секунд`},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return`з %s по %s секунду`},e.prototype.atX0SecondsPastTheMinute=function(){return`о %s секунді`},e.prototype.everyX0Minutes=function(){return`кожні %s хвилин`},e.prototype.minutesX0ThroughX1PastTheHour=function(){return`з %s по %s хвилину`},e.prototype.atX0MinutesPastTheHour=function(){return`о %s хвилині`},e.prototype.everyX0Hours=function(){return`кожні %s годин`},e.prototype.betweenX0AndX1=function(){return`між %s та %s`},e.prototype.atX0=function(){return`о %s`},e.prototype.commaEveryDay=function(){return`, щоденно`},e.prototype.commaEveryX0DaysOfTheWeek=function(){return`, кожен %s день тижня`},e.prototype.commaX0ThroughX1=function(){return`, %s по %s`},e.prototype.commaAndX0ThroughX1=function(){return`, та %s по %s`},e.prototype.first=function(){return`перший`},e.prototype.second=function(){return`другий`},e.prototype.third=function(){return`третій`},e.prototype.fourth=function(){return`четвертий`},e.prototype.fifth=function(){return`п'ятий`},e.prototype.commaOnThe=function(){return`, в `},e.prototype.spaceX0OfTheMonth=function(){return` %s місяця`},e.prototype.lastDay=function(){return`останній день`},e.prototype.commaOnTheLastX0OfTheMonth=function(){return`, в останній %s місяця`},e.prototype.commaOnlyOnX0=function(){return`, тільки в %s`},e.prototype.commaAndOnX0=function(){return`, і в %s`},e.prototype.commaEveryX0Months=function(){return`, кожен %s місяць`},e.prototype.commaOnlyInX0=function(){return`, тільки в %s`},e.prototype.commaOnTheLastDayOfTheMonth=function(){return`, в останній день місяця`},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return`, в останній будень місяця`},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return`, %s днів до останнього дня місяця`},e.prototype.firstWeekday=function(){return`перший будень`},e.prototype.weekdayNearestDayX0=function(){return`будень найближчий до %s дня`},e.prototype.commaOnTheX0OfTheMonth=function(){return`, в %s місяця`},e.prototype.commaEveryX0Days=function(){return`, кожен %s день`},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return`, між %s та %s днями місяця`},e.prototype.commaOnDayX0OfTheMonth=function(){return`, на %s день місяця`},e.prototype.commaEveryX0Years=function(){return`, кожні %s роки`},e.prototype.commaStartingX0=function(){return`, початок %s`},e.prototype.daysOfTheWeek=function(){return[`неділя`,`понеділок`,`вівторок`,`середа`,`четвер`,`п'ятниця`,`субота`]},e.prototype.monthsOfTheYear=function(){return[`січень`,`лютий`,`березень`,`квітень`,`травень`,`червень`,`липень`,`серпень`,`вересень`,`жовтень`,`листопад`,`грудень`]},e.prototype.onTheHour=function(){return`рівно о годині`},e}();return s.uk=c,o().locales.uk=new c,i})())})),HH=o(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(PH()):typeof define==`function`&&define.amd?define(`locales/pt_BR`,[`cronstrue`],r):typeof e==`object`?e["locales/pt_BR"]=r(PH()):n[`locales/pt_BR`]=r(n.cronstrue)})(globalThis,e=>(()=>{var t={93(t){t.exports=e}},n={};function r(e){var i=n[e];if(i!==void 0)return i.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};r.r(i);var a=r(93),o=r.n(a),s=i;Object.defineProperty(s,"__esModule",{value:!0}),s.pt_BR=void 0;var c=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return`Ocorreu um erro ao gerar a descrição da expressão Cron.`},e.prototype.at=function(){return`às`},e.prototype.atSpace=function(){return`às `},e.prototype.atX0=function(){return`Às %s`},e.prototype.atX0MinutesPastTheHour=function(){return`aos %s minutos da hora`},e.prototype.atX0SecondsPastTheMinute=function(){return`aos %s segundos do minuto`},e.prototype.betweenX0AndX1=function(){return`entre %s e %s`},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return`, entre os dias %s e %s do mês`},e.prototype.commaEveryDay=function(){return`, a cada dia`},e.prototype.commaEveryX0Days=function(){return`, a cada %s dias`},e.prototype.commaEveryX0DaysOfTheWeek=function(){return`, a cada %s dias de semana`},e.prototype.commaEveryX0Months=function(){return`, a cada %s meses`},e.prototype.commaOnDayX0OfTheMonth=function(){return`, no dia %s do mês`},e.prototype.commaOnlyInX0=function(e){return e&&e.length>1&&e[1]===`-`?`somente %s`:`, somente em %s`},e.prototype.commaOnlyOnX0=function(e){return e&&e.length>1&&e[1]===`-`?`, somente %s`:`, somente de %s`},e.prototype.commaAndOnX0=function(){return`, e de %s`},e.prototype.commaOnThe=function(e,t){return t===`6`||t===`0`?`, no`:`, na `},e.prototype.commaOnTheLastDayOfTheMonth=function(){return`, no último dia do mês`},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return`, no último dia da semana do mês`},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return`, %s dias antes do último dia do mês`},e.prototype.commaOnTheLastX0OfTheMonth=function(){return`, na última %s do mês`},e.prototype.commaOnTheX0OfTheMonth=function(){return`, no %s do mês`},e.prototype.commaX0ThroughX1=function(){return`, de %s a %s`},e.prototype.commaAndX0ThroughX1=function(){return`, e de %s a %s`},e.prototype.everyHour=function(){return`a cada hora`},e.prototype.everyMinute=function(){return`a cada minuto`},e.prototype.everyMinuteBetweenX0AndX1=function(){return`a cada minuto entre %s e %s`},e.prototype.everySecond=function(){return`a cada segundo`},e.prototype.everyX0Hours=function(){return`a cada %s horas`},e.prototype.everyX0Minutes=function(){return`a cada %s minutos`},e.prototype.everyX0Seconds=function(){return`a cada %s segundos`},e.prototype.fifth=function(e){return e===`6`||e===`0`?`quinto`:`quinta`},e.prototype.first=function(e){return e===`6`||e===`0`?`primeiro`:`primeira`},e.prototype.firstWeekday=function(){return`primeiro dia da semana`},e.prototype.fourth=function(e){return e===`6`||e===`0`?`quarto`:`quarta`},e.prototype.minutesX0ThroughX1PastTheHour=function(){return`do minuto %s até %s de cada hora`},e.prototype.second=function(e){return e===`6`||e===`0`?`segundo`:`segunda`},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return`No segundo %s até %s de cada minuto`},e.prototype.spaceAnd=function(){return` e`},e.prototype.spaceX0OfTheMonth=function(){return` %s do mês`},e.prototype.lastDay=function(){return`o último dia`},e.prototype.third=function(e){return e===`6`||e===`0`?`terceiro`:`terceira`},e.prototype.weekdayNearestDayX0=function(){return`dia da semana mais próximo do dia %s`},e.prototype.commaEveryX0Years=function(){return`, a cada %s anos`},e.prototype.commaStartingX0=function(){return`, iniciando %s`},e.prototype.daysOfTheWeek=function(){return[`domingo`,`segunda-feira`,`terça-feira`,`quarta-feira`,`quinta-feira`,`sexta-feira`,`sábado`]},e.prototype.monthsOfTheYear=function(){return[`janeiro`,`fevereiro`,`março`,`abril`,`maio`,`junho`,`julho`,`agosto`,`setembro`,`outubro`,`novembro`,`dezembro`]},e.prototype.onTheHour=function(){return`na hora certa`},e}();return s.pt_BR=c,o().locales.pt_BR=new c,i})())})),UH=o(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(PH()):typeof define==`function`&&define.amd?define(`locales/pl`,[`cronstrue`],r):typeof e==`object`?e["locales/pl"]=r(PH()):n[`locales/pl`]=r(n.cronstrue)})(globalThis,e=>(()=>{var t={93(t){t.exports=e}},n={};function r(e){var i=n[e];if(i!==void 0)return i.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};r.r(i);var a=r(93),o=r.n(a),s=i;Object.defineProperty(s,"__esModule",{value:!0}),s.pl=void 0;var c=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return`Wystąpił błąd podczas generowania opisu wyrażenia cron. Sprawdź składnię wyrażenia cron.`},e.prototype.at=function(){return`O`},e.prototype.atSpace=function(){return`O `},e.prototype.atX0=function(){return`o %s`},e.prototype.atX0MinutesPastTheHour=function(){return`w %s minucie`},e.prototype.atX0SecondsPastTheMinute=function(){return`w %s sekundzie`},e.prototype.betweenX0AndX1=function(){return`od %s do %s`},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return`, od %s-ego do %s-ego dnia miesiąca`},e.prototype.commaEveryDay=function(){return`, co dzień`},e.prototype.commaEveryX0Days=function(){return`, co %s dni`},e.prototype.commaEveryX0DaysOfTheWeek=function(){return`, co %s dni tygodnia`},e.prototype.commaEveryX0Months=function(){return`, co %s miesięcy`},e.prototype.commaEveryX0Years=function(){return`, co %s lat`},e.prototype.commaOnDayX0OfTheMonth=function(){return`, %s-ego dnia miesiąca`},e.prototype.commaOnlyInX0=function(){return`, tylko %s`},e.prototype.commaOnlyOnX0=function(){return`, tylko %s`},e.prototype.commaAndOnX0=function(){return`, i %s`},e.prototype.commaOnThe=function(){return`, `},e.prototype.commaOnTheLastDayOfTheMonth=function(){return`, ostatni dzień miesiąca`},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return`, ostatni dzień roboczy miesiąca`},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return`, %s dni przed ostatnim dniem miesiąca`},e.prototype.commaOnTheLastX0OfTheMonth=function(){return`, ostatni %s miesiąca`},e.prototype.commaOnTheX0OfTheMonth=function(){return`, %s miesiąca`},e.prototype.commaX0ThroughX1=function(){return`, od %s do %s`},e.prototype.commaAndX0ThroughX1=function(){return`, i od %s do %s`},e.prototype.everyHour=function(){return`co godzinę`},e.prototype.everyMinute=function(){return`co minutę`},e.prototype.everyMinuteBetweenX0AndX1=function(){return`Co minutę od %s do %s`},e.prototype.everySecond=function(){return`co sekundę`},e.prototype.everyX0Hours=function(){return`co %s godzin`},e.prototype.everyX0Minutes=function(){return`co %s minut`},e.prototype.everyX0Seconds=function(){return`co %s sekund`},e.prototype.fifth=function(){return`piąty`},e.prototype.first=function(){return`pierwszy`},e.prototype.firstWeekday=function(){return`pierwszy dzień roboczy`},e.prototype.fourth=function(){return`czwarty`},e.prototype.minutesX0ThroughX1PastTheHour=function(){return`minuty od %s do %s`},e.prototype.second=function(){return`drugi`},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return`sekundy od %s do %s`},e.prototype.spaceAnd=function(){return` i`},e.prototype.spaceX0OfTheMonth=function(){return` %s miesiąca`},e.prototype.lastDay=function(){return`ostatni dzień`},e.prototype.third=function(){return`trzeci`},e.prototype.weekdayNearestDayX0=function(){return`dzień roboczy najbliższy %s-ego dnia`},e.prototype.commaStartingX0=function(){return`, startowy %s`},e.prototype.daysOfTheWeek=function(){return[`niedziela`,`poniedziałek`,`wtorek`,`środa`,`czwartek`,`piątek`,`sobota`]},e.prototype.monthsOfTheYear=function(){return[`styczeń`,`luty`,`marzec`,`kwiecień`,`maj`,`czerwiec`,`lipiec`,`sierpień`,`wrzesień`,`październik`,`listopad`,`grudzień`]},e.prototype.onTheHour=function(){return`o pełnej godzinie`},e}();return s.pl=c,o().locales.pl=new c,i})())}));PH(),FH(),IH(),LH(),RH(),zH(),BH(),VH(),HH(),UH(),B.Component;function WH(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}var GH=new Map([[`1km`,`application/vnd.1000minds.decision-model+xml`],[`3dml`,`text/vnd.in3d.3dml`],[`3ds`,`image/x-3ds`],[`3g2`,`video/3gpp2`],[`3gp`,`video/3gp`],[`3gpp`,`video/3gpp`],[`3mf`,`model/3mf`],[`7z`,`application/x-7z-compressed`],[`7zip`,`application/x-7z-compressed`],[`123`,`application/vnd.lotus-1-2-3`],[`aab`,`application/x-authorware-bin`],[`aac`,`audio/x-acc`],[`aam`,`application/x-authorware-map`],[`aas`,`application/x-authorware-seg`],[`abw`,`application/x-abiword`],[`ac`,`application/vnd.nokia.n-gage.ac+xml`],[`ac3`,`audio/ac3`],[`acc`,`application/vnd.americandynamics.acc`],[`ace`,`application/x-ace-compressed`],[`acu`,`application/vnd.acucobol`],[`acutc`,`application/vnd.acucorp`],[`adp`,`audio/adpcm`],[`aep`,`application/vnd.audiograph`],[`afm`,`application/x-font-type1`],[`afp`,`application/vnd.ibm.modcap`],[`ahead`,`application/vnd.ahead.space`],[`ai`,`application/pdf`],[`aif`,`audio/x-aiff`],[`aifc`,`audio/x-aiff`],[`aiff`,`audio/x-aiff`],[`air`,`application/vnd.adobe.air-application-installer-package+zip`],[`ait`,`application/vnd.dvb.ait`],[`ami`,`application/vnd.amiga.ami`],[`amr`,`audio/amr`],[`apk`,`application/vnd.android.package-archive`],[`apng`,`image/apng`],[`appcache`,`text/cache-manifest`],[`application`,`application/x-ms-application`],[`apr`,`application/vnd.lotus-approach`],[`arc`,`application/x-freearc`],[`arj`,`application/x-arj`],[`asc`,`application/pgp-signature`],[`asf`,`video/x-ms-asf`],[`asm`,`text/x-asm`],[`aso`,`application/vnd.accpac.simply.aso`],[`asx`,`video/x-ms-asf`],[`atc`,`application/vnd.acucorp`],[`atom`,`application/atom+xml`],[`atomcat`,`application/atomcat+xml`],[`atomdeleted`,`application/atomdeleted+xml`],[`atomsvc`,`application/atomsvc+xml`],[`atx`,`application/vnd.antix.game-component`],[`au`,`audio/x-au`],[`avi`,`video/x-msvideo`],[`avif`,`image/avif`],[`aw`,`application/applixware`],[`azf`,`application/vnd.airzip.filesecure.azf`],[`azs`,`application/vnd.airzip.filesecure.azs`],[`azv`,`image/vnd.airzip.accelerator.azv`],[`azw`,`application/vnd.amazon.ebook`],[`b16`,`image/vnd.pco.b16`],[`bat`,`application/x-msdownload`],[`bcpio`,`application/x-bcpio`],[`bdf`,`application/x-font-bdf`],[`bdm`,`application/vnd.syncml.dm+wbxml`],[`bdoc`,`application/x-bdoc`],[`bed`,`application/vnd.realvnc.bed`],[`bh2`,`application/vnd.fujitsu.oasysprs`],[`bin`,`application/octet-stream`],[`blb`,`application/x-blorb`],[`blorb`,`application/x-blorb`],[`bmi`,`application/vnd.bmi`],[`bmml`,`application/vnd.balsamiq.bmml+xml`],[`bmp`,`image/bmp`],[`book`,`application/vnd.framemaker`],[`box`,`application/vnd.previewsystems.box`],[`boz`,`application/x-bzip2`],[`bpk`,`application/octet-stream`],[`bpmn`,`application/octet-stream`],[`bsp`,`model/vnd.valve.source.compiled-map`],[`btif`,`image/prs.btif`],[`buffer`,`application/octet-stream`],[`bz`,`application/x-bzip`],[`bz2`,`application/x-bzip2`],[`c`,`text/x-c`],[`c4d`,`application/vnd.clonk.c4group`],[`c4f`,`application/vnd.clonk.c4group`],[`c4g`,`application/vnd.clonk.c4group`],[`c4p`,`application/vnd.clonk.c4group`],[`c4u`,`application/vnd.clonk.c4group`],[`c11amc`,`application/vnd.cluetrust.cartomobile-config`],[`c11amz`,`application/vnd.cluetrust.cartomobile-config-pkg`],[`cab`,`application/vnd.ms-cab-compressed`],[`caf`,`audio/x-caf`],[`cap`,`application/vnd.tcpdump.pcap`],[`car`,`application/vnd.curl.car`],[`cat`,`application/vnd.ms-pki.seccat`],[`cb7`,`application/x-cbr`],[`cba`,`application/x-cbr`],[`cbr`,`application/x-cbr`],[`cbt`,`application/x-cbr`],[`cbz`,`application/x-cbr`],[`cc`,`text/x-c`],[`cco`,`application/x-cocoa`],[`cct`,`application/x-director`],[`ccxml`,`application/ccxml+xml`],[`cdbcmsg`,`application/vnd.contact.cmsg`],[`cda`,`application/x-cdf`],[`cdf`,`application/x-netcdf`],[`cdfx`,`application/cdfx+xml`],[`cdkey`,`application/vnd.mediastation.cdkey`],[`cdmia`,`application/cdmi-capability`],[`cdmic`,`application/cdmi-container`],[`cdmid`,`application/cdmi-domain`],[`cdmio`,`application/cdmi-object`],[`cdmiq`,`application/cdmi-queue`],[`cdr`,`application/cdr`],[`cdx`,`chemical/x-cdx`],[`cdxml`,`application/vnd.chemdraw+xml`],[`cdy`,`application/vnd.cinderella`],[`cer`,`application/pkix-cert`],[`cfs`,`application/x-cfs-compressed`],[`cgm`,`image/cgm`],[`chat`,`application/x-chat`],[`chm`,`application/vnd.ms-htmlhelp`],[`chrt`,`application/vnd.kde.kchart`],[`cif`,`chemical/x-cif`],[`cii`,`application/vnd.anser-web-certificate-issue-initiation`],[`cil`,`application/vnd.ms-artgalry`],[`cjs`,`application/node`],[`cla`,`application/vnd.claymore`],[`class`,`application/octet-stream`],[`clkk`,`application/vnd.crick.clicker.keyboard`],[`clkp`,`application/vnd.crick.clicker.palette`],[`clkt`,`application/vnd.crick.clicker.template`],[`clkw`,`application/vnd.crick.clicker.wordbank`],[`clkx`,`application/vnd.crick.clicker`],[`clp`,`application/x-msclip`],[`cmc`,`application/vnd.cosmocaller`],[`cmdf`,`chemical/x-cmdf`],[`cml`,`chemical/x-cml`],[`cmp`,`application/vnd.yellowriver-custom-menu`],[`cmx`,`image/x-cmx`],[`cod`,`application/vnd.rim.cod`],[`coffee`,`text/coffeescript`],[`com`,`application/x-msdownload`],[`conf`,`text/plain`],[`cpio`,`application/x-cpio`],[`cpp`,`text/x-c`],[`cpt`,`application/mac-compactpro`],[`crd`,`application/x-mscardfile`],[`crl`,`application/pkix-crl`],[`crt`,`application/x-x509-ca-cert`],[`crx`,`application/x-chrome-extension`],[`cryptonote`,`application/vnd.rig.cryptonote`],[`csh`,`application/x-csh`],[`csl`,`application/vnd.citationstyles.style+xml`],[`csml`,`chemical/x-csml`],[`csp`,`application/vnd.commonspace`],[`csr`,`application/octet-stream`],[`css`,`text/css`],[`cst`,`application/x-director`],[`csv`,`text/csv`],[`cu`,`application/cu-seeme`],[`curl`,`text/vnd.curl`],[`cww`,`application/prs.cww`],[`cxt`,`application/x-director`],[`cxx`,`text/x-c`],[`dae`,`model/vnd.collada+xml`],[`daf`,`application/vnd.mobius.daf`],[`dart`,`application/vnd.dart`],[`dataless`,`application/vnd.fdsn.seed`],[`davmount`,`application/davmount+xml`],[`dbf`,`application/vnd.dbf`],[`dbk`,`application/docbook+xml`],[`dcr`,`application/x-director`],[`dcurl`,`text/vnd.curl.dcurl`],[`dd2`,`application/vnd.oma.dd2+xml`],[`ddd`,`application/vnd.fujixerox.ddd`],[`ddf`,`application/vnd.syncml.dmddf+xml`],[`dds`,`image/vnd.ms-dds`],[`deb`,`application/x-debian-package`],[`def`,`text/plain`],[`deploy`,`application/octet-stream`],[`der`,`application/x-x509-ca-cert`],[`dfac`,`application/vnd.dreamfactory`],[`dgc`,`application/x-dgc-compressed`],[`dic`,`text/x-c`],[`dir`,`application/x-director`],[`dis`,`application/vnd.mobius.dis`],[`disposition-notification`,`message/disposition-notification`],[`dist`,`application/octet-stream`],[`distz`,`application/octet-stream`],[`djv`,`image/vnd.djvu`],[`djvu`,`image/vnd.djvu`],[`dll`,`application/octet-stream`],[`dmg`,`application/x-apple-diskimage`],[`dmn`,`application/octet-stream`],[`dmp`,`application/vnd.tcpdump.pcap`],[`dms`,`application/octet-stream`],[`dna`,`application/vnd.dna`],[`doc`,`application/msword`],[`docm`,`application/vnd.ms-word.template.macroEnabled.12`],[`docx`,`application/vnd.openxmlformats-officedocument.wordprocessingml.document`],[`dot`,`application/msword`],[`dotm`,`application/vnd.ms-word.template.macroEnabled.12`],[`dotx`,`application/vnd.openxmlformats-officedocument.wordprocessingml.template`],[`dp`,`application/vnd.osgi.dp`],[`dpg`,`application/vnd.dpgraph`],[`dra`,`audio/vnd.dra`],[`drle`,`image/dicom-rle`],[`dsc`,`text/prs.lines.tag`],[`dssc`,`application/dssc+der`],[`dtb`,`application/x-dtbook+xml`],[`dtd`,`application/xml-dtd`],[`dts`,`audio/vnd.dts`],[`dtshd`,`audio/vnd.dts.hd`],[`dump`,`application/octet-stream`],[`dvb`,`video/vnd.dvb.file`],[`dvi`,`application/x-dvi`],[`dwd`,`application/atsc-dwd+xml`],[`dwf`,`model/vnd.dwf`],[`dwg`,`image/vnd.dwg`],[`dxf`,`image/vnd.dxf`],[`dxp`,`application/vnd.spotfire.dxp`],[`dxr`,`application/x-director`],[`ear`,`application/java-archive`],[`ecelp4800`,`audio/vnd.nuera.ecelp4800`],[`ecelp7470`,`audio/vnd.nuera.ecelp7470`],[`ecelp9600`,`audio/vnd.nuera.ecelp9600`],[`ecma`,`application/ecmascript`],[`edm`,`application/vnd.novadigm.edm`],[`edx`,`application/vnd.novadigm.edx`],[`efif`,`application/vnd.picsel`],[`ei6`,`application/vnd.pg.osasli`],[`elc`,`application/octet-stream`],[`emf`,`image/emf`],[`eml`,`message/rfc822`],[`emma`,`application/emma+xml`],[`emotionml`,`application/emotionml+xml`],[`emz`,`application/x-msmetafile`],[`eol`,`audio/vnd.digital-winds`],[`eot`,`application/vnd.ms-fontobject`],[`eps`,`application/postscript`],[`epub`,`application/epub+zip`],[`es`,`application/ecmascript`],[`es3`,`application/vnd.eszigno3+xml`],[`esa`,`application/vnd.osgi.subsystem`],[`esf`,`application/vnd.epson.esf`],[`et3`,`application/vnd.eszigno3+xml`],[`etx`,`text/x-setext`],[`eva`,`application/x-eva`],[`evy`,`application/x-envoy`],[`exe`,`application/octet-stream`],[`exi`,`application/exi`],[`exp`,`application/express`],[`exr`,`image/aces`],[`ext`,`application/vnd.novadigm.ext`],[`ez`,`application/andrew-inset`],[`ez2`,`application/vnd.ezpix-album`],[`ez3`,`application/vnd.ezpix-package`],[`f`,`text/x-fortran`],[`f4v`,`video/mp4`],[`f77`,`text/x-fortran`],[`f90`,`text/x-fortran`],[`fbs`,`image/vnd.fastbidsheet`],[`fcdt`,`application/vnd.adobe.formscentral.fcdt`],[`fcs`,`application/vnd.isac.fcs`],[`fdf`,`application/vnd.fdf`],[`fdt`,`application/fdt+xml`],[`fe_launch`,`application/vnd.denovo.fcselayout-link`],[`fg5`,`application/vnd.fujitsu.oasysgp`],[`fgd`,`application/x-director`],[`fh`,`image/x-freehand`],[`fh4`,`image/x-freehand`],[`fh5`,`image/x-freehand`],[`fh7`,`image/x-freehand`],[`fhc`,`image/x-freehand`],[`fig`,`application/x-xfig`],[`fits`,`image/fits`],[`flac`,`audio/x-flac`],[`fli`,`video/x-fli`],[`flo`,`application/vnd.micrografx.flo`],[`flv`,`video/x-flv`],[`flw`,`application/vnd.kde.kivio`],[`flx`,`text/vnd.fmi.flexstor`],[`fly`,`text/vnd.fly`],[`fm`,`application/vnd.framemaker`],[`fnc`,`application/vnd.frogans.fnc`],[`fo`,`application/vnd.software602.filler.form+xml`],[`for`,`text/x-fortran`],[`fpx`,`image/vnd.fpx`],[`frame`,`application/vnd.framemaker`],[`fsc`,`application/vnd.fsc.weblaunch`],[`fst`,`image/vnd.fst`],[`ftc`,`application/vnd.fluxtime.clip`],[`fti`,`application/vnd.anser-web-funds-transfer-initiation`],[`fvt`,`video/vnd.fvt`],[`fxp`,`application/vnd.adobe.fxp`],[`fxpl`,`application/vnd.adobe.fxp`],[`fzs`,`application/vnd.fuzzysheet`],[`g2w`,`application/vnd.geoplan`],[`g3`,`image/g3fax`],[`g3w`,`application/vnd.geospace`],[`gac`,`application/vnd.groove-account`],[`gam`,`application/x-tads`],[`gbr`,`application/rpki-ghostbusters`],[`gca`,`application/x-gca-compressed`],[`gdl`,`model/vnd.gdl`],[`gdoc`,`application/vnd.google-apps.document`],[`geo`,`application/vnd.dynageo`],[`geojson`,`application/geo+json`],[`gex`,`application/vnd.geometry-explorer`],[`ggb`,`application/vnd.geogebra.file`],[`ggt`,`application/vnd.geogebra.tool`],[`ghf`,`application/vnd.groove-help`],[`gif`,`image/gif`],[`gim`,`application/vnd.groove-identity-message`],[`glb`,`model/gltf-binary`],[`gltf`,`model/gltf+json`],[`gml`,`application/gml+xml`],[`gmx`,`application/vnd.gmx`],[`gnumeric`,`application/x-gnumeric`],[`gpg`,`application/gpg-keys`],[`gph`,`application/vnd.flographit`],[`gpx`,`application/gpx+xml`],[`gqf`,`application/vnd.grafeq`],[`gqs`,`application/vnd.grafeq`],[`gram`,`application/srgs`],[`gramps`,`application/x-gramps-xml`],[`gre`,`application/vnd.geometry-explorer`],[`grv`,`application/vnd.groove-injector`],[`grxml`,`application/srgs+xml`],[`gsf`,`application/x-font-ghostscript`],[`gsheet`,`application/vnd.google-apps.spreadsheet`],[`gslides`,`application/vnd.google-apps.presentation`],[`gtar`,`application/x-gtar`],[`gtm`,`application/vnd.groove-tool-message`],[`gtw`,`model/vnd.gtw`],[`gv`,`text/vnd.graphviz`],[`gxf`,`application/gxf`],[`gxt`,`application/vnd.geonext`],[`gz`,`application/gzip`],[`gzip`,`application/gzip`],[`h`,`text/x-c`],[`h261`,`video/h261`],[`h263`,`video/h263`],[`h264`,`video/h264`],[`hal`,`application/vnd.hal+xml`],[`hbci`,`application/vnd.hbci`],[`hbs`,`text/x-handlebars-template`],[`hdd`,`application/x-virtualbox-hdd`],[`hdf`,`application/x-hdf`],[`heic`,`image/heic`],[`heics`,`image/heic-sequence`],[`heif`,`image/heif`],[`heifs`,`image/heif-sequence`],[`hej2`,`image/hej2k`],[`held`,`application/atsc-held+xml`],[`hh`,`text/x-c`],[`hjson`,`application/hjson`],[`hlp`,`application/winhlp`],[`hpgl`,`application/vnd.hp-hpgl`],[`hpid`,`application/vnd.hp-hpid`],[`hps`,`application/vnd.hp-hps`],[`hqx`,`application/mac-binhex40`],[`hsj2`,`image/hsj2`],[`htc`,`text/x-component`],[`htke`,`application/vnd.kenameaapp`],[`htm`,`text/html`],[`html`,`text/html`],[`hvd`,`application/vnd.yamaha.hv-dic`],[`hvp`,`application/vnd.yamaha.hv-voice`],[`hvs`,`application/vnd.yamaha.hv-script`],[`i2g`,`application/vnd.intergeo`],[`icc`,`application/vnd.iccprofile`],[`ice`,`x-conference/x-cooltalk`],[`icm`,`application/vnd.iccprofile`],[`ico`,`image/x-icon`],[`ics`,`text/calendar`],[`ief`,`image/ief`],[`ifb`,`text/calendar`],[`ifm`,`application/vnd.shana.informed.formdata`],[`iges`,`model/iges`],[`igl`,`application/vnd.igloader`],[`igm`,`application/vnd.insors.igm`],[`igs`,`model/iges`],[`igx`,`application/vnd.micrografx.igx`],[`iif`,`application/vnd.shana.informed.interchange`],[`img`,`application/octet-stream`],[`imp`,`application/vnd.accpac.simply.imp`],[`ims`,`application/vnd.ms-ims`],[`in`,`text/plain`],[`ini`,`text/plain`],[`ink`,`application/inkml+xml`],[`inkml`,`application/inkml+xml`],[`install`,`application/x-install-instructions`],[`iota`,`application/vnd.astraea-software.iota`],[`ipfix`,`application/ipfix`],[`ipk`,`application/vnd.shana.informed.package`],[`irm`,`application/vnd.ibm.rights-management`],[`irp`,`application/vnd.irepository.package+xml`],[`iso`,`application/x-iso9660-image`],[`itp`,`application/vnd.shana.informed.formtemplate`],[`its`,`application/its+xml`],[`ivp`,`application/vnd.immervision-ivp`],[`ivu`,`application/vnd.immervision-ivu`],[`jad`,`text/vnd.sun.j2me.app-descriptor`],[`jade`,`text/jade`],[`jam`,`application/vnd.jam`],[`jar`,`application/java-archive`],[`jardiff`,`application/x-java-archive-diff`],[`java`,`text/x-java-source`],[`jhc`,`image/jphc`],[`jisp`,`application/vnd.jisp`],[`jls`,`image/jls`],[`jlt`,`application/vnd.hp-jlyt`],[`jng`,`image/x-jng`],[`jnlp`,`application/x-java-jnlp-file`],[`joda`,`application/vnd.joost.joda-archive`],[`jp2`,`image/jp2`],[`jpe`,`image/jpeg`],[`jpeg`,`image/jpeg`],[`jpf`,`image/jpx`],[`jpg`,`image/jpeg`],[`jpg2`,`image/jp2`],[`jpgm`,`video/jpm`],[`jpgv`,`video/jpeg`],[`jph`,`image/jph`],[`jpm`,`video/jpm`],[`jpx`,`image/jpx`],[`js`,`application/javascript`],[`json`,`application/json`],[`json5`,`application/json5`],[`jsonld`,`application/ld+json`],[`jsonl`,`application/jsonl`],[`jsonml`,`application/jsonml+json`],[`jsx`,`text/jsx`],[`jxr`,`image/jxr`],[`jxra`,`image/jxra`],[`jxrs`,`image/jxrs`],[`jxs`,`image/jxs`],[`jxsc`,`image/jxsc`],[`jxsi`,`image/jxsi`],[`jxss`,`image/jxss`],[`kar`,`audio/midi`],[`karbon`,`application/vnd.kde.karbon`],[`kdb`,`application/octet-stream`],[`kdbx`,`application/x-keepass2`],[`key`,`application/x-iwork-keynote-sffkey`],[`kfo`,`application/vnd.kde.kformula`],[`kia`,`application/vnd.kidspiration`],[`kml`,`application/vnd.google-earth.kml+xml`],[`kmz`,`application/vnd.google-earth.kmz`],[`kne`,`application/vnd.kinar`],[`knp`,`application/vnd.kinar`],[`kon`,`application/vnd.kde.kontour`],[`kpr`,`application/vnd.kde.kpresenter`],[`kpt`,`application/vnd.kde.kpresenter`],[`kpxx`,`application/vnd.ds-keypoint`],[`ksp`,`application/vnd.kde.kspread`],[`ktr`,`application/vnd.kahootz`],[`ktx`,`image/ktx`],[`ktx2`,`image/ktx2`],[`ktz`,`application/vnd.kahootz`],[`kwd`,`application/vnd.kde.kword`],[`kwt`,`application/vnd.kde.kword`],[`lasxml`,`application/vnd.las.las+xml`],[`latex`,`application/x-latex`],[`lbd`,`application/vnd.llamagraphics.life-balance.desktop`],[`lbe`,`application/vnd.llamagraphics.life-balance.exchange+xml`],[`les`,`application/vnd.hhe.lesson-player`],[`less`,`text/less`],[`lgr`,`application/lgr+xml`],[`lha`,`application/octet-stream`],[`link66`,`application/vnd.route66.link66+xml`],[`list`,`text/plain`],[`list3820`,`application/vnd.ibm.modcap`],[`listafp`,`application/vnd.ibm.modcap`],[`litcoffee`,`text/coffeescript`],[`lnk`,`application/x-ms-shortcut`],[`log`,`text/plain`],[`lostxml`,`application/lost+xml`],[`lrf`,`application/octet-stream`],[`lrm`,`application/vnd.ms-lrm`],[`ltf`,`application/vnd.frogans.ltf`],[`lua`,`text/x-lua`],[`luac`,`application/x-lua-bytecode`],[`lvp`,`audio/vnd.lucent.voice`],[`lwp`,`application/vnd.lotus-wordpro`],[`lzh`,`application/octet-stream`],[`m1v`,`video/mpeg`],[`m2a`,`audio/mpeg`],[`m2v`,`video/mpeg`],[`m3a`,`audio/mpeg`],[`m3u`,`text/plain`],[`m3u8`,`application/vnd.apple.mpegurl`],[`m4a`,`audio/x-m4a`],[`m4p`,`application/mp4`],[`m4s`,`video/iso.segment`],[`m4u`,`application/vnd.mpegurl`],[`m4v`,`video/x-m4v`],[`m13`,`application/x-msmediaview`],[`m14`,`application/x-msmediaview`],[`m21`,`application/mp21`],[`ma`,`application/mathematica`],[`mads`,`application/mads+xml`],[`maei`,`application/mmt-aei+xml`],[`mag`,`application/vnd.ecowin.chart`],[`maker`,`application/vnd.framemaker`],[`man`,`text/troff`],[`manifest`,`text/cache-manifest`],[`map`,`application/json`],[`mar`,`application/octet-stream`],[`markdown`,`text/markdown`],[`mathml`,`application/mathml+xml`],[`mb`,`application/mathematica`],[`mbk`,`application/vnd.mobius.mbk`],[`mbox`,`application/mbox`],[`mc1`,`application/vnd.medcalcdata`],[`mcd`,`application/vnd.mcd`],[`mcurl`,`text/vnd.curl.mcurl`],[`md`,`text/markdown`],[`mdb`,`application/x-msaccess`],[`mdi`,`image/vnd.ms-modi`],[`mdx`,`text/mdx`],[`me`,`text/troff`],[`mesh`,`model/mesh`],[`meta4`,`application/metalink4+xml`],[`metalink`,`application/metalink+xml`],[`mets`,`application/mets+xml`],[`mfm`,`application/vnd.mfmp`],[`mft`,`application/rpki-manifest`],[`mgp`,`application/vnd.osgeo.mapguide.package`],[`mgz`,`application/vnd.proteus.magazine`],[`mid`,`audio/midi`],[`midi`,`audio/midi`],[`mie`,`application/x-mie`],[`mif`,`application/vnd.mif`],[`mime`,`message/rfc822`],[`mj2`,`video/mj2`],[`mjp2`,`video/mj2`],[`mjs`,`application/javascript`],[`mk3d`,`video/x-matroska`],[`mka`,`audio/x-matroska`],[`mkd`,`text/x-markdown`],[`mks`,`video/x-matroska`],[`mkv`,`video/x-matroska`],[`mlp`,`application/vnd.dolby.mlp`],[`mmd`,`application/vnd.chipnuts.karaoke-mmd`],[`mmf`,`application/vnd.smaf`],[`mml`,`text/mathml`],[`mmr`,`image/vnd.fujixerox.edmics-mmr`],[`mng`,`video/x-mng`],[`mny`,`application/x-msmoney`],[`mobi`,`application/x-mobipocket-ebook`],[`mods`,`application/mods+xml`],[`mov`,`video/quicktime`],[`movie`,`video/x-sgi-movie`],[`mp2`,`audio/mpeg`],[`mp2a`,`audio/mpeg`],[`mp3`,`audio/mpeg`],[`mp4`,`video/mp4`],[`mp4a`,`audio/mp4`],[`mp4s`,`application/mp4`],[`mp4v`,`video/mp4`],[`mp21`,`application/mp21`],[`mpc`,`application/vnd.mophun.certificate`],[`mpd`,`application/dash+xml`],[`mpe`,`video/mpeg`],[`mpeg`,`video/mpeg`],[`mpg`,`video/mpeg`],[`mpg4`,`video/mp4`],[`mpga`,`audio/mpeg`],[`mpkg`,`application/vnd.apple.installer+xml`],[`mpm`,`application/vnd.blueice.multipass`],[`mpn`,`application/vnd.mophun.application`],[`mpp`,`application/vnd.ms-project`],[`mpt`,`application/vnd.ms-project`],[`mpy`,`application/vnd.ibm.minipay`],[`mqy`,`application/vnd.mobius.mqy`],[`mrc`,`application/marc`],[`mrcx`,`application/marcxml+xml`],[`ms`,`text/troff`],[`mscml`,`application/mediaservercontrol+xml`],[`mseed`,`application/vnd.fdsn.mseed`],[`mseq`,`application/vnd.mseq`],[`msf`,`application/vnd.epson.msf`],[`msg`,`application/vnd.ms-outlook`],[`msh`,`model/mesh`],[`msi`,`application/x-msdownload`],[`msl`,`application/vnd.mobius.msl`],[`msm`,`application/octet-stream`],[`msp`,`application/octet-stream`],[`msty`,`application/vnd.muvee.style`],[`mtl`,`model/mtl`],[`mts`,`model/vnd.mts`],[`mus`,`application/vnd.musician`],[`musd`,`application/mmt-usd+xml`],[`musicxml`,`application/vnd.recordare.musicxml+xml`],[`mvb`,`application/x-msmediaview`],[`mvt`,`application/vnd.mapbox-vector-tile`],[`mwf`,`application/vnd.mfer`],[`mxf`,`application/mxf`],[`mxl`,`application/vnd.recordare.musicxml`],[`mxmf`,`audio/mobile-xmf`],[`mxml`,`application/xv+xml`],[`mxs`,`application/vnd.triscape.mxs`],[`mxu`,`video/vnd.mpegurl`],[`n-gage`,`application/vnd.nokia.n-gage.symbian.install`],[`n3`,`text/n3`],[`nb`,`application/mathematica`],[`nbp`,`application/vnd.wolfram.player`],[`nc`,`application/x-netcdf`],[`ncx`,`application/x-dtbncx+xml`],[`nfo`,`text/x-nfo`],[`ngdat`,`application/vnd.nokia.n-gage.data`],[`nitf`,`application/vnd.nitf`],[`nlu`,`application/vnd.neurolanguage.nlu`],[`nml`,`application/vnd.enliven`],[`nnd`,`application/vnd.noblenet-directory`],[`nns`,`application/vnd.noblenet-sealer`],[`nnw`,`application/vnd.noblenet-web`],[`npx`,`image/vnd.net-fpx`],[`nq`,`application/n-quads`],[`nsc`,`application/x-conference`],[`nsf`,`application/vnd.lotus-notes`],[`nt`,`application/n-triples`],[`ntf`,`application/vnd.nitf`],[`numbers`,`application/x-iwork-numbers-sffnumbers`],[`nzb`,`application/x-nzb`],[`oa2`,`application/vnd.fujitsu.oasys2`],[`oa3`,`application/vnd.fujitsu.oasys3`],[`oas`,`application/vnd.fujitsu.oasys`],[`obd`,`application/x-msbinder`],[`obgx`,`application/vnd.openblox.game+xml`],[`obj`,`model/obj`],[`oda`,`application/oda`],[`odb`,`application/vnd.oasis.opendocument.database`],[`odc`,`application/vnd.oasis.opendocument.chart`],[`odf`,`application/vnd.oasis.opendocument.formula`],[`odft`,`application/vnd.oasis.opendocument.formula-template`],[`odg`,`application/vnd.oasis.opendocument.graphics`],[`odi`,`application/vnd.oasis.opendocument.image`],[`odm`,`application/vnd.oasis.opendocument.text-master`],[`odp`,`application/vnd.oasis.opendocument.presentation`],[`ods`,`application/vnd.oasis.opendocument.spreadsheet`],[`odt`,`application/vnd.oasis.opendocument.text`],[`oga`,`audio/ogg`],[`ogex`,`model/vnd.opengex`],[`ogg`,`audio/ogg`],[`ogv`,`video/ogg`],[`ogx`,`application/ogg`],[`omdoc`,`application/omdoc+xml`],[`onepkg`,`application/onenote`],[`onetmp`,`application/onenote`],[`onetoc`,`application/onenote`],[`onetoc2`,`application/onenote`],[`opf`,`application/oebps-package+xml`],[`opml`,`text/x-opml`],[`oprc`,`application/vnd.palm`],[`opus`,`audio/ogg`],[`org`,`text/x-org`],[`osf`,`application/vnd.yamaha.openscoreformat`],[`osfpvg`,`application/vnd.yamaha.openscoreformat.osfpvg+xml`],[`osm`,`application/vnd.openstreetmap.data+xml`],[`otc`,`application/vnd.oasis.opendocument.chart-template`],[`otf`,`font/otf`],[`otg`,`application/vnd.oasis.opendocument.graphics-template`],[`oth`,`application/vnd.oasis.opendocument.text-web`],[`oti`,`application/vnd.oasis.opendocument.image-template`],[`otp`,`application/vnd.oasis.opendocument.presentation-template`],[`ots`,`application/vnd.oasis.opendocument.spreadsheet-template`],[`ott`,`application/vnd.oasis.opendocument.text-template`],[`ova`,`application/x-virtualbox-ova`],[`ovf`,`application/x-virtualbox-ovf`],[`owl`,`application/rdf+xml`],[`oxps`,`application/oxps`],[`oxt`,`application/vnd.openofficeorg.extension`],[`p`,`text/x-pascal`],[`p7a`,`application/x-pkcs7-signature`],[`p7b`,`application/x-pkcs7-certificates`],[`p7c`,`application/pkcs7-mime`],[`p7m`,`application/pkcs7-mime`],[`p7r`,`application/x-pkcs7-certreqresp`],[`p7s`,`application/pkcs7-signature`],[`p8`,`application/pkcs8`],[`p10`,`application/x-pkcs10`],[`p12`,`application/x-pkcs12`],[`pac`,`application/x-ns-proxy-autoconfig`],[`pages`,`application/x-iwork-pages-sffpages`],[`pas`,`text/x-pascal`],[`paw`,`application/vnd.pawaafile`],[`pbd`,`application/vnd.powerbuilder6`],[`pbm`,`image/x-portable-bitmap`],[`pcap`,`application/vnd.tcpdump.pcap`],[`pcf`,`application/x-font-pcf`],[`pcl`,`application/vnd.hp-pcl`],[`pclxl`,`application/vnd.hp-pclxl`],[`pct`,`image/x-pict`],[`pcurl`,`application/vnd.curl.pcurl`],[`pcx`,`image/x-pcx`],[`pdb`,`application/x-pilot`],[`pde`,`text/x-processing`],[`pdf`,`application/pdf`],[`pem`,`application/x-x509-user-cert`],[`pfa`,`application/x-font-type1`],[`pfb`,`application/x-font-type1`],[`pfm`,`application/x-font-type1`],[`pfr`,`application/font-tdpfr`],[`pfx`,`application/x-pkcs12`],[`pgm`,`image/x-portable-graymap`],[`pgn`,`application/x-chess-pgn`],[`pgp`,`application/pgp`],[`php`,`application/x-httpd-php`],[`php3`,`application/x-httpd-php`],[`php4`,`application/x-httpd-php`],[`phps`,`application/x-httpd-php-source`],[`phtml`,`application/x-httpd-php`],[`pic`,`image/x-pict`],[`pkg`,`application/octet-stream`],[`pki`,`application/pkixcmp`],[`pkipath`,`application/pkix-pkipath`],[`pkpass`,`application/vnd.apple.pkpass`],[`pl`,`application/x-perl`],[`plb`,`application/vnd.3gpp.pic-bw-large`],[`plc`,`application/vnd.mobius.plc`],[`plf`,`application/vnd.pocketlearn`],[`pls`,`application/pls+xml`],[`pm`,`application/x-perl`],[`pml`,`application/vnd.ctc-posml`],[`png`,`image/png`],[`pnm`,`image/x-portable-anymap`],[`portpkg`,`application/vnd.macports.portpkg`],[`pot`,`application/vnd.ms-powerpoint`],[`potm`,`application/vnd.ms-powerpoint.presentation.macroEnabled.12`],[`potx`,`application/vnd.openxmlformats-officedocument.presentationml.template`],[`ppa`,`application/vnd.ms-powerpoint`],[`ppam`,`application/vnd.ms-powerpoint.addin.macroEnabled.12`],[`ppd`,`application/vnd.cups-ppd`],[`ppm`,`image/x-portable-pixmap`],[`pps`,`application/vnd.ms-powerpoint`],[`ppsm`,`application/vnd.ms-powerpoint.slideshow.macroEnabled.12`],[`ppsx`,`application/vnd.openxmlformats-officedocument.presentationml.slideshow`],[`ppt`,`application/powerpoint`],[`pptm`,`application/vnd.ms-powerpoint.presentation.macroEnabled.12`],[`pptx`,`application/vnd.openxmlformats-officedocument.presentationml.presentation`],[`pqa`,`application/vnd.palm`],[`prc`,`application/x-pilot`],[`pre`,`application/vnd.lotus-freelance`],[`prf`,`application/pics-rules`],[`provx`,`application/provenance+xml`],[`ps`,`application/postscript`],[`psb`,`application/vnd.3gpp.pic-bw-small`],[`psd`,`application/x-photoshop`],[`psf`,`application/x-font-linux-psf`],[`pskcxml`,`application/pskc+xml`],[`pti`,`image/prs.pti`],[`ptid`,`application/vnd.pvi.ptid1`],[`pub`,`application/x-mspublisher`],[`pvb`,`application/vnd.3gpp.pic-bw-var`],[`pwn`,`application/vnd.3m.post-it-notes`],[`pya`,`audio/vnd.ms-playready.media.pya`],[`pyv`,`video/vnd.ms-playready.media.pyv`],[`qam`,`application/vnd.epson.quickanime`],[`qbo`,`application/vnd.intu.qbo`],[`qfx`,`application/vnd.intu.qfx`],[`qps`,`application/vnd.publishare-delta-tree`],[`qt`,`video/quicktime`],[`qwd`,`application/vnd.quark.quarkxpress`],[`qwt`,`application/vnd.quark.quarkxpress`],[`qxb`,`application/vnd.quark.quarkxpress`],[`qxd`,`application/vnd.quark.quarkxpress`],[`qxl`,`application/vnd.quark.quarkxpress`],[`qxt`,`application/vnd.quark.quarkxpress`],[`ra`,`audio/x-realaudio`],[`ram`,`audio/x-pn-realaudio`],[`raml`,`application/raml+yaml`],[`rapd`,`application/route-apd+xml`],[`rar`,`application/x-rar`],[`ras`,`image/x-cmu-raster`],[`rcprofile`,`application/vnd.ipunplugged.rcprofile`],[`rdf`,`application/rdf+xml`],[`rdz`,`application/vnd.data-vision.rdz`],[`relo`,`application/p2p-overlay+xml`],[`rep`,`application/vnd.businessobjects`],[`res`,`application/x-dtbresource+xml`],[`rgb`,`image/x-rgb`],[`rif`,`application/reginfo+xml`],[`rip`,`audio/vnd.rip`],[`ris`,`application/x-research-info-systems`],[`rl`,`application/resource-lists+xml`],[`rlc`,`image/vnd.fujixerox.edmics-rlc`],[`rld`,`application/resource-lists-diff+xml`],[`rm`,`audio/x-pn-realaudio`],[`rmi`,`audio/midi`],[`rmp`,`audio/x-pn-realaudio-plugin`],[`rms`,`application/vnd.jcp.javame.midlet-rms`],[`rmvb`,`application/vnd.rn-realmedia-vbr`],[`rnc`,`application/relax-ng-compact-syntax`],[`rng`,`application/xml`],[`roa`,`application/rpki-roa`],[`roff`,`text/troff`],[`rp9`,`application/vnd.cloanto.rp9`],[`rpm`,`audio/x-pn-realaudio-plugin`],[`rpss`,`application/vnd.nokia.radio-presets`],[`rpst`,`application/vnd.nokia.radio-preset`],[`rq`,`application/sparql-query`],[`rs`,`application/rls-services+xml`],[`rsa`,`application/x-pkcs7`],[`rsat`,`application/atsc-rsat+xml`],[`rsd`,`application/rsd+xml`],[`rsheet`,`application/urc-ressheet+xml`],[`rss`,`application/rss+xml`],[`rtf`,`text/rtf`],[`rtx`,`text/richtext`],[`run`,`application/x-makeself`],[`rusd`,`application/route-usd+xml`],[`rv`,`video/vnd.rn-realvideo`],[`s`,`text/x-asm`],[`s3m`,`audio/s3m`],[`saf`,`application/vnd.yamaha.smaf-audio`],[`sass`,`text/x-sass`],[`sbml`,`application/sbml+xml`],[`sc`,`application/vnd.ibm.secure-container`],[`scd`,`application/x-msschedule`],[`scm`,`application/vnd.lotus-screencam`],[`scq`,`application/scvp-cv-request`],[`scs`,`application/scvp-cv-response`],[`scss`,`text/x-scss`],[`scurl`,`text/vnd.curl.scurl`],[`sda`,`application/vnd.stardivision.draw`],[`sdc`,`application/vnd.stardivision.calc`],[`sdd`,`application/vnd.stardivision.impress`],[`sdkd`,`application/vnd.solent.sdkm+xml`],[`sdkm`,`application/vnd.solent.sdkm+xml`],[`sdp`,`application/sdp`],[`sdw`,`application/vnd.stardivision.writer`],[`sea`,`application/octet-stream`],[`see`,`application/vnd.seemail`],[`seed`,`application/vnd.fdsn.seed`],[`sema`,`application/vnd.sema`],[`semd`,`application/vnd.semd`],[`semf`,`application/vnd.semf`],[`senmlx`,`application/senml+xml`],[`sensmlx`,`application/sensml+xml`],[`ser`,`application/java-serialized-object`],[`setpay`,`application/set-payment-initiation`],[`setreg`,`application/set-registration-initiation`],[`sfd-hdstx`,`application/vnd.hydrostatix.sof-data`],[`sfs`,`application/vnd.spotfire.sfs`],[`sfv`,`text/x-sfv`],[`sgi`,`image/sgi`],[`sgl`,`application/vnd.stardivision.writer-global`],[`sgm`,`text/sgml`],[`sgml`,`text/sgml`],[`sh`,`application/x-sh`],[`shar`,`application/x-shar`],[`shex`,`text/shex`],[`shf`,`application/shf+xml`],[`shtml`,`text/html`],[`sid`,`image/x-mrsid-image`],[`sieve`,`application/sieve`],[`sig`,`application/pgp-signature`],[`sil`,`audio/silk`],[`silo`,`model/mesh`],[`sis`,`application/vnd.symbian.install`],[`sisx`,`application/vnd.symbian.install`],[`sit`,`application/x-stuffit`],[`sitx`,`application/x-stuffitx`],[`siv`,`application/sieve`],[`skd`,`application/vnd.koan`],[`skm`,`application/vnd.koan`],[`skp`,`application/vnd.koan`],[`skt`,`application/vnd.koan`],[`sldm`,`application/vnd.ms-powerpoint.slide.macroenabled.12`],[`sldx`,`application/vnd.openxmlformats-officedocument.presentationml.slide`],[`slim`,`text/slim`],[`slm`,`text/slim`],[`sls`,`application/route-s-tsid+xml`],[`slt`,`application/vnd.epson.salt`],[`sm`,`application/vnd.stepmania.stepchart`],[`smf`,`application/vnd.stardivision.math`],[`smi`,`application/smil`],[`smil`,`application/smil`],[`smv`,`video/x-smv`],[`smzip`,`application/vnd.stepmania.package`],[`snd`,`audio/basic`],[`snf`,`application/x-font-snf`],[`so`,`application/octet-stream`],[`spc`,`application/x-pkcs7-certificates`],[`spdx`,`text/spdx`],[`spf`,`application/vnd.yamaha.smaf-phrase`],[`spl`,`application/x-futuresplash`],[`spot`,`text/vnd.in3d.spot`],[`spp`,`application/scvp-vp-response`],[`spq`,`application/scvp-vp-request`],[`spx`,`audio/ogg`],[`sql`,`application/x-sql`],[`src`,`application/x-wais-source`],[`srt`,`application/x-subrip`],[`sru`,`application/sru+xml`],[`srx`,`application/sparql-results+xml`],[`ssdl`,`application/ssdl+xml`],[`sse`,`application/vnd.kodak-descriptor`],[`ssf`,`application/vnd.epson.ssf`],[`ssml`,`application/ssml+xml`],[`sst`,`application/octet-stream`],[`st`,`application/vnd.sailingtracker.track`],[`stc`,`application/vnd.sun.xml.calc.template`],[`std`,`application/vnd.sun.xml.draw.template`],[`stf`,`application/vnd.wt.stf`],[`sti`,`application/vnd.sun.xml.impress.template`],[`stk`,`application/hyperstudio`],[`stl`,`model/stl`],[`stpx`,`model/step+xml`],[`stpxz`,`model/step-xml+zip`],[`stpz`,`model/step+zip`],[`str`,`application/vnd.pg.format`],[`stw`,`application/vnd.sun.xml.writer.template`],[`styl`,`text/stylus`],[`stylus`,`text/stylus`],[`sub`,`text/vnd.dvb.subtitle`],[`sus`,`application/vnd.sus-calendar`],[`susp`,`application/vnd.sus-calendar`],[`sv4cpio`,`application/x-sv4cpio`],[`sv4crc`,`application/x-sv4crc`],[`svc`,`application/vnd.dvb.service`],[`svd`,`application/vnd.svd`],[`svg`,`image/svg+xml`],[`svgz`,`image/svg+xml`],[`swa`,`application/x-director`],[`swf`,`application/x-shockwave-flash`],[`swi`,`application/vnd.aristanetworks.swi`],[`swidtag`,`application/swid+xml`],[`sxc`,`application/vnd.sun.xml.calc`],[`sxd`,`application/vnd.sun.xml.draw`],[`sxg`,`application/vnd.sun.xml.writer.global`],[`sxi`,`application/vnd.sun.xml.impress`],[`sxm`,`application/vnd.sun.xml.math`],[`sxw`,`application/vnd.sun.xml.writer`],[`t`,`text/troff`],[`t3`,`application/x-t3vm-image`],[`t38`,`image/t38`],[`taglet`,`application/vnd.mynfc`],[`tao`,`application/vnd.tao.intent-module-archive`],[`tap`,`image/vnd.tencent.tap`],[`tar`,`application/x-tar`],[`tcap`,`application/vnd.3gpp2.tcap`],[`tcl`,`application/x-tcl`],[`td`,`application/urc-targetdesc+xml`],[`teacher`,`application/vnd.smart.teacher`],[`tei`,`application/tei+xml`],[`teicorpus`,`application/tei+xml`],[`tex`,`application/x-tex`],[`texi`,`application/x-texinfo`],[`texinfo`,`application/x-texinfo`],[`text`,`text/plain`],[`tfi`,`application/thraud+xml`],[`tfm`,`application/x-tex-tfm`],[`tfx`,`image/tiff-fx`],[`tga`,`image/x-tga`],[`tgz`,`application/x-tar`],[`thmx`,`application/vnd.ms-officetheme`],[`tif`,`image/tiff`],[`tiff`,`image/tiff`],[`tk`,`application/x-tcl`],[`tmo`,`application/vnd.tmobile-livetv`],[`toml`,`application/toml`],[`torrent`,`application/x-bittorrent`],[`tpl`,`application/vnd.groove-tool-template`],[`tpt`,`application/vnd.trid.tpt`],[`tr`,`text/troff`],[`tra`,`application/vnd.trueapp`],[`trig`,`application/trig`],[`trm`,`application/x-msterminal`],[`ts`,`video/mp2t`],[`tsd`,`application/timestamped-data`],[`tsv`,`text/tab-separated-values`],[`ttc`,`font/collection`],[`ttf`,`font/ttf`],[`ttl`,`text/turtle`],[`ttml`,`application/ttml+xml`],[`twd`,`application/vnd.simtech-mindmapper`],[`twds`,`application/vnd.simtech-mindmapper`],[`txd`,`application/vnd.genomatix.tuxedo`],[`txf`,`application/vnd.mobius.txf`],[`txt`,`text/plain`],[`u8dsn`,`message/global-delivery-status`],[`u8hdr`,`message/global-headers`],[`u8mdn`,`message/global-disposition-notification`],[`u8msg`,`message/global`],[`u32`,`application/x-authorware-bin`],[`ubj`,`application/ubjson`],[`udeb`,`application/x-debian-package`],[`ufd`,`application/vnd.ufdl`],[`ufdl`,`application/vnd.ufdl`],[`ulx`,`application/x-glulx`],[`umj`,`application/vnd.umajin`],[`unityweb`,`application/vnd.unity`],[`uoml`,`application/vnd.uoml+xml`],[`uri`,`text/uri-list`],[`uris`,`text/uri-list`],[`urls`,`text/uri-list`],[`usdz`,`model/vnd.usdz+zip`],[`ustar`,`application/x-ustar`],[`utz`,`application/vnd.uiq.theme`],[`uu`,`text/x-uuencode`],[`uva`,`audio/vnd.dece.audio`],[`uvd`,`application/vnd.dece.data`],[`uvf`,`application/vnd.dece.data`],[`uvg`,`image/vnd.dece.graphic`],[`uvh`,`video/vnd.dece.hd`],[`uvi`,`image/vnd.dece.graphic`],[`uvm`,`video/vnd.dece.mobile`],[`uvp`,`video/vnd.dece.pd`],[`uvs`,`video/vnd.dece.sd`],[`uvt`,`application/vnd.dece.ttml+xml`],[`uvu`,`video/vnd.uvvu.mp4`],[`uvv`,`video/vnd.dece.video`],[`uvva`,`audio/vnd.dece.audio`],[`uvvd`,`application/vnd.dece.data`],[`uvvf`,`application/vnd.dece.data`],[`uvvg`,`image/vnd.dece.graphic`],[`uvvh`,`video/vnd.dece.hd`],[`uvvi`,`image/vnd.dece.graphic`],[`uvvm`,`video/vnd.dece.mobile`],[`uvvp`,`video/vnd.dece.pd`],[`uvvs`,`video/vnd.dece.sd`],[`uvvt`,`application/vnd.dece.ttml+xml`],[`uvvu`,`video/vnd.uvvu.mp4`],[`uvvv`,`video/vnd.dece.video`],[`uvvx`,`application/vnd.dece.unspecified`],[`uvvz`,`application/vnd.dece.zip`],[`uvx`,`application/vnd.dece.unspecified`],[`uvz`,`application/vnd.dece.zip`],[`vbox`,`application/x-virtualbox-vbox`],[`vbox-extpack`,`application/x-virtualbox-vbox-extpack`],[`vcard`,`text/vcard`],[`vcd`,`application/x-cdlink`],[`vcf`,`text/x-vcard`],[`vcg`,`application/vnd.groove-vcard`],[`vcs`,`text/x-vcalendar`],[`vcx`,`application/vnd.vcx`],[`vdi`,`application/x-virtualbox-vdi`],[`vds`,`model/vnd.sap.vds`],[`vhd`,`application/x-virtualbox-vhd`],[`vis`,`application/vnd.visionary`],[`viv`,`video/vnd.vivo`],[`vlc`,`application/videolan`],[`vmdk`,`application/x-virtualbox-vmdk`],[`vob`,`video/x-ms-vob`],[`vor`,`application/vnd.stardivision.writer`],[`vox`,`application/x-authorware-bin`],[`vrml`,`model/vrml`],[`vsd`,`application/vnd.visio`],[`vsf`,`application/vnd.vsf`],[`vss`,`application/vnd.visio`],[`vst`,`application/vnd.visio`],[`vsw`,`application/vnd.visio`],[`vtf`,`image/vnd.valve.source.texture`],[`vtt`,`text/vtt`],[`vtu`,`model/vnd.vtu`],[`vxml`,`application/voicexml+xml`],[`w3d`,`application/x-director`],[`wad`,`application/x-doom`],[`wadl`,`application/vnd.sun.wadl+xml`],[`war`,`application/java-archive`],[`wasm`,`application/wasm`],[`wav`,`audio/x-wav`],[`wax`,`audio/x-ms-wax`],[`wbmp`,`image/vnd.wap.wbmp`],[`wbs`,`application/vnd.criticaltools.wbs+xml`],[`wbxml`,`application/wbxml`],[`wcm`,`application/vnd.ms-works`],[`wdb`,`application/vnd.ms-works`],[`wdp`,`image/vnd.ms-photo`],[`weba`,`audio/webm`],[`webapp`,`application/x-web-app-manifest+json`],[`webm`,`video/webm`],[`webmanifest`,`application/manifest+json`],[`webp`,`image/webp`],[`wg`,`application/vnd.pmi.widget`],[`wgt`,`application/widget`],[`wks`,`application/vnd.ms-works`],[`wm`,`video/x-ms-wm`],[`wma`,`audio/x-ms-wma`],[`wmd`,`application/x-ms-wmd`],[`wmf`,`image/wmf`],[`wml`,`text/vnd.wap.wml`],[`wmlc`,`application/wmlc`],[`wmls`,`text/vnd.wap.wmlscript`],[`wmlsc`,`application/vnd.wap.wmlscriptc`],[`wmv`,`video/x-ms-wmv`],[`wmx`,`video/x-ms-wmx`],[`wmz`,`application/x-msmetafile`],[`woff`,`font/woff`],[`woff2`,`font/woff2`],[`word`,`application/msword`],[`wpd`,`application/vnd.wordperfect`],[`wpl`,`application/vnd.ms-wpl`],[`wps`,`application/vnd.ms-works`],[`wqd`,`application/vnd.wqd`],[`wri`,`application/x-mswrite`],[`wrl`,`model/vrml`],[`wsc`,`message/vnd.wfa.wsc`],[`wsdl`,`application/wsdl+xml`],[`wspolicy`,`application/wspolicy+xml`],[`wtb`,`application/vnd.webturbo`],[`wvx`,`video/x-ms-wvx`],[`x3d`,`model/x3d+xml`],[`x3db`,`model/x3d+fastinfoset`],[`x3dbz`,`model/x3d+binary`],[`x3dv`,`model/x3d-vrml`],[`x3dvz`,`model/x3d+vrml`],[`x3dz`,`model/x3d+xml`],[`x32`,`application/x-authorware-bin`],[`x_b`,`model/vnd.parasolid.transmit.binary`],[`x_t`,`model/vnd.parasolid.transmit.text`],[`xaml`,`application/xaml+xml`],[`xap`,`application/x-silverlight-app`],[`xar`,`application/vnd.xara`],[`xav`,`application/xcap-att+xml`],[`xbap`,`application/x-ms-xbap`],[`xbd`,`application/vnd.fujixerox.docuworks.binder`],[`xbm`,`image/x-xbitmap`],[`xca`,`application/xcap-caps+xml`],[`xcs`,`application/calendar+xml`],[`xdf`,`application/xcap-diff+xml`],[`xdm`,`application/vnd.syncml.dm+xml`],[`xdp`,`application/vnd.adobe.xdp+xml`],[`xdssc`,`application/dssc+xml`],[`xdw`,`application/vnd.fujixerox.docuworks`],[`xel`,`application/xcap-el+xml`],[`xenc`,`application/xenc+xml`],[`xer`,`application/patch-ops-error+xml`],[`xfdf`,`application/vnd.adobe.xfdf`],[`xfdl`,`application/vnd.xfdl`],[`xht`,`application/xhtml+xml`],[`xhtml`,`application/xhtml+xml`],[`xhvml`,`application/xv+xml`],[`xif`,`image/vnd.xiff`],[`xl`,`application/excel`],[`xla`,`application/vnd.ms-excel`],[`xlam`,`application/vnd.ms-excel.addin.macroEnabled.12`],[`xlc`,`application/vnd.ms-excel`],[`xlf`,`application/xliff+xml`],[`xlm`,`application/vnd.ms-excel`],[`xls`,`application/vnd.ms-excel`],[`xlsb`,`application/vnd.ms-excel.sheet.binary.macroEnabled.12`],[`xlsm`,`application/vnd.ms-excel.sheet.macroEnabled.12`],[`xlsx`,`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`],[`xlt`,`application/vnd.ms-excel`],[`xltm`,`application/vnd.ms-excel.template.macroEnabled.12`],[`xltx`,`application/vnd.openxmlformats-officedocument.spreadsheetml.template`],[`xlw`,`application/vnd.ms-excel`],[`xm`,`audio/xm`],[`xml`,`application/xml`],[`xns`,`application/xcap-ns+xml`],[`xo`,`application/vnd.olpc-sugar`],[`xop`,`application/xop+xml`],[`xpi`,`application/x-xpinstall`],[`xpl`,`application/xproc+xml`],[`xpm`,`image/x-xpixmap`],[`xpr`,`application/vnd.is-xpr`],[`xps`,`application/vnd.ms-xpsdocument`],[`xpw`,`application/vnd.intercon.formnet`],[`xpx`,`application/vnd.intercon.formnet`],[`xsd`,`application/xml`],[`xsl`,`application/xml`],[`xslt`,`application/xslt+xml`],[`xsm`,`application/vnd.syncml+xml`],[`xspf`,`application/xspf+xml`],[`xul`,`application/vnd.mozilla.xul+xml`],[`xvm`,`application/xv+xml`],[`xvml`,`application/xv+xml`],[`xwd`,`image/x-xwindowdump`],[`xyz`,`chemical/x-xyz`],[`xz`,`application/x-xz`],[`yaml`,`text/yaml`],[`yang`,`application/yang`],[`yin`,`application/yin+xml`],[`yml`,`text/yaml`],[`ymp`,`text/x-suse-ymp`],[`z`,`application/x-compress`],[`z1`,`application/x-zmachine`],[`z2`,`application/x-zmachine`],[`z3`,`application/x-zmachine`],[`z4`,`application/x-zmachine`],[`z5`,`application/x-zmachine`],[`z6`,`application/x-zmachine`],[`z7`,`application/x-zmachine`],[`z8`,`application/x-zmachine`],[`zaz`,`application/vnd.zzazz.deck+xml`],[`zip`,`application/zip`],[`zir`,`application/vnd.zul`],[`zirz`,`application/vnd.zul`],[`zmm`,`application/vnd.handheld-entertainment+xml`],[`zsh`,`text/x-scriptzsh`]]);function KH(e,t,n){let r=qH(e),{webkitRelativePath:i}=e,a=typeof t==`string`?t:typeof i==`string`&&i.length>0?i:`./${e.name}`;return typeof r.path!=`string`&&JH(r,`path`,a),n!==void 0&&Object.defineProperty(r,"handle",{value:n,writable:!1,configurable:!1,enumerable:!0}),JH(r,`relativePath`,a),r}function qH(e){let{name:t}=e;if(t&&t.lastIndexOf(`.`)!==-1&&!e.type){let n=t.split(`.`).pop().toLowerCase(),r=GH.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}function JH(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}var YH=[`.DS_Store`,`Thumbs.db`];function XH(e){return WH(this,void 0,void 0,function*(){return $H(e)&&ZH(e.dataTransfer)?nU(e.dataTransfer,e.type):QH(e)?eU(e):Array.isArray(e)&&e.every(e=>`getFile`in e&&typeof e.getFile==`function`)?tU(e):[]})}function ZH(e){return $H(e)}function QH(e){return $H(e)&&$H(e.target)}function $H(e){return typeof e==`object`&&!!e}function eU(e){return iU(e.target.files).map(e=>KH(e))}function tU(e){return WH(this,void 0,void 0,function*(){return(yield Promise.all(e.map(e=>e.getFile()))).map(e=>KH(e))})}function nU(e,t){return WH(this,void 0,void 0,function*(){if(e.items){let n=iU(e.items).filter(e=>e.kind===`file`);return t===`drop`?rU(oU(yield Promise.all(n.map(aU)))):n}return rU(iU(e.files).map(e=>KH(e)))})}function rU(e){return e.filter(e=>YH.indexOf(e.name)===-1)}function iU(e){if(e===null)return[];let t=[];for(let n=0;n<e.length;n++){let r=e[n];t.push(r)}return t}function aU(e){if(typeof e.webkitGetAsEntry!=`function`)return sU(e);let t=e.webkitGetAsEntry();return t&&t.isDirectory?lU(t):sU(e,t)}function oU(e){return e.reduce((e,t)=>[...e,...Array.isArray(t)?oU(t):[t]],[])}function sU(e,t){return WH(this,void 0,void 0,function*(){if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle==`function`){let t=yield e.getAsFileSystemHandle();if(t===null)throw Error(`${e} is not a File`);if(t!==void 0){let e=yield t.getFile();return e.handle=t,KH(e)}}let n=e.getAsFile();if(!n)throw Error(`${e} is not a File`);return KH(n,t?.fullPath??void 0)})}function cU(e){return WH(this,void 0,void 0,function*(){return e.isDirectory?lU(e):uU(e)})}function lU(e){let t=e.createReader();return new Promise((e,n)=>{let r=[];function i(){t.readEntries(t=>WH(this,void 0,void 0,function*(){if(t.length){let e=Promise.all(t.map(cU));r.push(e),i()}else try{e(yield Promise.all(r))}catch(e){n(e)}}),e=>{n(e)})}i()})}function uU(e){return WH(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(n=>{t(KH(n,e.fullPath))},e=>{n(e)})})})}var dU=c(o((e=>{e.__esModule=!0,e.default=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(`,`);if(n.length===0)return!0;var r=e.name||``,i=(e.type||``).toLowerCase(),a=i.replace(/\/.*$/,``);return n.some(function(e){var t=e.trim().toLowerCase();return t.charAt(0)===`.`?r.toLowerCase().endsWith(t):t.endsWith(`/*`)?a===t.replace(/\/.*$/,``):i===t})}return!0}}))());function fU(e){return hU(e)||mU(e)||xU(e)||pU()}function pU(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
647
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mU(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function hU(e){if(Array.isArray(e))return SU(e)}function gU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _U(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?gU(Object(n),!0).forEach(function(t){vU(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gU(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yU(e,t){return wU(e)||CU(e,t)||xU(e,t)||bU()}function bU(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
648
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xU(e,t){if(e){if(typeof e==`string`)return SU(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return SU(e,t)}}function SU(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function CU(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function wU(e){if(Array.isArray(e))return e}var TU=typeof dU.default==`function`?dU.default:dU.default.default,EU=`file-invalid-type`,DU=`file-too-large`,OU=`file-too-small`,kU=`too-many-files`,AU=function(){var e=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:``).split(`,`);return{code:EU,message:`File type must be ${e.length>1?`one of ${e.join(`, `)}`:e[0]}`}},jU=function(e){return{code:DU,message:`File is larger than ${e} ${e===1?`byte`:`bytes`}`}},MU=function(e){return{code:OU,message:`File is smaller than ${e} ${e===1?`byte`:`bytes`}`}},NU={code:kU,message:`Too many files`};function PU(e){return e.type===``&&typeof e.getAsFile==`function`}function FU(e,t){var n=e.type===`application/x-moz-file`||TU(e,t)||PU(e);return[n,n?null:AU(t)]}function IU(e,t,n){if(LU(e.size)){if(LU(t)&&LU(n)){if(e.size>n)return[!1,jU(n)];if(e.size<t)return[!1,MU(t)]}else if(LU(t)&&e.size<t)return[!1,MU(t)];else if(LU(n)&&e.size>n)return[!1,jU(n)]}return[!0,null]}function LU(e){return e!=null}function RU(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,a=e.multiple,o=e.maxFiles,s=e.validator;return!a&&t.length>1||a&&o>=1&&t.length>o?!1:t.every(function(e){var t=yU(FU(e,n),1)[0],a=yU(IU(e,r,i),1)[0],o=s?s(e):null;return t&&a&&!o})}function zU(e){return typeof e.isPropagationStopped==`function`?e.isPropagationStopped():e.cancelBubble===void 0?!1:e.cancelBubble}function BU(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(e){return e===`Files`||e===`application/x-moz-file`}):!!e.target&&!!e.target.files}function VU(e){e.preventDefault()}function HU(e){return e.indexOf(`MSIE`)!==-1||e.indexOf(`Trident/`)!==-1}function UU(e){return e.indexOf(`Edge/`)!==-1}function WU(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return HU(e)||UU(e)}function GU(){var e=[...arguments];return function(t){var n=[...arguments].slice(1);return e.some(function(e){return!zU(t)&&e&&e.apply(void 0,[t].concat(n)),zU(t)})}}function KU(){return`showOpenFilePicker`in window}function qU(e){return LU(e)?[{description:`Files`,accept:Object.entries(e).filter(function(e){var t=yU(e,2),n=t[0],r=t[1],i=!0;return ZU(n)||(console.warn(`Skipped "${n}" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.`),i=!1),(!Array.isArray(r)||!r.every(QU))&&(console.warn(`Skipped "${n}" because an invalid file extension was provided.`),i=!1),i}).reduce(function(e,t){var n=yU(t,2),r=n[0],i=n[1];return _U(_U({},e),{},vU({},r,i))},{})}]:e}function JU(e){if(LU(e))return Object.entries(e).reduce(function(e,t){var n=yU(t,2),r=n[0],i=n[1];return[].concat(fU(e),[r],fU(i))},[]).filter(function(e){return ZU(e)||QU(e)}).join(`,`)}function YU(e){return e instanceof DOMException&&(e.name===`AbortError`||e.code===e.ABORT_ERR)}function XU(e){return e instanceof DOMException&&(e.name===`SecurityError`||e.code===e.SECURITY_ERR)}function ZU(e){return e===`audio/*`||e===`video/*`||e===`image/*`||e===`text/*`||e===`application/*`||/\w+\/[-+.\w]+/g.test(e)}function QU(e){return/^.*\.[\w]+$/.test(e)}var $U=[`children`],eW=[`open`],tW=[`refKey`,`role`,`onKeyDown`,`onFocus`,`onBlur`,`onClick`,`onDragEnter`,`onDragOver`,`onDragLeave`,`onDrop`],nW=[`refKey`,`onChange`,`onClick`];function rW(e){return oW(e)||aW(e)||lW(e)||iW()}function iW(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
649
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aW(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function oW(e){if(Array.isArray(e))return uW(e)}function sW(e,t){return fW(e)||dW(e,t)||lW(e,t)||cW()}function cW(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
650
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lW(e,t){if(e){if(typeof e==`string`)return uW(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uW(e,t)}}function uW(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function dW(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function fW(e){if(Array.isArray(e))return e}function pW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mW(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?pW(Object(n),!0).forEach(function(t){hW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gW(e,t){if(e==null)return{};var n=_W(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _W(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var vW=(0,B.forwardRef)(function(e,t){var n=e.children,r=xW(gW(e,$U)),i=r.open,a=gW(r,eW);return(0,B.useImperativeHandle)(t,function(){return{open:i}},[i]),B.createElement(B.Fragment,null,n(mW(mW({},a),{},{open:i})))});vW.displayName=`Dropzone`;var yW={disabled:!1,getFilesFromEvent:XH,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};vW.defaultProps=yW,vW.propTypes={children:Z.default.func,accept:Z.default.objectOf(Z.default.arrayOf(Z.default.string)),multiple:Z.default.bool,preventDropOnDocument:Z.default.bool,noClick:Z.default.bool,noKeyboard:Z.default.bool,noDrag:Z.default.bool,noDragEventsBubbling:Z.default.bool,minSize:Z.default.number,maxSize:Z.default.number,maxFiles:Z.default.number,disabled:Z.default.bool,getFilesFromEvent:Z.default.func,onFileDialogCancel:Z.default.func,onFileDialogOpen:Z.default.func,useFsAccessApi:Z.default.bool,autoFocus:Z.default.bool,onDragEnter:Z.default.func,onDragLeave:Z.default.func,onDragOver:Z.default.func,onDrop:Z.default.func,onDropAccepted:Z.default.func,onDropRejected:Z.default.func,onError:Z.default.func,validator:Z.default.func};var bW={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,isDragGlobal:!1,acceptedFiles:[],fileRejections:[]};function xW(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=mW(mW({},yW),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,a=t.maxSize,o=t.minSize,s=t.multiple,c=t.maxFiles,l=t.onDragEnter,u=t.onDragLeave,d=t.onDragOver,f=t.onDrop,p=t.onDropAccepted,m=t.onDropRejected,h=t.onFileDialogCancel,g=t.onFileDialogOpen,_=t.useFsAccessApi,v=t.autoFocus,y=t.preventDropOnDocument,b=t.noClick,x=t.noKeyboard,S=t.noDrag,C=t.noDragEventsBubbling,w=t.onError,T=t.validator,E=(0,B.useMemo)(function(){return JU(n)},[n]),D=(0,B.useMemo)(function(){return qU(n)},[n]),O=(0,B.useMemo)(function(){return typeof g==`function`?g:CW},[g]),k=(0,B.useMemo)(function(){return typeof h==`function`?h:CW},[h]),A=(0,B.useRef)(null),j=(0,B.useRef)(null),M=sW((0,B.useReducer)(SW,bW),2),N=M[0],P=M[1],F=N.isFocused,I=N.isFileDialogActive,L=(0,B.useRef)(typeof window<`u`&&window.isSecureContext&&_&&KU()),ee=function(){!L.current&&I&&setTimeout(function(){j.current&&(j.current.files.length||(P({type:`closeDialog`}),k()))},300)};(0,B.useEffect)(function(){return window.addEventListener(`focus`,ee,!1),function(){window.removeEventListener(`focus`,ee,!1)}},[j,I,k,L]);var R=(0,B.useRef)([]),te=(0,B.useRef)([]),ne=function(e){A.current&&A.current.contains(e.target)||(e.preventDefault(),R.current=[])};(0,B.useEffect)(function(){return y&&(document.addEventListener(`dragover`,VU,!1),document.addEventListener(`drop`,ne,!1)),function(){y&&(document.removeEventListener(`dragover`,VU),document.removeEventListener(`drop`,ne))}},[A,y]),(0,B.useEffect)(function(){var e=function(e){te.current=[].concat(rW(te.current),[e.target]),BU(e)&&P({isDragGlobal:!0,type:`setDragGlobal`})},t=function(e){te.current=te.current.filter(function(t){return t!==e.target&&t!==null}),!(te.current.length>0)&&P({isDragGlobal:!1,type:`setDragGlobal`})},n=function(){te.current=[],P({isDragGlobal:!1,type:`setDragGlobal`})},r=function(){te.current=[],P({isDragGlobal:!1,type:`setDragGlobal`})};return document.addEventListener(`dragenter`,e,!1),document.addEventListener(`dragleave`,t,!1),document.addEventListener(`dragend`,n,!1),document.addEventListener(`drop`,r,!1),function(){document.removeEventListener(`dragenter`,e),document.removeEventListener(`dragleave`,t),document.removeEventListener(`dragend`,n),document.removeEventListener(`drop`,r)}},[A]),(0,B.useEffect)(function(){return!r&&v&&A.current&&A.current.focus(),function(){}},[A,v,r]);var re=(0,B.useCallback)(function(e){w?w(e):console.error(e)},[w]),z=(0,B.useCallback)(function(e){e.preventDefault(),e.persist(),ge(e),R.current=[].concat(rW(R.current),[e.target]),BU(e)&&Promise.resolve(i(e)).then(function(t){if(!(zU(e)&&!C)){var n=t.length,r=n>0&&RU({files:t,accept:E,minSize:o,maxSize:a,multiple:s,maxFiles:c,validator:T});P({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:`setDraggedFiles`}),l&&l(e)}}).catch(function(e){return re(e)})},[i,l,re,C,E,o,a,s,c,T]),ie=(0,B.useCallback)(function(e){e.preventDefault(),e.persist(),ge(e);var t=BU(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect=`copy`}catch{}return t&&d&&d(e),!1},[d,C]),ae=(0,B.useCallback)(function(e){e.preventDefault(),e.persist(),ge(e);var t=R.current.filter(function(e){return A.current&&A.current.contains(e)}),n=t.indexOf(e.target);n!==-1&&t.splice(n,1),R.current=t,!(t.length>0)&&(P({type:`setDraggedFiles`,isDragActive:!1,isDragAccept:!1,isDragReject:!1}),BU(e)&&u&&u(e))},[A,u,C]),oe=(0,B.useCallback)(function(e,t){var n=[],r=[];e.forEach(function(e){var t=sW(FU(e,E),2),i=t[0],s=t[1],c=sW(IU(e,o,a),2),l=c[0],u=c[1],d=T?T(e):null;if(i&&l&&!d)n.push(e);else{var f=[s,u];d&&(f=f.concat(d)),r.push({file:e,errors:f.filter(function(e){return e})})}}),(!s&&n.length>1||s&&c>=1&&n.length>c)&&(n.forEach(function(e){r.push({file:e,errors:[NU]})}),n.splice(0)),P({acceptedFiles:n,fileRejections:r,type:`setFiles`}),f&&f(n,r,t),r.length>0&&m&&m(r,t),n.length>0&&p&&p(n,t)},[P,s,E,o,a,c,f,p,m,T]),se=(0,B.useCallback)(function(e){e.preventDefault(),e.persist(),ge(e),R.current=[],BU(e)&&Promise.resolve(i(e)).then(function(t){zU(e)&&!C||oe(t,e)}).catch(function(e){return re(e)}),P({type:`reset`})},[i,oe,re,C]),ce=(0,B.useCallback)(function(){if(L.current){P({type:`openDialog`}),O();var e={multiple:s,types:D};window.showOpenFilePicker(e).then(function(e){return i(e)}).then(function(e){oe(e,null),P({type:`closeDialog`})}).catch(function(e){YU(e)?(k(e),P({type:`closeDialog`})):XU(e)?(L.current=!1,j.current?(j.current.value=null,j.current.click()):re(Error(`Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided.`))):re(e)});return}j.current&&(P({type:`openDialog`}),O(),j.current.value=null,j.current.click())},[P,O,k,_,oe,re,D,s]),le=(0,B.useCallback)(function(e){!A.current||!A.current.isEqualNode(e.target)||(e.key===` `||e.key===`Enter`||e.keyCode===32||e.keyCode===13)&&(e.preventDefault(),ce())},[A,ce]),ue=(0,B.useCallback)(function(){P({type:`focus`})},[]),de=(0,B.useCallback)(function(){P({type:`blur`})},[]),fe=(0,B.useCallback)(function(){b||(WU()?setTimeout(ce,0):ce())},[b,ce]),pe=function(e){return r?null:e},me=function(e){return x?null:pe(e)},he=function(e){return S?null:pe(e)},ge=function(e){C&&e.stopPropagation()},_e=(0,B.useMemo)(function(){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.refKey,n=t===void 0?`ref`:t,i=e.role,a=e.onKeyDown,o=e.onFocus,s=e.onBlur,c=e.onClick,l=e.onDragEnter,u=e.onDragOver,d=e.onDragLeave,f=e.onDrop,p=gW(e,tW);return mW(mW(hW({onKeyDown:me(GU(a,le)),onFocus:me(GU(o,ue)),onBlur:me(GU(s,de)),onClick:pe(GU(c,fe)),onDragEnter:he(GU(l,z)),onDragOver:he(GU(u,ie)),onDragLeave:he(GU(d,ae)),onDrop:he(GU(f,se)),role:typeof i==`string`&&i!==``?i:`presentation`},n,A),!r&&!x?{tabIndex:0}:{}),p)}},[A,le,ue,de,fe,z,ie,ae,se,x,S,r]),ve=(0,B.useCallback)(function(e){e.stopPropagation()},[]),ye=(0,B.useMemo)(function(){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.refKey,n=t===void 0?`ref`:t,r=e.onChange,i=e.onClick,a=gW(e,nW);return mW(mW({},hW({accept:E,multiple:s,type:`file`,style:{border:0,clip:`rect(0, 0, 0, 0)`,clipPath:`inset(50%)`,height:`1px`,margin:`0 -1px -1px 0`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`},onChange:pe(GU(r,se)),onClick:pe(GU(i,ve)),tabIndex:-1},n,j)),a)}},[j,n,s,se,r]);return mW(mW({},N),{},{isFocused:F&&!r,getRootProps:_e,getInputProps:ye,rootRef:A,inputRef:j,open:pe(ce)})}function SW(e,t){switch(t.type){case`focus`:return mW(mW({},e),{},{isFocused:!0});case`blur`:return mW(mW({},e),{},{isFocused:!1});case`openDialog`:return mW(mW({},bW),{},{isFileDialogActive:!0});case`closeDialog`:return mW(mW({},e),{},{isFileDialogActive:!1});case`setDraggedFiles`:return mW(mW({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case`setFiles`:return mW(mW({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:!1});case`setDragGlobal`:return mW(mW({},e),{},{isDragGlobal:t.isDragGlobal});case`reset`:return mW({},bW);default:return e}}function CW(){}function wW(){let e=gs();return[...e.breakpoints.keys].reverse().reduce((t,n)=>{let r=Gw(e.breakpoints.up(n));return!t&&r?n:t},null)||`xs`}function TW(){return e=>function(t){let n=wW();return B.createElement(e,{...t,width:n})}}function EW(e){let[t,n]=B.useState(e.input||e.value||``),[r,i]=B.useState(``);return B.createElement(CC,{open:!0,onClose:()=>e.onClose(null),"aria-labelledby":`form-dialog-title`,fullWidth:e.fullWidth===void 0?!1:e.fullWidth},B.createElement(BC,{id:`form-dialog-title`},e.titleText),B.createElement(NC,null,B.createElement(LC,null,e.promptText),B.createElement(ZO,{variant:`standard`,autoFocus:!0,margin:`dense`,error:!!r,helperText:r===!0||!r?``:r,value:t,label:e.labelText||``,type:e.type||`text`,onKeyUp:n=>n.code===`Enter`&&t&&e.onClose(t),onChange:t=>{let r=``;e.verify&&(r=e.verify(t.target.value)),e.rule?n(e.rule(t.target.value)):n(t.target.value),i(r)},fullWidth:!0})),B.createElement(DC,null,B.createElement(CS,{variant:`contained`,disabled:!t||!!r,onClick:()=>e.onClose(t),color:`primary`,startIcon:B.createElement(lk,null)},e.applyText||vA.t(`ra_Ok`)),B.createElement(CS,{color:`grey`,variant:`contained`,onClick:()=>e.onClose(null),startIcon:B.createElement(uk,null)},e.cancelText||vA.t(`ra_Cancel`))))}var DW=TW()(EW);function OW(e){return B.createElement(`svg`,{onClick:t=>e.onClick&&e.onClick(t),viewBox:`0 0 486 486`,width:e.width||(e.fontSize===`small`?16:20),height:e.height||e.width||(e.fontSize===`small`?16:20),xmlns:`http://www.w3.org/2000/svg`,className:e.className,style:e.style},B.createElement(`path`,{fill:`currentColor`,d:`m414.928297,149.715165 c-2.639376,-57.222555 -35.669446,-106.505345 -83.345894,-132.039151 c-3.758948,-2.049842 -7.636885,-3.932022 -11.590542,-5.641125 c-19.303146,-8.394083 -40.607459,-13.050853 -63.004303,-13.050853 c-84.113909,0 -152.791790,65.703174 -157.718988,148.605566 l0.043268,-0.010816 v0.281245 c0,3.061243 -0.146031,16.750306 -0.146031,16.750306 l-2.352723,5.224668 h15.744315 c5.916964,-19.384275 24.078904,-32.635245 45.513024,-32.635245 c26.231510,0 47.573684,21.915481 47.573684,48.146991 c0,26.226103 -21.342174,47.146409 -47.573684,47.146409 c-25.111939,0 -45.734774,-19.735831 -47.443879,-44.658471 h-18.789334 c-0.400232,0 -0.778832,0.638209 -1.162839,0.584122 l-19.762875,55.199753 c-2.774590,7.696379 2.926030,16.214860 11.103771,16.214860 h17.020735 l-0.129805,87.899899 c0,17.356066 14.073071,31.174935 31.429136,31.174935 h56.205745 v82.648189 c0,12.877778 12.937273,22.580734 25.815051,22.580734 h144.597825 c12.877778,0 23.429877,-9.702955 23.429877,-22.580734 v-166.037352 c0,-22.645636 5.976457,-44.761234 16.561008,-64.789128 c11.055093,-20.925714 17.523731,-44.620611 18.129489,-69.792045 c0.027042,-1.260193 0.037858,-2.552839 0.037858,-3.845485 c0,-2.466302 -0.070310,-4.938014 -0.183890,-7.377273 zm-155.393308,-11.731165 h-13.456494 v13.559257 c0,4.732489 -4.267352,8.567157 -8.999842,8.567157 c-4.727079,0 -8.999842,-3.834667 -8.999842,-8.567157 v-13.559257 h-12.185483 c-4.732489,0 -8.567157,-4.267352 -8.567157,-8.999842 c0,-4.727079 3.834667,-8.999842 8.567157,-8.999842 h12.185483 v-12.077311 c0,-4.732489 4.272762,-8.567157 8.999842,-8.567157 c4.732489,0 8.999842,3.834667 8.999842,8.567157 v12.077311 h13.456494 c4.727079,0 8.567157,4.272762 8.567157,8.999842 c0,4.732489 -3.840077,8.999842 -8.567157,8.999842 zm0,0`}),B.createElement(`path`,{fill:`currentColor`,d:`m187.695312 285.875c3.9375-3.980469 6.414063-9.449219 6.414063-15.523438 0-12.128906-9.855469-21.980468-21.984375-21.980468-6.007812 0-11.472656 2.410156-15.457031 6.347656-4.023438 4.003906-6.523438 9.539062-6.523438 15.636719 0 12.125 9.855469 21.980469 21.980469 21.980469 6.078125 0 11.585938-2.476563 15.570312-6.460938zm0 0`}))}function kW(e){return B.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,onClick:t=>e.onClick&&e.onClick(t),viewBox:`0 0 650 512`,width:e.width||(e.fontSize===`small`?16:20),height:e.height||e.width||(e.fontSize===`small`?16:20),className:e.className,style:e.style},B.createElement(`path`,{fill:`currentColor`,d:`m524,128l-192,0l-64,-64l-160,0c-26.51,0 -48,21.49 -48,48l0,288c0,26.51 21.49,48 48,48l416,0c26.51,0 48,-21.49 48,-48l0,-224c0,-26.51 -21.49,-48 -48,-48z`}))}function AW(e){return B.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,onClick:t=>e.onClick&&e.onClick(t),viewBox:`0 0 650 512`,width:e.width||(e.fontSize===`small`?16:20),height:e.height||e.width||(e.fontSize===`small`?16:20),className:e.className,style:e.style},B.createElement(`path`,{fill:`currentColor`,d:`m631.75617,292.093l-72.424,124.155a63.997,63.997 0 0 1 -55.281,31.752l-399.964,0c-18.523,0 -30.064,-20.093 -20.731,-36.093l72.424,-124.155a64,64 0 0 1 55.282,-31.752l399.964,0c18.523,0 30.064,20.093 20.73,36.093zm-420.694,-68.093l328,0l0,-48c0,-26.51 -21.49,-48 -48,-48l-160,0l-64,-64l-160,0c-26.51,0 -48,21.49 -48,48l0,278.046l69.077,-118.418c17.137,-29.378 48.912,-47.628 82.923,-47.628z`}))}function jW(e){return B.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,onClick:t=>e.onClick&&e.onClick(t),viewBox:`0 0 512 512`,width:e.width||(e.fontSize===`small`?16:20),height:e.height||e.width||(e.fontSize===`small`?16:20),className:e.className,style:e.style},B.createElement(`path`,{fill:`#EE3333`,d:`M256,0C114.844,0,0,114.844,0,256s114.844,256,256,256s256-114.844,256-256S397.156,0,256,0z M256,448 c-105.865,0-192-86.135-192-192c0-40.406,12.25-78.604,35.542-111.198l267.656,267.656C334.604,435.75,296.406,448,256,448z M412.458,367.198L144.802,99.542C177.396,76.25,215.594,64,256,64c105.865,0,192,86.135,192,192 C448,296.406,435.75,334.604,412.458,367.198z`}))}var MW=e=>typeof e==`string`?e.split(/ ?; ?/).reduce((e,t)=>{let[n,r]=t.split(/ ?: ?/).map((e,t)=>t===0?e.replace(/\s+/g,``):e.trim());if(n&&r){let t=n.replace(/(\w)-(\w)/g,(e,t,n)=>`${t}${n.toUpperCase()}`),i=r.trim();Number.isNaN(Number(r))||(i=Number(r)),e[n.startsWith(`-`)?n:t]=i}return e},{}):{};function NW(e=6){let t=``;for(let n=e;n>0;--n)t+=`0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`[Math.round(Math.random()*61)];return t}var PW=[`br`,`col`,`colgroup`,`dl`,`hr`,`iframe`,`img`,`input`,`link`,`menuitem`,`meta`,`ol`,`param`,`select`,`table`,`tbody`,`tfoot`,`thead`,`tr`,`ul`,`wbr`],FW={"accept-charset":`acceptCharset`,acceptcharset:`acceptCharset`,accesskey:`accessKey`,allowfullscreen:`allowFullScreen`,autocapitalize:`autoCapitalize`,autocomplete:`autoComplete`,autocorrect:`autoCorrect`,autofocus:`autoFocus`,autoplay:`autoPlay`,autosave:`autoSave`,cellpadding:`cellPadding`,cellspacing:`cellSpacing`,charset:`charSet`,class:`className`,classid:`classID`,classname:`className`,colspan:`colSpan`,contenteditable:`contentEditable`,contextmenu:`contextMenu`,controlslist:`controlsList`,crossorigin:`crossOrigin`,dangerouslysetinnerhtml:`dangerouslySetInnerHTML`,datetime:`dateTime`,defaultchecked:`defaultChecked`,defaultvalue:`defaultValue`,enctype:`encType`,for:`htmlFor`,formmethod:`formMethod`,formaction:`formAction`,formenctype:`formEncType`,formnovalidate:`formNoValidate`,formtarget:`formTarget`,frameborder:`frameBorder`,hreflang:`hrefLang`,htmlfor:`htmlFor`,httpequiv:`httpEquiv`,"http-equiv":`httpEquiv`,icon:`icon`,innerhtml:`innerHTML`,inputmode:`inputMode`,itemid:`itemID`,itemprop:`itemProp`,itemref:`itemRef`,itemscope:`itemScope`,itemtype:`itemType`,keyparams:`keyParams`,keytype:`keyType`,marginwidth:`marginWidth`,marginheight:`marginHeight`,maxlength:`maxLength`,mediagroup:`mediaGroup`,minlength:`minLength`,nomodule:`noModule`,novalidate:`noValidate`,playsinline:`playsInline`,radiogroup:`radioGroup`,readonly:`readOnly`,referrerpolicy:`referrerPolicy`,rowspan:`rowSpan`,spellcheck:`spellCheck`,srcdoc:`srcDoc`,srclang:`srcLang`,srcset:`srcSet`,tabindex:`tabIndex`,typemustmatch:`typeMustMatch`,usemap:`useMap`,accentheight:`accentHeight`,"accent-height":`accentHeight`,alignmentbaseline:`alignmentBaseline`,"alignment-baseline":`alignmentBaseline`,allowreorder:`allowReorder`,arabicform:`arabicForm`,"arabic-form":`arabicForm`,attributename:`attributeName`,attributetype:`attributeType`,autoreverse:`autoReverse`,basefrequency:`baseFrequency`,baselineshift:`baselineShift`,"baseline-shift":`baselineShift`,baseprofile:`baseProfile`,calcmode:`calcMode`,capheight:`capHeight`,"cap-height":`capHeight`,clippath:`clipPath`,"clip-path":`clipPath`,clippathunits:`clipPathUnits`,cliprule:`clipRule`,"clip-rule":`clipRule`,colorinterpolation:`colorInterpolation`,"color-interpolation":`colorInterpolation`,colorinterpolationfilters:`colorInterpolationFilters`,"color-interpolation-filters":`colorInterpolationFilters`,colorprofile:`colorProfile`,"color-profile":`colorProfile`,colorrendering:`colorRendering`,"color-rendering":`colorRendering`,contentscripttype:`contentScriptType`,contentstyletype:`contentStyleType`,diffuseconstant:`diffuseConstant`,dominantbaseline:`dominantBaseline`,"dominant-baseline":`dominantBaseline`,edgemode:`edgeMode`,enablebackground:`enableBackground`,"enable-background":`enableBackground`,externalresourcesrequired:`externalResourcesRequired`,fillopacity:`fillOpacity`,"fill-opacity":`fillOpacity`,fillrule:`fillRule`,"fill-rule":`fillRule`,filterres:`filterRes`,filterunits:`filterUnits`,floodopacity:`floodOpacity`,"flood-opacity":`floodOpacity`,floodcolor:`floodColor`,"flood-color":`floodColor`,fontfamily:`fontFamily`,"font-family":`fontFamily`,fontsize:`fontSize`,"font-size":`fontSize`,fontsizeadjust:`fontSizeAdjust`,"font-size-adjust":`fontSizeAdjust`,fontstretch:`fontStretch`,"font-stretch":`fontStretch`,fontstyle:`fontStyle`,"font-style":`fontStyle`,fontvariant:`fontVariant`,"font-variant":`fontVariant`,fontweight:`fontWeight`,"font-weight":`fontWeight`,glyphname:`glyphName`,"glyph-name":`glyphName`,glyphorientationhorizontal:`glyphOrientationHorizontal`,"glyph-orientation-horizontal":`glyphOrientationHorizontal`,glyphorientationvertical:`glyphOrientationVertical`,"glyph-orientation-vertical":`glyphOrientationVertical`,glyphref:`glyphRef`,gradienttransform:`gradientTransform`,gradientunits:`gradientUnits`,horizadvx:`horizAdvX`,"horiz-adv-x":`horizAdvX`,horizoriginx:`horizOriginX`,"horiz-origin-x":`horizOriginX`,imagerendering:`imageRendering`,"image-rendering":`imageRendering`,kernelmatrix:`kernelMatrix`,kernelunitlength:`kernelUnitLength`,keypoints:`keyPoints`,keysplines:`keySplines`,keytimes:`keyTimes`,lengthadjust:`lengthAdjust`,letterspacing:`letterSpacing`,"letter-spacing":`letterSpacing`,lightingcolor:`lightingColor`,"lighting-color":`lightingColor`,limitingconeangle:`limitingConeAngle`,markerend:`markerEnd`,"marker-end":`markerEnd`,markerheight:`markerHeight`,markermid:`markerMid`,"marker-mid":`markerMid`,markerstart:`markerStart`,"marker-start":`markerStart`,markerunits:`markerUnits`,markerwidth:`markerWidth`,maskcontentunits:`maskContentUnits`,maskunits:`maskUnits`,numoctaves:`numOctaves`,overlineposition:`overlinePosition`,"overline-position":`overlinePosition`,overlinethickness:`overlineThickness`,"overline-thickness":`overlineThickness`,paintorder:`paintOrder`,"paint-order":`paintOrder`,"panose-1":`panose1`,pathlength:`pathLength`,patterncontentunits:`patternContentUnits`,patterntransform:`patternTransform`,patternunits:`patternUnits`,pointerevents:`pointerEvents`,"pointer-events":`pointerEvents`,pointsatx:`pointsAtX`,pointsaty:`pointsAtY`,pointsatz:`pointsAtZ`,preservealpha:`preserveAlpha`,preserveaspectratio:`preserveAspectRatio`,primitiveunits:`primitiveUnits`,refx:`refX`,refy:`refY`,renderingintent:`renderingIntent`,"rendering-intent":`renderingIntent`,repeatcount:`repeatCount`,repeatdur:`repeatDur`,requiredextensions:`requiredExtensions`,requiredfeatures:`requiredFeatures`,shaperendering:`shapeRendering`,"shape-rendering":`shapeRendering`,specularconstant:`specularConstant`,specularexponent:`specularExponent`,spreadmethod:`spreadMethod`,startoffset:`startOffset`,stddeviation:`stdDeviation`,stitchtiles:`stitchTiles`,stopcolor:`stopColor`,"stop-color":`stopColor`,stopopacity:`stopOpacity`,"stop-opacity":`stopOpacity`,strikethroughposition:`strikethroughPosition`,"strikethrough-position":`strikethroughPosition`,strikethroughthickness:`strikethroughThickness`,"strikethrough-thickness":`strikethroughThickness`,strokedasharray:`strokeDasharray`,"stroke-dasharray":`strokeDasharray`,strokedashoffset:`strokeDashoffset`,"stroke-dashoffset":`strokeDashoffset`,strokelinecap:`strokeLinecap`,"stroke-linecap":`strokeLinecap`,strokelinejoin:`strokeLinejoin`,"stroke-linejoin":`strokeLinejoin`,strokemiterlimit:`strokeMiterlimit`,"stroke-miterlimit":`strokeMiterlimit`,strokewidth:`strokeWidth`,"stroke-width":`strokeWidth`,strokeopacity:`strokeOpacity`,"stroke-opacity":`strokeOpacity`,suppresscontenteditablewarning:`suppressContentEditableWarning`,suppresshydrationwarning:`suppressHydrationWarning`,surfacescale:`surfaceScale`,systemlanguage:`systemLanguage`,tablevalues:`tableValues`,targetx:`targetX`,targety:`targetY`,textanchor:`textAnchor`,"text-anchor":`textAnchor`,textdecoration:`textDecoration`,"text-decoration":`textDecoration`,textlength:`textLength`,textrendering:`textRendering`,"text-rendering":`textRendering`,underlineposition:`underlinePosition`,"underline-position":`underlinePosition`,underlinethickness:`underlineThickness`,"underline-thickness":`underlineThickness`,unicodebidi:`unicodeBidi`,"unicode-bidi":`unicodeBidi`,unicoderange:`unicodeRange`,"unicode-range":`unicodeRange`,unitsperem:`unitsPerEm`,"units-per-em":`unitsPerEm`,unselectable:`unselectable`,valphabetic:`vAlphabetic`,"v-alphabetic":`vAlphabetic`,vectoreffect:`vectorEffect`,"vector-effect":`vectorEffect`,vertadvy:`vertAdvY`,"vert-adv-y":`vertAdvY`,vertoriginx:`vertOriginX`,"vert-origin-x":`vertOriginX`,vertoriginy:`vertOriginY`,"vert-origin-y":`vertOriginY`,vhanging:`vHanging`,"v-hanging":`vHanging`,videographic:`vIdeographic`,"v-ideographic":`vIdeographic`,viewbox:`viewBox`,viewtarget:`viewTarget`,vmathematical:`vMathematical`,"v-mathematical":`vMathematical`,wordspacing:`wordSpacing`,"word-spacing":`wordSpacing`,writingmode:`writingMode`,"writing-mode":`writingMode`,xchannelselector:`xChannelSelector`,xheight:`xHeight`,"x-height":`xHeight`,xlinkactuate:`xlinkActuate`,"xlink:actuate":`xlinkActuate`,xlinkarcrole:`xlinkArcrole`,"xlink:arcrole":`xlinkArcrole`,xlinkhref:`xlinkHref`,"xlink:href":`xlinkHref`,xlinkrole:`xlinkRole`,"xlink:role":`xlinkRole`,xlinkshow:`xlinkShow`,"xlink:show":`xlinkShow`,xlinktitle:`xlinkTitle`,"xlink:title":`xlinkTitle`,xlinktype:`xlinkType`,"xlink:type":`xlinkType`,xmlbase:`xmlBase`,"xml:base":`xmlBase`,xmllang:`xmlLang`,"xml:lang":`xmlLang`,"xml:space":`xmlSpace`,xmlnsxlink:`xmlnsXlink`,"xmlns:xlink":`xmlnsXlink`,xmlspace:`xmlSpace`,ychannelselector:`yChannelSelector`,zoomandpan:`zoomAndPan`,onblur:`onBlur`,onchange:`onChange`,onclick:`onClick`,oncontextmenu:`onContextMenu`,ondoubleclick:`onDoubleClick`,ondrag:`onDrag`,ondragend:`onDragEnd`,ondragenter:`onDragEnter`,ondragexit:`onDragExit`,ondragleave:`onDragLeave`,ondragover:`onDragOver`,ondragstart:`onDragStart`,ondrop:`onDrop`,onerror:`onError`,onfocus:`onFocus`,oninput:`onInput`,oninvalid:`onInvalid`,onkeydown:`onKeyDown`,onkeypress:`onKeyPress`,onkeyup:`onKeyUp`,onload:`onLoad`,onmousedown:`onMouseDown`,onmouseenter:`onMouseEnter`,onmouseleave:`onMouseLeave`,onmousemove:`onMouseMove`,onmouseout:`onMouseOut`,onmouseover:`onMouseOver`,onmouseup:`onMouseUp`,onscroll:`onScroll`,onsubmit:`onSubmit`,ontouchcancel:`onTouchCancel`,ontouchend:`onTouchEnd`,ontouchmove:`onTouchMove`,ontouchstart:`onTouchStart`,onwheel:`onWheel`};function IW(e,t){let{key:n,level:r,...i}=t;switch(e.nodeType){case 1:return B.createElement(zW(e.nodeName),LW(e,n),RW(e.childNodes,r,i));case 3:{let t=e.nodeValue?.toString()??``;if(!i.allowWhiteSpaces&&/^\s+$/.test(t)&&!/[\u00A0\u202F]/.test(t))return null;if(!e.parentNode)return t;let n=e.parentNode.nodeName.toLowerCase();return PW.includes(n)?(/\S/.test(t)&&console.warn(`A textNode is not allowed inside '${n}'. Your text "${t}" will be ignored`),null):t}case 8:return null;case 11:return RW(e.childNodes,r,t);default:return null}}function LW(e,t){let n={key:t};if(e instanceof Element){let t=e.getAttribute(`class`);t&&(n.className=t),[...e.attributes].forEach(e=>{switch(e.name){case`class`:break;case`style`:n[e.name]=MW(e.value);break;case`allowfullscreen`:case`allowpaymentrequest`:case`async`:case`autofocus`:case`autoplay`:case`checked`:case`controls`:case`default`:case`defer`:case`disabled`:case`formnovalidate`:case`hidden`:case`ismap`:case`itemscope`:case`loop`:case`multiple`:case`muted`:case`nomodule`:case`novalidate`:case`open`:case`readonly`:case`required`:case`reversed`:case`selected`:case`typemustmatch`:n[FW[e.name]||e.name]=!0;break;default:n[FW[e.name]||e.name]=e.value}})}return n}function RW(e,t,n){let r=[...e].map((e,r)=>VW(e,{...n,index:r,level:t+1})).filter(Boolean);return r.length?r:null}function zW(e){return/[a-z]+[A-Z]+[a-z]+/.test(e)?e:e.toLowerCase()}function BW(e,t={}){return typeof e==`string`?HW(e,t):e instanceof Node?VW(e,t):null}function VW(e,t={}){if(!e||!(e instanceof Node))return null;let{actions:n=[],index:r=0,level:i=0,randomKey:a}=t,o=e,s=`${i}-${r}`,c=[];return a&&i===0&&(s=`${NW()}-${s}`),Array.isArray(n)&&n.forEach(t=>{t.condition(o,s,i)&&(typeof t.pre==`function`&&(o=t.pre(o,s,i),o instanceof Node||(o=e)),typeof t.post==`function`&&c.push(t.post(o,s,i)))}),c.length?c:IW(o,{key:s,level:i,...t})}function HW(e,t={}){if(!e||typeof e!=`string`)return null;let{includeAllNodes:n=!1,nodeOnly:r=!1,selector:i=`body > *`,type:a=`text/html`}=t;try{let o=new DOMParser().parseFromString(e,a);if(n){let{childNodes:e}=o.body;return r?e:[...e].map(e=>VW(e,t))}let s=o.querySelector(i)||o.body.childNodes[0];if(!(s instanceof Node))throw TypeError(`Error parsing input`);return r?s:VW(s,t)}catch{}return null}var UW=Object.defineProperty,WW=(e,t,n)=>t in e?UW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,GW=(e,t,n)=>WW(e,typeof t==`symbol`?t:t+``,n),KW=`react-inlinesvg`,qW=10,JW={IDLE:`idle`,LOADING:`loading`,LOADED:`loaded`,FAILED:`failed`,READY:`ready`,UNSUPPORTED:`unsupported`};function YW(e){return e[Math.floor(Math.random()*e.length)]}function XW(){return!!(typeof window<`u`&&window.document?.createElement)}function ZW(){return tG()&&typeof window<`u`&&window!==null}function QW(e,...t){let n={};for(let r in e)({}).hasOwnProperty.call(e,r)&&(t.includes(r)||(n[r]=e[r]));return n}function $W(e){let t=``;for(let n=0;n<e;n++)t+=YW(`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890`);return t}async function eG(e,t){let n=await fetch(e,t),[r]=(n.headers.get(`content-type`)??``).split(/ ?; ?/);if(n.status>299)throw Error(`Not found`);if(![`image/svg+xml`,`text/plain`].some(e=>r.includes(e)))throw Error(`Content type isn't valid: ${r}`);return n.text()}function tG(){if(!document)return!1;let e=document.createElement(`div`);e.innerHTML=`<svg />`;let t=e.firstChild;return!!t&&t.namespaceURI===`http://www.w3.org/2000/svg`}var nG=class{constructor(e={}){GW(this,`cacheApi`),GW(this,`cacheStore`),GW(this,`subscribers`,[]),GW(this,`isReady`,!1);let{name:t=KW,persistent:n=!1}=e;this.cacheStore=new Map,n&&XW()&&`caches`in window?caches.open(t).then(e=>{this.cacheApi=e}).catch(e=>{console.error(`Failed to open cache: ${e.message}`),this.cacheApi=void 0}).finally(()=>{this.isReady=!0;let e=[...this.subscribers];this.subscribers.length=0,e.forEach(e=>{try{e()}catch(e){console.error(`Error in CacheStore subscriber callback: ${e.message}`)}})}):this.isReady=!0}onReady(e){return this.isReady?(e(),()=>{}):(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);t>=0&&this.subscribers.splice(t,1)})}waitForReady(){return this.isReady?Promise.resolve():new Promise(e=>{this.onReady(e)})}async get(e,t){return await this.fetchAndCache(e,t),this.cacheStore.get(e)?.content??``}getContent(e){return this.cacheStore.get(e)?.content??``}set(e,t){this.cacheStore.set(e,t)}isCached(e){return this.cacheStore.get(e)?.status===JW.LOADED}async fetchAndCache(e,t){this.isReady||await this.waitForReady();let n=this.cacheStore.get(e);if(n?.status!==JW.LOADED){if(n?.status===JW.LOADING){await this.handleLoading(e,t?.signal||void 0,async()=>{this.cacheStore.set(e,{content:``,status:JW.IDLE}),await this.fetchAndCache(e,t)});return}this.cacheStore.set(e,{content:``,status:JW.LOADING});try{let n=this.cacheApi?await this.fetchFromPersistentCache(e,t):await eG(e,t);this.cacheStore.set(e,{content:n,status:JW.LOADED})}catch(t){throw this.cacheStore.set(e,{content:``,status:JW.FAILED}),t}}}async fetchFromPersistentCache(e,t){let n=await this.cacheApi?.match(e);return n?n.text():(await this.cacheApi?.add(new Request(e,t)),await(await this.cacheApi?.match(e))?.text()??``)}async handleLoading(e,t,n){for(let n=0;n<qW;n++){if(t?.aborted)throw t.reason instanceof Error?t.reason:new DOMException(`The operation was aborted.`,`AbortError`);if(this.cacheStore.get(e)?.status!==JW.LOADING)return;await rG(.1)}await n()}keys(){return[...this.cacheStore.keys()]}data(){return[...this.cacheStore.entries()].map(([e,t])=>({[e]:t}))}async delete(e){this.cacheApi&&await this.cacheApi.delete(e),this.cacheStore.delete(e)}async clear(){if(this.cacheApi){let e=await this.cacheApi.keys();await Promise.allSettled(e.map(e=>this.cacheApi.delete(e)))}this.cacheStore.clear()}};function rG(e=1){return new Promise(t=>{setTimeout(t,e*1e3)})}function iG(e){(0,B.useEffect)(e,[])}function aG(e){let t=(0,B.useRef)(void 0);return(0,B.useEffect)(()=>{t.current=e}),t.current}function oG(e,t,n){let r=e.matchAll(/\bid=(["'])([^"']+)\1/g),i=[...new Set([...r].map(e=>e[2]))];return i.length?(i.sort((e,t)=>t.length-e.length),e.replace(/<style[^>]*>([\S\s]*?)<\/style>/gi,(e,r)=>{let a=r;for(let e of i){let r=e.replace(/[$()*+.?[\\\]^{|}]/g,`\\$&`);a=a.replace(RegExp(`url\\((['"]?)#${r}\\1\\)`,`g`),`url($1${n}#${e}__${t}$1)`),a=a.replace(RegExp(`#${r}(?![a-zA-Z0-9_-])`,`g`),`#${e}__${t}`)}return e.replace(r,a)})):e}function sG(e){let{baseURL:t,content:n,description:r,handleError:i,hash:a,preProcessor:o,title:s,uniquifyIDs:c=!1}=e;try{let e=cG(n,o);c&&(e=oG(e,a,t??``));let i=BW(e,{nodeOnly:!0});if(!i||!(i instanceof SVGSVGElement))throw Error(`Could not convert the src to a DOM Node`);let l=lG(i,{baseURL:t,hash:a,uniquifyIDs:c});if(r){let e=l.querySelector(`desc`);e?.parentNode&&e.parentNode.removeChild(e);let t=document.createElementNS(`http://www.w3.org/2000/svg`,`desc`);t.innerHTML=r,l.prepend(t)}if(s!==void 0){let e=l.querySelector(`title`);if(e?.parentNode&&e.parentNode.removeChild(e),s){let e=document.createElementNS(`http://www.w3.org/2000/svg`,`title`);e.innerHTML=s,l.prepend(e)}}return l}catch(e){return i(e)}}function cG(e,t){return t?t(e):e}function lG(e,t){let{baseURL:n=``,hash:r,uniquifyIDs:i}=t,a=[`id`,`href`,`xlink:href`,`xlink:role`,`xlink:arcrole`],o=[`href`,`xlink:href`],s=(e,t)=>o.includes(e)&&(t?!t.includes(`#`):!1);return i&&[...e.children].forEach(e=>{if(e.attributes?.length){let t=Object.values(e.attributes).map(e=>{let t=e,i=/url\((.*?)\)/.exec(e.value);return i?.[1]&&(t.value=e.value.replace(i[0],`url(${n}${i[1]}__${r})`)),t});a.forEach(e=>{let n=t.find(t=>t.name===e);n&&!s(e,n.value)&&(n.value=`${n.value}__${r}`)})}return e.children.length?lG(e,t):e}),e}function uG(e,t){let{baseURL:n,cacheRequests:r=!0,description:i,fetchOptions:a,onError:o,onLoad:s,preProcessor:c,src:l,title:u,uniqueHash:d,uniquifyIDs:f}=e,p=(0,B.useRef)(d??$W(8)),m=(0,B.useRef)(a),h=(0,B.useRef)(o),g=(0,B.useRef)(s),_=(0,B.useRef)(c);m.current=a,h.current=o,g.current=s,_.current=c;let[v,y]=(0,B.useReducer)((e,t)=>({...e,...t}),{content:``,element:null,isCached:!1,status:JW.IDLE},n=>{if(!(r&&t.isCached(l)))return n;let i=t.getContent(l);try{let t=sG({...e,handleError:()=>{},hash:p.current,content:i});if(!t)return{...n,content:i,isCached:!0,status:JW.LOADED};let r=BW(t);if(r&&(0,B.isValidElement)(r))return{content:i,element:r,isCached:!0,status:JW.READY}}catch{}return{...n,content:i,isCached:!0,status:JW.LOADED}}),{content:b,element:x,isCached:S,status:C}=v,w=aG(e),T=aG(v),E=(0,B.useRef)(!1),D=(0,B.useRef)(!1),O=(0,B.useCallback)(e=>{E.current&&(y({status:e.message===`Browser does not support SVG`?JW.UNSUPPORTED:JW.FAILED}),h.current?.(e))},[]),k=(0,B.useCallback)(()=>{try{let e=BW(sG({baseURL:n,content:b,description:i,handleError:O,hash:p.current,preProcessor:_.current,src:l,title:u,uniquifyIDs:f}));if(!e||!(0,B.isValidElement)(e))throw Error(`Could not convert the src to a React element`);y({element:e,status:JW.READY})}catch(e){O(e)}},[n,b,i,O,l,u,f]);return iG(()=>{if(E.current=!0,!(!XW()||D.current)){try{if(C===JW.READY)g.current?.(l,S);else if(C===JW.IDLE){if(!ZW())throw Error(`Browser does not support SVG`);if(!l)throw Error(`Missing src`);y({content:``,element:null,isCached:!1,status:JW.LOADING})}}catch(e){O(e)}return D.current=!0,()=>{E.current=!1}}}),(0,B.useEffect)(()=>{if(!(!XW()||!w)&&w.src!==l){if(!l){O(Error(`Missing src`));return}y({content:``,element:null,isCached:!1,status:JW.LOADING})}},[O,w,l]),(0,B.useEffect)(()=>{if(C!==JW.LOADING)return;let e=new AbortController,n=!0;return(async()=>{try{let i=/^data:image\/svg[^,]*?(;base64)?,(.*)/.exec(l),a;if(i?a=i[1]?window.atob(i[2]):decodeURIComponent(i[2]):l.includes(`<svg`)&&(a=l),a){n&&y({content:a,isCached:!1,status:JW.LOADED});return}let o={...m.current,signal:e.signal},s,c=!1;r?(c=t.isCached(l),s=await t.get(l,o)):s=await eG(l,o),n&&y({content:s,isCached:c,status:JW.LOADED})}catch(e){n&&e.name!==`AbortError`&&O(e)}})(),()=>{n=!1,e.abort()}},[r,t,O,l,C]),(0,B.useEffect)(()=>{C===JW.LOADED&&b&&k()},[b,k,C]),(0,B.useEffect)(()=>{!XW()||!w||w.src!==l||(w.title!==u||w.description!==i)&&k()},[i,k,w,l,u]),(0,B.useEffect)(()=>{T&&C===JW.READY&&T.status!==JW.READY&&g.current?.(l,S)},[S,T,l,C]),{element:x,status:C}}var dG=(0,B.createContext)(null);function fG(){return(0,B.useContext)(dG)}var pG=new nG;function mG(e){let{children:t=null,innerRef:n,loader:r=null}=e,{element:i,status:a}=uG(e,fG()??pG);return XW()?i?(0,B.cloneElement)(i,{ref:n,...QW(e,`baseURL`,`cacheRequests`,`children`,`description`,`fetchOptions`,`innerRef`,`loader`,`onError`,`onLoad`,`preProcessor`,`src`,`title`,`uniqueHash`,`uniquifyIDs`)}):[JW.UNSUPPORTED,JW.FAILED].includes(a)?t:r:r}var hG=window.location.hostname.endsWith(`iobroker.in`),gG=window.location.pathname.substring(0,window.location.pathname.lastIndexOf(`/`)+1),_G=B.forwardRef(function(e,t){if(e.src){if(typeof e.src==`string`){if(e.src.length<3)return e.sx?B.createElement($x,{component:`span`,sx:e.sx,ref:t,title:e.title||void 0,style:{height:27,marginTop:-8,...e.styleUTF8||e.style},className:e.className?`iconOwn ${e.className}`:`iconOwn`},e.src):B.createElement(`span`,{ref:t,title:e.title||void 0,style:{height:27,marginTop:-8,...e.styleUTF8||e.style},className:e.className?`iconOwn ${e.className}`:`iconOwn`},e.src);if(e.src.startsWith(`data:image/svg`))return B.createElement(mG,{title:e.title||void 0,src:e.src,className:e.className?`iconOwn ${e.className}`:`iconOwn`,width:e.style?.width||28,height:e.style?.height||e.style?.width||28,style:e.style||void 0});if(hG&&!e.src.startsWith(`http://`)&&!e.src.startsWith(`https://`)){let n=e.src;return n.startsWith(`./`)?n=gG+n.substring(2):n.startsWith(`/`)||(n=gG+n),e.sx?B.createElement($x,{component:`img`,sx:e.sx,title:e.title||void 0,style:e.style||void 0,className:e.className?`iconOwn ${e.className}`:`iconOwn`,src:`https://remote-files.iobroker.in${n}`,alt:e.alt||void 0,ref:t,onError:t=>e.onError?.(t)}):B.createElement(`img`,{title:e.title||void 0,style:e.style||void 0,className:e.className?`iconOwn ${e.className}`:`iconOwn`,src:`https://remote-files.iobroker.in${n}`,alt:e.alt||void 0,ref:t,onError:t=>e.onError?.(t)})}return e.sx?B.createElement($x,{component:`img`,sx:e.sx,title:e.title||void 0,style:e.style||void 0,className:e.className?`iconOwn ${e.className}`:`iconOwn`,src:e.src,alt:e.alt||void 0,ref:t,onError:e.onError}):B.createElement(`img`,{title:e.title||void 0,style:e.style||void 0,className:e.className?`iconOwn ${e.className}`:`iconOwn`,src:e.src,alt:e.alt||void 0,ref:t,onError:e.onError})}return e.src}return null});_G.displayName=`Icon`;var vG={dialog:{height:`100%`},paper:{height:`calc(100% - 64px)`},content:{textAlign:`center`},textarea:{width:`100%`,height:`100%`},img:{width:`auto`,height:`calc(100% - 5px)`,objectFit:`contain`},dialogTitle:{justifyContent:`space-between`,display:`flex`}},yG={images:[`png`,`jpg`,`svg`,`jpeg`,`bmp`,`gif`,`apng`,`avif`,`webp`,`ico`],code:[`js`,`json`,`json5`,`md`],txt:[`log`,`txt`,`html`,`css`,`xml`,`ics`,`csv`],audio:[`mp3`,`wav`,`ogg`,`acc`],video:[`mp4`,`mov`,`avi`]};function bG(e,t){let n=``,r=new Uint8Array(e?.data||e),i=r.byteLength;for(let e=0;e<i&&(t||e<50);e++)n+=String.fromCharCode(r[e]);return window.btoa(n)}var xG=class extends B.Component{timeout=null;constructor(e){super(e);let t=wA.getFileExtension(e.href);this.state={text:null,code:null,ext:t,editing:!1,editingValue:null,copyPossible:!!t&&(yG.code.includes(t)||yG.txt.includes(t)),forceUpdate:Date.now(),changed:!1,imgError:!1}}readFile(){if(this.props.href){let e=this.props.href.split(`/`);e.splice(0,2);let t=e[0],n=e.splice(1).join(`/`);this.props.socket.readFile(t,n).then(e=>{let t=``;e.file!==void 0&&(t=e.file);let r={copyPossible:this.state.copyPossible,ext:this.state.ext};if(t.type===`Buffer`)if(n.toLowerCase().endsWith(`.json5`)){r.ext=`json5`,r.copyPossible=!0;try{t=atob(bG(t,!0))}catch{console.error(`Cannot convert base64 to string`),t=``}}else{let e=wA.detectMimeType(bG(t));e&&(r.ext=e,r.copyPossible=yG.code.includes(e)||yG.txt.includes(e))}r.copyPossible&&(r.ext&&yG.txt.includes(r.ext)?(r.text=t,r.editingValue=t):r.ext&&yG.code.includes(r.ext)&&(r.code=t,r.editingValue=t)),this.setState(r)}).catch(e=>window.alert(`Cannot read file: ${e}`))}}componentDidMount(){this.readFile();let e=this.props.href.split(`/`);e.splice(0,2);let t=e[0],n=e.splice(1).join(`/`);this.props.supportSubscribes&&this.props.socket.subscribeFiles(t,n,this.onFileChanged).catch(e=>window.alert(`Cannot subscribe on file: ${e}`))}componentWillUnmount(){this.timeout&&=(clearTimeout(this.timeout),null);let e=this.props.href.split(`/`);e.splice(0,2);let t=e[0],n=e.splice(1).join(`/`);this.props.supportSubscribes&&this.props.socket.unsubscribeFiles(t,n,this.onFileChanged)}onFileChanged=(e,t,n)=>{this.state.changed||(this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.timeout=null,n===null?window.alert(`Show file was deleted!`):this.state.text!==null||this.state.code!==null?this.readFile():this.setState({forceUpdate:Date.now()})},300))};getEditorOrViewer(){return B.createElement(ZO,{variant:`standard`,style:vG.textarea,multiline:!0,value:this.state.editingValue||this.state.code||this.state.text,slotProps:{htmlInput:{readOnly:!this.state.editing}}})}getContent(){return this.state.ext&&yG.images.includes(this.state.ext)?this.state.imgError?B.createElement(jW,{style:{...vG.img,...this.props.getStyleBackgroundImage()}}):B.createElement(_G,{onError:e=>{e.target.onerror=null,this.setState({imgError:!0})},style:{...vG.img,...this.props.getStyleBackgroundImage()},src:`${this.props.href}?ts=${this.state.forceUpdate}`,alt:this.props.href}):this.state.ext&&yG.audio.includes(this.state.ext)?B.createElement(`div`,{style:{width:`100%`,height:`100%`,display:`flex`,justifyContent:`center`,alignItems:`center`}},B.createElement(`audio`,{style:{width:`100%`},src:this.props.href,controls:!0})):this.state.ext&&yG.video.includes(this.state.ext)?B.createElement(`div`,{style:{width:`100%`,height:`100%`,display:`flex`,justifyContent:`center`,alignItems:`center`}},B.createElement(`video`,{style:{width:`100%`,height:`100%`},controls:!0},B.createElement(`source`,{src:this.props.href,type:`video/${this.state.ext}`}))):this.state.code!==null||this.state.text!==null||this.state.editing?this.getEditorOrViewer():null}onSave(){}render(){return B.createElement(CC,{sx:{"&.MuiDialog-scrollPaper":vG.dialog,"& .MuiDialog-paper":vG.paper},scroll:`paper`,open:!!this.props.href,onClose:()=>this.props.onClose(),fullWidth:!0,maxWidth:`xl`,"aria-labelledby":`ar_dialog_file_view_title`},B.createElement(`div`,{style:vG.dialogTitle},B.createElement(BC,{id:`ar_dialog_file_view_title`},`${this.props.t(this.state.editing?`Edit`:`View`)}: ${this.props.href}`),this.state.ext&&yG.images.includes(this.state.ext)&&B.createElement(`div`,null,B.createElement(Ev,{size:`large`,color:`inherit`,onClick:this.props.setStateBackgroundImage},B.createElement(ok,null)))),B.createElement(NC,{style:vG.content},this.getContent()),B.createElement(DC,null,this.state.copyPossible?B.createElement(CS,{color:`grey`,onClick:e=>{e.stopPropagation(),e.preventDefault(),wA.copyToClipboard(this.state.text||this.state.code||``)},startIcon:B.createElement(pk,null)},this.props.t(`Copy content`)):null,this.state.editing?B.createElement(CS,{color:`grey`,disabled:this.state.editingValue===this.state.code||this.state.editingValue===this.state.text,variant:`contained`,onClick:()=>this.onSave(),startIcon:B.createElement(Bk,null)},this.props.t(`Save`)):null,B.createElement(CS,{variant:`contained`,onClick:()=>this.props.onClose(),color:`primary`,startIcon:B.createElement(uk,null)},this.props.t(`Close`))))}},SG=TW()(xG),CG=32,wG=32,TG=120,EG=64,DG=`Not found`,OG={all:kk,images:Dk,code:dk,txt:Tk,audio:tk,video:Jk},Q={root:{width:`100%`,overflow:`hidden`,height:`100%`,position:`relative`},filesDiv:{width:`calc(100% - 8px)`,overflowX:`hidden`,overflowY:`auto`,padding:8},filesDivHint:{position:`absolute`,bottom:0,left:20,opacity:.7,fontStyle:`italic`,fontSize:12},filesDivTable:{height:`calc(100% - 56px)`},filesDivTile:{height:`calc(100% - 104px)`,display:`flex`,alignContent:`flex-start`,alignItems:`stretch`,flexWrap:`wrap`,flex:`0 0 ${EG}px`},itemTile:e=>({position:`relative`,userSelect:`none`,cursor:`pointer`,height:TG,width:EG,display:`inline-block`,textAlign:`center`,opacity:.1,transition:`opacity 1s`,margin:`4px`,borderRadius:`4px`,"&:hover":{background:e.palette.secondary.light,color:wA.invertColor(e.palette.secondary.main,!0)}}),itemNameFolderTile:{fontWeight:`bold`},itemNameTile:{width:`100%`,height:32,overflow:`hidden`,textOverflow:`ellipsis`,fontSize:12,textAlign:`center`,wordBreak:`break-all`},itemFolderIconTile:e=>({width:`100%`,height:TG-32-16-8,display:`block`,pl:1,color:e.palette.secondary.main||`#fbff7d`}),itemFolderIconBack:e=>({position:`absolute`,top:22,left:18,zIndex:1,color:(e.palette.mode,`#FFF`)}),itemSizeTile:{width:`100%`,height:16,textAlign:`center`,fontSize:10},itemImageTile:{width:`calc(100% - 8px)`,height:TG-32-16-8,margin:4,display:`block`,textAlign:`center`,objectFit:`contain`},itemIconTile:{width:`100%`,height:TG-32-16-8,display:`block`,objectFit:`contain`},itemSelected:e=>({background:e.palette.primary.main,color:wA.invertColor(e.palette.primary.main,!0)}),itemTable:e=>({userSelect:`none`,cursor:`pointer`,height:CG,display:`inline-flex`,lineHeight:`${CG}px`,"&:hover":{background:e.palette.secondary.light,color:wA.invertColor(e.palette.secondary.main,!0)}}),itemNameTable:{display:`inline-block`,pl:`10px`,fontSize:`1rem`,verticalAlign:`top`,flexGrow:1,textOverflow:`ellipsis`,whiteSpace:`nowrap`,overflow:`hidden`,"@media screen and (max-width: 500px)":{textAlign:`end`,direction:`rtl`}},itemNameFolderTable:{fontWeight:`bold`},itemSizeTable:{display:`inline-block`,width:60,verticalAlign:`top`,textAlign:`right`,whiteSpace:`nowrap`},itemAccessTable:{verticalAlign:`top`,width:60,textAlign:`right`,paddingRight:5,display:`flex`,justifyContent:`center`},itemImageTable:{display:`inline-block`,width:30,marginTop:1,objectFit:`contain`,maxHeight:30},itemNoImageTable:{marginTop:6},itemIconTable:{display:`inline-block`,marginTop:1,width:30,height:30},itemFolderTable:{},itemFolderTemp:{opacity:.4},itemFolderIconTable:e=>({marginTop:`1px`,marginLeft:`8px`,display:`inline-block`,width:30,height:30,color:e.palette.secondary.main||`#fbff7d`}),itemDownloadButtonTable:e=>({display:`inline-block`,width:wG,height:CG,minWidth:wG,verticalAlign:`middle`,textAlign:`center`,padding:0,borderRadius:`${wG/2}px`,"&:hover":{backgroundColor:e.palette.mode===`dark`?`rgba(255, 255, 255, 0.08)`:`rgba(0, 0, 0, 0.08)`},"& span":{pt:`9px`},"& svg":{width:14,height:14,fontSize:`1rem`,mt:`-3px`,verticalAlign:`middle`,color:e.palette.mode===`dark`?`#EEE`:`#111`}}),itemDownloadEmptyTable:{display:`inline-block`,width:wG,height:CG,minWidth:wG,padding:0},itemAclButtonTable:{width:wG,height:CG,minWidth:wG,verticalAlign:`top`,padding:0,fontSize:12,display:`flex`},itemDeleteButtonTable:{display:`inline-block`,width:wG,height:CG,minWidth:wG,verticalAlign:`top`,padding:0,"& svg":{width:18,height:18,fontSize:`1.5rem`}},uploadDiv:{top:0,zIndex:1,bottom:0,left:0,right:0,position:`absolute`,opacity:.9,textAlign:`center`,background:`#FFFFFF`},uploadDivDragging:{opacity:1},uploadCenterDiv:e=>({m:`20px`,border:`3px dashed grey`,borderRadius:`30px`,width:`calc(100% - 40px)`,height:`calc(100% - 40px)`,position:`relative`,color:e.palette.mode===`dark`?`#222`:`#CCC`,display:`flex`,alignItems:`center`,justifyContent:`center`}),uploadCenterIcon:{width:`25%`,height:`25%`},uploadCenterText:{fontSize:24,fontWeight:`bold`},uploadCloseButton:{zIndex:2,position:`absolute`,top:30,right:30},uploadCenterTextAndIcon:{position:`absolute`,height:`30%`,width:`100%`,margin:`auto`,opacity:.3},menuButtonExpertActive:{color:`#c00000`},menuButtonRestrictActive:{color:`#c05000`},pathDiv:e=>({display:`flex`,width:`calc(100% - 16px)`,ml:1,mr:1,textOverflow:`clip`,overflow:`hidden`,whiteSpace:`nowrap`,backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText,borderRadius:`4px 4px 0 0`}),pathDivInput:{width:`100%`},pathDivBreadcrumbDir:e=>({pl:`2px`,pr:`2px`,cursor:`pointer`,color:`white`,"&:hover":{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText}}),pathDivBreadcrumbSelected:{color:`#FFF`},backgroundImageLight:{background:`white`},backgroundImageDark:{background:`black`},backgroundImageColored:{background:`silver`},specialFolder:e=>({color:e.palette.mode===`dark`?`#229b0f`:`#5dd300`}),tooltip:{pointerEvents:`none`}},kG=`0_userdata.0`;function AG(e){let t=(e||``).split(`/`);return t.length&&t.pop(),t.join(`/`)}function jG(e){let t=wA.getFileExtension(e);return!!(t?.toLowerCase().match(/[a-z]+/)&&t.length<5)}var MG=`Table`,NG=`Tile`;function PG(e,t){return e.folder&&t.folder?e.name>t.name?1:e.name<t.name?-1:0:e.folder?-1:t.folder||e.name>t.name?1:e.name<t.name?-1:0}var FG=class e extends B.Component{imagePrefix;levelPadding;mounted;suppressDeleteConfirm;browseList;browseListRunning;initialReadFinished;supportSubscribes;_tempTimeout;limitToObjectID=null;limitToPath=null;lastSelect=null;lastNav=null;applyingNav=!1;setOpacityTimer=null;cacheFoldersTimeout=null;foldersLoading=null;cacheFolders=null;localStorage;scrollPositions={};refFileDiv;constructor(e){super(e),this.localStorage=window._localStorage||window.localStorage;let t=this.localStorage.getItem(`files.expanded`)||`[]`;if(this.refFileDiv=B.createRef(),this.props.limitPath){let e=this.props.limitPath.split(`/`);this.limitToObjectID=e[0],this.limitToPath=e.length?e.length===1&&e[0]===``?null:e.join(`/`):null,this.limitToPath&&this.limitToPath.endsWith(`/`)&&this.limitToPath.substring(0,this.limitToPath.length-1)}let n;try{n=JSON.parse(t),this.limitToPath&&(n=n.filter(e=>e.startsWith(`${this.limitToPath}/`)||e===this.limitToPath||this.limitToPath?.startsWith(`${e}/`)))}catch{n=[]}let r;r=this.props.showViewTypeButton&&this.localStorage.getItem(`files.viewType`)||MG;let i=this.props.selected||this.localStorage.getItem(`files.selected`)||kG,a;if(e.restrictToFolder){i=e.restrictToFolder,a=e.restrictToFolder;let t=e.restrictToFolder.split(`/`);n=[];let r=``;for(let e=0;e<t.length;e++)r+=(r?`/`:``)+t[e],n.push(r)}else Array.isArray(i)&&(i=i[0]),a=jG(i)?AG(i):i;let o=this.localStorage.getItem(`files.backgroundImage`)||null;this.state={viewType:r,folders:{},filterEmpty:this.localStorage.getItem(`files.empty`)!==`false`,expanded:n,currentDir:a,expertMode:!!e.expertMode,addFolder:!1,uploadFile:!1,deleteItem:``,viewer:``,formatEditFile:``,path:i,selected:i,errorText:``,modalEditOfAccess:!1,backgroundImage:o,queueLength:0,loadAllFolders:!1,fileErrors:[],filterByType:e.filterByType||window.localStorage.getItem(`files.filterByType`)||``,showTypesMenu:null,restrictToFolder:e.restrictToFolder||``,pathFocus:!1,suppressDeleteConfirm:!1},this.imagePrefix=this.props.imagePrefix||`./files/`,this.levelPadding=this.props.levelPadding||20,this.mounted=!0,this.suppressDeleteConfirm=0,this.browseList=[],this.browseListRunning=!1,this.initialReadFinished=!1,this.supportSubscribes=null,this._tempTimeout={}}static getDerivedStateFromProps(e,t){return e.expertMode!==void 0&&e.expertMode!==t.expertMode?{expertMode:e.expertMode,loadAllFolders:!0}:null}async loadFolders(){this.initialReadFinished=!1;let e=await this.browseFolder(`/`);this.state.viewType===MG?e=await this.browseFolders([...this.state.expanded],e):this.state.currentDir&&this.state.currentDir!==`/`&&(!this.limitToObjectID||this.state.currentDir.startsWith(this.limitToObjectID))&&(e=await this.browseFolder(this.state.currentDir,e)),this.setState({folders:e},()=>{if(this.state.viewType===MG&&!this.findItem(this.state.selected)){let e=this.state.selected.split(`/`);for(;e.length&&!this.findItem(e.join(`/`));)e.pop();let t;t=e.length?e.join(`/`):kG,this.setState({selected:t,path:t,pathFocus:!1},()=>this.scrollToSelected())}else this.scrollToSelected();this.initialReadFinished=!0})}scrollToSelected(){this.mounted&&document.getElementById(this.state.selected)?.scrollIntoView()}async componentDidMount(){this.mounted=!0,this.loadFolders().then(()=>this.applyInitialNavigateTo()).catch(e=>console.error(`Cannot load folders: ${e}`)),this.browseList=[],this.browseListRunning=!1,this.supportSubscribes=await this.props.socket.checkFeatureSupported(`BINARY_STATE_EVENT`),this.supportSubscribes&&await this.props.socket.subscribeFiles(`*`,`*`,this.onFileChange)}componentWillUnmount(){this.supportSubscribes&&this.props.socket.unsubscribeFiles(`*`,`*`,this.onFileChange),this.mounted=!1,this.browseList=null,this.browseListRunning=!1,Object.values(this._tempTimeout).forEach(e=>{e&&clearTimeout(e)}),this._tempTimeout={}}browseFoldersCb(e,t,n){if(!e?.length)n(t);else{let r=e.shift();r?this.browseFolder(r,t).catch(e=>console.error(`Cannot read folder ${r}: ${e.message}`)).then(()=>{setTimeout(()=>this.browseFoldersCb(e,t,n),0)}):setTimeout(()=>this.browseFoldersCb(e,t,n),0)}}browseFolders(e,t){let n;return t?n=t:(n={},Object.keys(this.state.folders).forEach(e=>n[e]=this.state.folders[e])),e?.length?new Promise(t=>{this.browseFoldersCb(e,n,t)}):Promise.resolve(n)}readDirSerial(e,t){return new Promise((n,r)=>{this.browseList&&(this.browseList.push({resolve:n,reject:r,adapter:e,relPath:t}),this.browseListRunning||this.processBrowseList())})}processBrowseList(e=0){!this.browseListRunning&&this.browseList&&this.browseList.length&&(this.browseListRunning=!0,this.browseList.length>10&&this.browseList.length%10||this.setState({queueLength:this.browseList.length}),this.browseList[0].processing=!0,this.props.socket.readDir(this.browseList[0].adapter,this.browseList[0].relPath||``).then(t=>{if(this.browseList){let n=this.browseList.shift();if(n){let r=n.resolve;n.resolve=null,n.reject=null,n.adapter=null,n.relPath=null,r&&r(t),this.browseListRunning=!1,this.browseList.length?e<5?this.processBrowseList(e+1):setTimeout(()=>this.processBrowseList(0),0):this.setState({queueLength:0})}else this.setState({queueLength:0})}}).catch(t=>{if(this.browseList){let n=this.browseList.shift();if(n){let r=n.reject;n.resolve=null,n.reject=null,n.adapter=null,n.relPath=null,r&&r(t),this.browseListRunning=!1,this.browseList.length?e<5?this.processBrowseList(e+1):setTimeout(()=>this.processBrowseList(0),0):this.setState({queueLength:0})}else this.setState({queueLength:0})}}))}async browseFolder(e,t,n,r){let i;if(t?i=t:(i={},Object.keys(this.state.folders).forEach(e=>{i[e]=this.state.folders[e]})),i[e]&&!r)return n?Promise.resolve(i):new Promise((t,n)=>{Promise.all(i[e].filter(e=>e.folder).map(e=>this.browseFolder(e.id,i,!0).catch(()=>void 0))).then(()=>t(i)).catch(e=>n(Error(e)))});if(!e||e===`/`){try{let t=await this.props.socket.readMetaItems(),r=[],a=null;if(this.state.restrictToFolder){let e=this.state.restrictToFolder.split(`/`)[0];t=t.filter(t=>t._id===e)}else this.state.expertMode||(t=t.filter(e=>!e._id.endsWith(`.admin`)));let o=t.findIndex(e=>e._id===`system.meta.uuid`);if(o!==-1&&t.splice(o,1),t.forEach(e=>{if(this.limitToObjectID&&this.limitToObjectID!==e._id)return;let t={id:e._id,name:e._id,title:e.common&&e.common.name||e._id,meta:!0,from:e.from,ts:e.ts,color:e.common&&e.common.color,icon:e.common&&e.common.icon,folder:!0,acl:e.acl,level:0};t.id===kG?a=t:r.push(t)}),r.sort((e,t)=>e.id>t.id?1:e.id<t.id?-1:0),(!this.limitToObjectID||this.limitToObjectID===kG)&&a&&r.unshift(a),i[e||`/`]=r,!n)return Promise.all(r.filter(e=>e.folder).map(e=>this.browseFolder(e.id,i,!0).catch(()=>void 0))).then(()=>i)}catch(t){let n=t;this.initialReadFinished&&window.alert(`Cannot read meta items: ${n.message}`),i[e||`/`]=[]}return i}let a=e.split(`/`),o=a.length,s=a.shift(),c=a.join(`/`),l;try{l=await this.readDirSerial(s||``,c)}catch(e){if(e===`Not exists`&&s===`0_userdata.0`)l=[];else throw e}try{let t=[];if(l.forEach(n=>{let r={id:`${e}/${n.file}`,ext:wA.getFileExtension(n.file),folder:n.isDir,name:n.file,size:n.stats?.size,modified:n.modifiedAt,acl:n.acl,level:o};this.state.restrictToFolder?(r.folder&&(r.id.startsWith(`${this.state.restrictToFolder}/`)||r.id===this.state.restrictToFolder||this.state.restrictToFolder.startsWith(`${r.id}/`))||r.id.startsWith(`${this.state.restrictToFolder}/`))&&t.push(r):this.limitToPath?(r.folder&&(r.id.startsWith(`${this.limitToPath}/`)||r.id===this.limitToPath||this.limitToPath.startsWith(`${r.id}/`))||r.id.startsWith(`${this.limitToPath}/`))&&t.push(r):t.push(r)}),t.sort(PG),i[e]=t,!n)return Promise.all(t.filter(e=>e.folder).map(e=>this.browseFolder(e.id,i,!0))).then(()=>i)}catch(t){let n=t;this.initialReadFinished&&window.alert(`Cannot read ${s}${c?`/${c}`:``}: ${n?.message}`),i[e]=[]}return i}toggleFolder(e,t){t?.stopPropagation();let n=[...this.state.expanded],r=n.indexOf(e.id);r===-1?(n.push(e.id),n.sort(),this.localStorage.setItem(`files.expanded`,JSON.stringify(n)),e.temp?this.setState({expanded:n}):this.browseFolder(e.id).then(e=>this.setState({expanded:n,folders:e})).catch(t=>window.alert(t===DG?this.props.t(`ra_Cannot find "%s"`,e.id):this.props.t(`ra_Cannot read "%s"`,e.id)))):(n.splice(r,1),this.localStorage.setItem(`files.expanded`,JSON.stringify(n)),this.setState({expanded:n}))}onFileChange=(e,t,n)=>{let r=`${e}/${t}`,i=r.lastIndexOf(`/`),a=r.substring(0,i);console.log(`File changed ${r}[${n}]`),this.state.folders[a]&&(this._tempTimeout[a]&&clearTimeout(this._tempTimeout[a]),this._tempTimeout[a]=setTimeout(()=>{delete this._tempTimeout[a],this.browseFolder(a,null,!1,!0).then(e=>this.setState({folders:e})).catch(e=>console.error(`Cannot read folder: ${e.message}`))},300))};changeFolder(e,t){e?.stopPropagation(),this.lastSelect=Date.now();let n=t||AG(this.state.currentDir);if(n===`/`&&(n=``),this.state.viewType===`Tile`&&this.refFileDiv.current?.scrollTop&&(this.scrollPositions[this.state.currentDir]=this.refFileDiv.current.scrollTop),this.localStorage.setItem(`files.currentDir`,n),t&&e&&(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)){this.setState({selected:n});return}if(n&&!this.state.folders[n]){this.browseFolder(n).then(e=>this.setState({folders:e,path:n,currentDir:n,selected:n,pathFocus:!1},()=>this.props.onSelect&&this.props.onSelect(``))).catch(e=>console.error(`Cannot read folder: ${e.message}`));return}this.setState({currentDir:n,selected:n,path:n,pathFocus:!1},()=>{if(this.props.onSelect&&this.props.onSelect(``),this.state.viewType===`Tile`&&this.scrollPositions[this.state.currentDir]){let e=this.scrollPositions[this.state.currentDir];delete this.scrollPositions[this.state.currentDir],this.refFileDiv.current&&(this.refFileDiv.current.scrollTop=e)}})}select(e,t,n){t&&t.stopPropagation(),this.lastSelect=Date.now(),this.localStorage.setItem(`files.selected`,e),this.setState({selected:e,path:e,pathFocus:!1},()=>{if(this.props.onSelect){let t=wA.getFileExtension(e);(!this.props.filterFiles||t&&this.props.filterFiles.includes(t))&&(!this.state.filterByType||t&&yG[this.state.filterByType].includes(t))?this.props.onSelect(e,!1,!!this.state.folders[e]):this.props.onSelect(``)}n&&n()})}getText(e){if(e)return typeof e==`object`?e[this.props.lang]||e.en||void 0:e}renderFolder(e,t){if(this.state.filterEmpty&&!this.state.folders[e.id]?.length&&e.id!==kG&&!e.temp)return null;let n=t?AW:kW,r=this.state.viewType===MG?e.level*this.levelPadding:0,i=e.name===kG,a=i||e.name===`vis.0`||e.name===`vis-2.0`,o=wA.getStyle(this.props.theme,Q[`itemFolderIcon${this.state.viewType}`],a&&Q.specialFolder);return B.createElement($x,{component:`div`,key:e.id,id:e.id,style:this.state.viewType===MG?{marginLeft:r,width:`calc(100% - ${r}px)`}:void 0,onClick:t=>this.state.viewType===MG?this.select(e.id,t):this.changeFolder(t,e.id),onDoubleClick:t=>this.state.viewType===MG&&this.toggleFolder(e,t),title:this.getText(e.title),className:`browserItem`,sx:wA.getStyle(this.props.theme,Q[`item${this.state.viewType}`],Q[`itemFolder${this.state.viewType}`],this.state.selected===e.id?Q.itemSelected:{},e.temp?Q.itemFolderTemp:{})},B.createElement(n,{style:o,onClick:this.state.viewType===MG?t=>this.toggleFolder(e,t):void 0}),B.createElement($x,{component:`div`,sx:wA.getStyle(this.props.theme,Q[`itemName${this.state.viewType}`],Q[`itemNameFolder${this.state.viewType}`])},i?this.props.t(`ra_User files`):e.name),B.createElement($x,{component:`div`,style:Q[`itemSize${this.state.viewType}`],sx:{display:{md:`inline-block`,sm:`none`}}},this.state.viewType===MG&&this.state.folders[e.id]?this.state.folders[e.id].length:``),B.createElement($x,{component:`div`,sx:{display:{md:`inline-block`,sm:`none`}}},this.state.viewType===MG&&this.props.expertMode?this.formatAcl(e.acl):null),this.state.viewType===MG&&this.props.expertMode?B.createElement($x,{component:`div`,sx:{...Q.itemDeleteButtonTable,display:{md:`inline-block`,sm:`none`}}}):null,this.state.viewType===MG&&this.props.allowDownload?B.createElement(`div`,{style:Q[`itemDownloadEmpty${this.state.viewType}`]}):null,this.state.viewType===MG&&this.props.allowDelete&&this.state.folders[e.id]&&this.state.folders[e.id].length?B.createElement(Ev,{"aria-label":`delete`,onClick:t=>{t.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(e.id):this.setState({deleteItem:e.id})},sx:Q[`itemDeleteButton${this.state.viewType}`],size:`large`},B.createElement(_k,{fontSize:`small`})):this.state.viewType===MG&&this.props.allowDelete?B.createElement($x,{component:`div`,sx:Q[`itemDeleteButton${this.state.viewType}`]}):null)}renderBackFolder(){return B.createElement($x,{component:`div`,key:this.state.currentDir,id:this.state.currentDir,onClick:e=>this.changeFolder(e),title:this.props.t(`ra_Back to %s`,AG(this.state.currentDir)),className:`browserItem`,sx:wA.getStyle(this.props.theme,Q[`item${this.state.viewType}`],Q[`itemFolder${this.state.viewType}`])},B.createElement(kW,{style:wA.getStyle(this.props.theme,Q[`itemFolderIcon${this.state.viewType}`])}),B.createElement($O,{sx:Q.itemFolderIconBack}),B.createElement($x,{component:`div`,sx:wA.getStyle(this.props.theme,Q[`itemName${this.state.viewType}`],Q[`itemNameFolder${this.state.viewType}`])},`..`))}formatSize(e){return B.createElement(`div`,{style:Q[`itemSize${this.state.viewType}`]},e||e===0?wA.formatBytes(e):``)}formatAcl(e){let t=e?e.permissions||e.file:0,n;return n=t?t.toString(16).padStart(3,`0`):``,B.createElement(`div`,{style:Q[`itemAccess${this.state.viewType}`]},this.props.modalEditOfAccessControl?B.createElement(Ev,{size:`large`,onClick:()=>this.setState({modalEditOfAccess:!0}),sx:Q[`itemAclButton${this.state.viewType}`]},n||`---`):n||`---`)}getFileIcon(e){switch(e){case`json`:case`json5`:return B.createElement(rk,{style:Q[`itemIcon${this.state.viewType}`]});case`css`:return B.createElement(ik,{style:Q[`itemIcon${this.state.viewType}`]});case`js`:case`ts`:return B.createElement(dk,{style:Q[`itemIcon${this.state.viewType}`]});case`html`:case`md`:return B.createElement(vk,{style:Q[`itemIcon${this.state.viewType}`]});case`mp3`:case`ogg`:case`wav`:case`m4a`:case`mp4`:case`flac`:return B.createElement(Fk,{style:Q[`itemIcon${this.state.viewType}`]});default:return B.createElement(kk,{style:Q[`itemIcon${this.state.viewType}`]})}}static getEditFile(e){switch(e){case`json`:case`json5`:case`js`:case`html`:case`txt`:case`css`:case`log`:case`csv`:return!0;default:return!1}}setStateBackgroundImage=()=>{let e=[`light`,`dark`,`colored`,`delete`];this.setState(({backgroundImage:t})=>t&&e.indexOf(t)!==-1&&e.length-1!==e.indexOf(t)?(this.localStorage.setItem(`files.backgroundImage`,e[e.indexOf(t)+1]),{backgroundImage:e[e.indexOf(t)+1]}):(this.localStorage.setItem(`files.backgroundImage`,e[0]),{backgroundImage:e[0]}))};getStyleBackgroundImage=()=>{switch(this.state.backgroundImage){case`light`:return Q.backgroundImageLight;case`dark`:return Q.backgroundImageDark;case`colored`:return Q.backgroundImageColored;case`delete`:return null;default:return null}};renderFile(t){let n=this.state.viewType===MG?t.level*this.levelPadding:0,r=wA.getFileExtension(t.name);return B.createElement($x,{component:`div`,key:t.id,id:t.id,onDoubleClick:e=>{e.stopPropagation(),this.props.onSelect?(!this.props.filterFiles||t.ext&&this.props.filterFiles.includes(t.ext))&&(!this.state.filterByType||t.ext&&yG[this.state.filterByType].includes(t.ext))&&this.props.onSelect(t.id,!0,!!this.state.folders[t.id]):this.setState({viewer:this.imagePrefix+t.id,formatEditFile:r})},onClick:e=>this.select(t.id,e),style:this.state.viewType===MG?{marginLeft:n,width:`calc(100% - ${n}px)`}:void 0,className:`browserItem`,sx:wA.getStyle(this.props.theme,Q[`item${this.state.viewType}`],Q[`itemFile${this.state.viewType}`],this.state.selected===t.id?Q.itemSelected:void 0)},r&&yG.images.includes(r)?this.state.fileErrors.includes(t.id)?B.createElement(jW,{style:{...Q[`itemImage${this.state.viewType}`],...this.getStyleBackgroundImage(),...Q[`itemNoImage${this.state.viewType}`]}}):B.createElement(_G,{onError:e=>{e.target.onerror=null;let n=[...this.state.fileErrors];n.includes(t.id)||(n.push(t.id),this.setState({fileErrors:n}))},style:{...Q[`itemImage${this.state.viewType}`],...this.getStyleBackgroundImage()},src:this.imagePrefix+t.id,alt:t.name}):this.getFileIcon(r),B.createElement($x,{component:`div`,sx:Q[`itemName${this.state.viewType}`]},t.name),B.createElement($x,{component:`div`,sx:{display:{md:`inline-block`,sm:`none`}}},this.formatSize(t.size)),B.createElement($x,{component:`div`,sx:{display:{md:`inline-block`,sm:`none`}}},this.state.viewType===MG&&this.props.expertMode?this.formatAcl(t.acl):null),B.createElement($x,{component:`div`,sx:{display:{md:`inline-block`,sm:`none`}}},this.state.viewType===MG&&this.props.expertMode&&e.getEditFile(r)?B.createElement(Ev,{"aria-label":`edit`,onClick:e=>{e.stopPropagation(),this.props.onSelect?(!this.props.filterFiles||t.ext&&this.props.filterFiles.includes(t.ext))&&(!this.state.filterByType||t.ext&&yG[this.state.filterByType].includes(t.ext))&&this.props.onSelect(t.id,!0,!!this.state.folders[t.id]):this.setState({viewer:this.imagePrefix+t.id,formatEditFile:r})},sx:Q.itemDeleteButtonTable,size:`large`},B.createElement(bk,{fontSize:`small`})):B.createElement($x,{component:`div`,sx:Q[`itemDeleteButton${this.state.viewType}`]})),this.state.viewType===MG&&this.props.allowDownload?B.createElement($x,{component:`a`,className:`MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeLarge`,sx:Q.itemDownloadButtonTable,tabIndex:0,download:t.id,href:this.imagePrefix+t.id,onClick:e=>e.stopPropagation()},B.createElement(Vk,null)):null,this.state.viewType===MG&&this.props.allowDelete&&t.id!==`vis.0/`&&t.id!==`vis-2.0/`&&t.id!==kG?B.createElement(Ev,{"aria-label":`delete`,onClick:e=>{e.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(t.id):this.setState({deleteItem:t.id})},sx:Q[`itemDeleteButton${this.state.viewType}`],size:`large`},B.createElement(_k,{fontSize:`small`})):this.state.viewType===MG&&this.props.allowDelete?B.createElement($x,{component:`div`,sx:Q[`itemDeleteButton${this.state.viewType}`]}):null)}renderItems(e){if(this.state.folders?.[e]){if(this.state.viewType===NG){let t=[];return e&&e!==`/`&&t.push(this.renderBackFolder()),this.state.folders[e].forEach(e=>{e.folder?t.push(this.renderFolder(e)):(!this.props.filterFiles||e.ext&&this.props.filterFiles.includes(e.ext))&&(!this.state.filterByType||e.ext&&yG[this.state.filterByType].includes(e.ext))&&t.push(this.renderFile(e))}),t}let t=[];return this.state.folders[e].forEach(e=>{if(e.folder){let n=this.state.expanded.includes(e.id),r=this.renderFolder(e,n);if(Array.isArray(r)?r.forEach(e=>t.push(e)):t.push(r),this.state.folders[e.id]&&n){let n=this.renderItems(e.id);Array.isArray(n)?n.forEach(e=>t.push(e)):t.push(n)}}else (!this.props.filterFiles||e.ext&&this.props.filterFiles.includes(e.ext))&&(!this.state.filterByType||e.ext&&yG[this.state.filterByType].includes(e.ext))&&t.push(this.renderFile(e))}),t}return B.createElement(`div`,{style:{position:`relative`}},B.createElement(bv,{key:e,color:`secondary`,size:24}),B.createElement(`div`,{style:{position:`absolute`,zIndex:2,top:4,width:24,textAlign:`center`}},this.state.queueLength))}renderToolbar(){let e=this.props.showTypeSelector?OG[this.state.filterByType||`all`]||OG.all:null,t=this.findFirstFolder(this.state.selected);return B.createElement(gO,{key:`toolbar`,variant:`dense`},this.props.allowNonRestricted&&this.props.restrictToFolder?B.createElement(Ev,{edge:`start`,title:this.state.restrictToFolder?this.props.t(`ra_Show all folders`):this.props.t(`ra_Restrict to folder`),style:{...Q.menuButton,...this.state.restrictToFolder?Q.menuButtonRestrictActive:void 0},"aria-label":`restricted to folder`,onClick:()=>this.setState({restrictToFolder:(this.state.restrictToFolder?``:this.props.restrictToFolder)||``,loadAllFolders:!0}),size:`small`},B.createElement(wk,{fontSize:`small`})):null,this.props.showExpertButton?B.createElement(Ev,{edge:`start`,title:this.props.t(`ra_Toggle expert mode`),style:{...Q.menuButton,...this.state.expertMode?Q.menuButtonExpertActive:void 0},"aria-label":`expert mode`,onClick:()=>this.setState({expertMode:!this.state.expertMode}),size:`small`},B.createElement(OW,null)):null,this.props.showViewTypeButton?B.createElement(Ev,{edge:`start`,title:this.props.t(`ra_Toggle view mode`),style:Q.menuButton,"aria-label":`view mode`,onClick:()=>{let e=this.state.viewType===MG?NG:MG;this.localStorage.setItem(`files.viewType`,e);let t=this.state.selected;jG(t)&&(t=AG(t)),this.setState({viewType:e,currentDir:t},()=>{this.state.viewType===MG&&this.scrollToSelected()})},size:`small`},this.state.viewType===MG?B.createElement(Xk,{fontSize:`small`}):B.createElement(Mk,{fontSize:`small`})):null,B.createElement(Ev,{edge:`start`,title:this.props.t(`ra_Hide empty folders`),style:Q.menuButton,color:this.state.filterEmpty?`secondary`:`inherit`,"aria-label":`filter empty`,onClick:()=>{this.localStorage.setItem(`file.empty`,this.state.filterEmpty?`false`:`true`),this.setState({filterEmpty:!this.state.filterEmpty})},size:`small`},B.createElement(Ck,{fontSize:`small`})),B.createElement(Ev,{edge:`start`,title:this.props.t(`ra_Reload files`),style:Q.menuButton,color:`inherit`,"aria-label":`reload files`,onClick:()=>this.setState({folders:{}},()=>this.loadFolders()),size:`small`},B.createElement(Rk,{fontSize:`small`})),this.props.allowCreateFolder?B.createElement(Ev,{edge:`start`,disabled:!this.state.selected||!t||!!this.limitToPath&&!this.state.selected.startsWith(`${this.limitToPath}/`)&&this.limitToPath!==this.state.selected,title:this.props.t(`ra_Create folder`),style:Q.menuButton,color:`inherit`,"aria-label":`add folder`,onClick:()=>this.setState({addFolder:!0}),size:`small`},B.createElement(hk,{fontSize:`small`})):null,this.props.allowUpload?B.createElement(Ev,{edge:`start`,disabled:!this.state.selected||!t||!!this.limitToPath&&!this.state.selected.startsWith(`${this.limitToPath}/`)&&this.limitToPath!==this.state.selected,title:this.props.t(`ra_Upload file`),style:Q.menuButton,color:`inherit`,"aria-label":`upload file`,onClick:()=>this.setState({uploadFile:!0}),size:`small`},B.createElement(Lk,{fontSize:`small`})):null,this.props.showTypeSelector&&e?B.createElement(TD,{title:this.props.t(`ra_Filter files`),slotProps:{popper:{sx:Q.tooltip}}},B.createElement(Ev,{size:`small`,onClick:e=>this.setState({showTypesMenu:e.target})},B.createElement(e,{fontSize:`small`}))):null,this.state.showTypesMenu?B.createElement(mE,{open:!0,anchorEl:this.state.showTypesMenu,onClose:()=>this.setState({showTypesMenu:null})},Object.keys(OG).map(e=>{let t=OG[e];return B.createElement(bE,{key:e,selected:this.state.filterByType===e,onClick:()=>{e===`all`?(this.localStorage.removeItem(`files.filterByType`),this.setState({filterByType:``,showTypesMenu:null})):(this.localStorage.setItem(`files.filterByType`,e),this.setState({filterByType:e,showTypesMenu:null}))}},B.createElement(BT,null,B.createElement(t,{fontSize:`small`})),B.createElement(GT,null,this.props.t(`ra_fileType_${e}`)))})):null,B.createElement(TD,{title:this.props.t(`ra_Background image`),slotProps:{popper:{sx:Q.tooltip}}},B.createElement(Ev,{color:`inherit`,edge:`start`,style:Q.menuButton,onClick:this.setStateBackgroundImage,size:`small`},B.createElement(ok,{fontSize:`small`}))),this.state.viewType!==MG&&this.props.allowDelete?B.createElement(TD,{title:this.props.t(`ra_Delete`),slotProps:{popper:{sx:Q.tooltip}}},B.createElement(`span`,null,B.createElement(Ev,{"aria-label":`delete`,disabled:!this.state.selected||this.state.selected===`vis.0/`||this.state.selected===`vis-2.0/`||this.state.selected===kG,color:`inherit`,edge:`start`,style:Q.menuButton,onClick:e=>{e.stopPropagation(),this.suppressDeleteConfirm>Date.now()?this.deleteItem(this.state.selected):this.setState({deleteItem:this.state.selected})},size:`small`},B.createElement(_k,{fontSize:`small`})))):null)}findItem(e,t){if(t||=this.state.folders,!t)return null;let n=e.split(`/`);n.pop();let r=n.join(`/`)||`/`;return t[r]&&t[r].find(t=>t.id===e)||null}renderInputDialog(){if(this.state.addFolder){let e=this.findFirstFolder(this.state.selected);return e?B.createElement(DW,{key:`inputDialog`,applyText:this.props.t(`ra_Create`),cancelText:this.props.t(`ra_Cancel`),titleText:this.props.t(`ra_Create new folder in %s`,this.state.selected),promptText:this.props.t(`ra_If no file will be created in the folder, it will disappear after the browser closed`),labelText:this.props.t(`ra_Folder name`),verify:t=>this.state.folders[e].find(e=>e.name===t)?``:this.props.t(`ra_Duplicate name`),onClose:t=>{if(t){let n={};Object.keys(this.state.folders).forEach(e=>n[e]=this.state.folders[e]);let r=this.findItem(e),i=`${e}/${t}`;n[e].push({id:i,level:(r?.level||0)+1,name:t,folder:!0,temp:!0}),n[e].sort(PG),n[i]=[];let a=[...this.state.expanded];a.includes(e)||(a.push(e),a.sort()),this.localStorage.setItem(`files.expanded`,JSON.stringify(a)),this.setState({addFolder:!1,folders:n,expanded:a},()=>this.select(i))}else this.setState({addFolder:!1})},replace:e=>e.replace(/[^-_\w]/,`_`)}):(window.alert(this.props.t(`ra_Invalid parent folder!`)),null)}return null}viewerToId(e){return e.startsWith(this.imagePrefix)?e.substring(this.imagePrefix.length):e}getStateNav(){return this.state.viewer?{mode:`view`,id:this.viewerToId(this.state.viewer)}:this.state.selected?{mode:`select`,id:this.state.selected}:null}static navEqual(e,t){return!e||!t?!e&&!t:e.mode===t.mode&&e.id===t.id}applyNavigateTo(e){this.applyingNav=!0;let t=()=>{this.applyingNav=!1};if(!e?.id){this.setState({viewer:``,formatEditFile:``},t);return}let{id:n}=e;this.select(n,null,()=>{this.scrollToSelected(),e.mode===`view`?this.setState({viewer:this.imagePrefix+n,formatEditFile:wA.getFileExtension(n)},t):this.setState({viewer:``,formatEditFile:``},t)})}applyInitialNavigateTo(){let e=this.props.navigateTo??null;e?.id?(this.lastNav=e,this.applyNavigateTo(e)):this.lastNav=this.getStateNav()}reconcileNavigation(t){if(this.props.navigateTo===void 0&&!this.props.onNavigateTo||this.applyingNav)return;let n=this.props.navigateTo??null,r=this.getStateNav();if(e.navEqual(n,r)){this.lastNav=r;return}e.navEqual(n,t.navigateTo??null)?e.navEqual(r,this.lastNav)||(this.lastNav=r,this.props.onNavigateTo?.(r)):(this.lastNav=n,this.applyNavigateTo(n))}componentDidUpdate(e){this.setOpacityTimer&&clearTimeout(this.setOpacityTimer),this.setOpacityTimer=setTimeout(()=>{this.setOpacityTimer=null;let e=window.document.getElementsByClassName(`browserItem`);for(let t=0;t<e.length;t++)e[t].style.opacity=`1`},100),this.reconcileNavigation(e)}findFirstFolder(e){let t=e,n=this.findItem(t);if(n&&!n.folder){let e=t.split(`/`);for(e.pop(),t=``;e.length;){if(this.findItem(e.join(`/`))?.folder){t=e.join(`/`);break}e.pop()}if(!e.length)return null}return t}async uploadFile(e,t){let n=e.split(`/`),r=n.shift();try{await this.props.socket.writeFile64(r||``,n.join(`/`),t)}catch(e){let t=e;window.alert(`Cannot write file: ${t?.message}`)}}renderUpload(){return this.state.uploadFile?[B.createElement(ZC,{key:`close`,color:`primary`,"aria-label":`close`,style:Q.uploadCloseButton,onClick:()=>this.setState({uploadFile:!1})},B.createElement(uk,null)),B.createElement(vW,{key:`dropzone`,onDragEnter:()=>this.setState({uploadFile:`dragging`}),onDragLeave:()=>this.setState({uploadFile:!0}),onDrop:e=>{let t=e.length;e.forEach(e=>{let n=new FileReader;n.onabort=()=>console.log(`file reading was aborted`),n.onerror=()=>console.log(`file reading has failed`),n.onload=()=>{let r=this.findFirstFolder(this.state.selected);if(!r)window.alert(this.props.t(`ra_Invalid parent folder!`));else{let i=`${r}/${e.name}`;this.uploadFile(i,n.result).then(()=>{--t||this.setState({uploadFile:!1},()=>{if(this.supportSubscribes){let e=[...this.state.expanded];e.includes(r)||(e.push(r),e.sort(),this.localStorage.setItem(`files.expanded`,JSON.stringify(e))),this.setState({expanded:e},()=>this.select(i))}else setTimeout(()=>this.browseFolder(r,null,!1,!0).then(e=>{let t=[...this.state.expanded];t.includes(r)||(t.push(r),t.sort(),this.localStorage.setItem(`files.expanded`,JSON.stringify(t))),this.setState({folders:e,expanded:t},()=>this.select(i))}),500)})})}},n.readAsArrayBuffer(e)})}},({getRootProps:e,getInputProps:t})=>B.createElement(`div`,{style:{...Q.uploadDiv,...this.state.uploadFile===`dragging`?Q.uploadDivDragging:void 0},...e()},B.createElement(`input`,{...t()}),B.createElement($x,{component:`div`,sx:Q.uploadCenterDiv},B.createElement(`div`,{style:Q.uploadCenterTextAndIcon},B.createElement(Lk,{style:Q.uploadCenterIcon}),B.createElement(`div`,{style:Q.uploadCenterText},this.state.uploadFile===`dragging`?this.props.t(`ra_Drop file here`):this.props.t(`ra_Place your files here or click here to open the browse dialog`))))))]:null}deleteRecursive(e){let t=this.findItem(e);if(t?.folder)return(this.state.folders[e]?Promise.all(this.state.folders[e].map(e=>this.deleteRecursive(e.id))):Promise.resolve()).then(()=>{if(t.level>=1){let n=e.split(`/`),r=n.shift();this.props.socket.deleteFolder(r||``,n.join(`/`)).then(()=>{let e=JSON.parse(JSON.stringify(this.state.folders));delete e[t.id];let n=AG(t.id),r=e[n];if(r){let i=r.findIndex(e=>e.id===t.id);i!==-1&&r.splice(i,1),this.select(n,null,()=>this.setState({folders:e}))}})}});let n=e.split(`/`),r=n.shift();return n.length?this.props.socket.deleteFile(r||``,n.join(`/`)).catch(e=>window.alert(`Cannot delete file: ${e}`)):Promise.resolve()}deleteItem(e){e||=this.state.deleteItem,this.state.suppressDeleteConfirm&&(this.suppressDeleteConfirm=Date.now()+6e4*5),this.setState({deleteItem:``,suppressDeleteConfirm:!1},()=>this.deleteRecursive(e).then(()=>{let t={},n=this.state.expanded.indexOf(e);if(n!==-1){let e=[...this.state.expanded];e.splice(n,1),this.localStorage.setItem(`files.expanded`,JSON.stringify(e)),t.expanded=e}if(this.state.selected===e){let e=this.state.selected.split(`/`);e.pop(),t.selected=e.join(`/`)}if(this.supportSubscribes)this.setState(t);else{let n=this.findFirstFolder(e),r={};Object.keys(this.state.folders).forEach(e=>{e!==n&&!e.startsWith(`${n}/`)&&(r[e]=this.state.folders[e])}),t.folders=r,this.setState(t,()=>setTimeout(()=>{this.browseFolders([...this.state.expanded],r).then(e=>this.setState({folders:e})).catch(e=>console.error(e))},200))}}))}renderDeleteDialog(){return this.state.deleteItem?B.createElement(CC,{key:`deleteDialog`,open:!0,onClose:()=>this.setState({deleteItem:``}),"aria-labelledby":`ar_dialog_file_delete_title`},B.createElement(BC,{id:`ar_dialog_file_delete_title`},this.props.t(`ra_Confirm deletion of %s`,this.state.deleteItem.split(`/`).pop())),B.createElement(NC,null,B.createElement(LC,null,this.props.t(`ra_Are you sure?`)),B.createElement(dw,{control:B.createElement(zS,{checked:this.state.suppressDeleteConfirm,onChange:()=>{this.setState({suppressDeleteConfirm:!this.state.suppressDeleteConfirm})}}),label:this.props.t(`ra_no confirm for 5 mins`)})),B.createElement(DC,null,B.createElement(CS,{variant:`contained`,onClick:()=>this.deleteItem(``),color:`primary`,autoFocus:!0},this.props.t(`ra_Delete`)),B.createElement(CS,{variant:`contained`,onClick:()=>this.setState({deleteItem:``}),color:`grey`},this.props.t(`ra_Cancel`)))):null}renderViewDialog(){let e=this.props.FileViewer||SG;return this.state.viewer?B.createElement(e,{supportSubscribes:this.supportSubscribes||void 0,key:this.state.viewer,href:this.state.viewer,formatEditFile:this.state.formatEditFile||void 0,themeType:this.props.themeType||`light`,setStateBackgroundImage:this.setStateBackgroundImage,getStyleBackgroundImage:this.getStyleBackgroundImage,t:this.props.t,socket:this.props.socket,onClose:()=>this.setState({viewer:``,formatEditFile:``})}):null}renderError(){return this.state.errorText?B.createElement(kA,{key:`errorDialog`,text:this.state.errorText,onClose:()=>this.setState({errorText:``})}):null}updateItemsAcl(e){this.cacheFolders||=JSON.parse(JSON.stringify(this.state.folders));let t;e.forEach(e=>{let n=this.findItem(e.id,this.cacheFolders);n&&JSON.stringify(n.acl)!==JSON.stringify(e.acl)&&(n.acl=e.acl,t=!0)}),t&&(this.cacheFoldersTimeout&&clearTimeout(this.cacheFoldersTimeout),this.cacheFoldersTimeout=setTimeout(()=>{this.cacheFoldersTimeout=null;let e=this.cacheFolders||{};this.cacheFolders=null,this.setState({folders:e})},200))}changeToPath(){setTimeout(()=>{if(this.state.path!==this.state.selected&&(!this.lastSelect||Date.now()-this.lastSelect>100)){let e=this.state.path;jG(this.state.path)&&(e=AG(this.state.path)),new Promise(t=>{this.state.folders[e]?t(!0):this.browseFolder(e).then(e=>this.setState({folders:e},()=>t(!0))).catch(t=>this.setState({errorText:t===DG?this.props.t(`ra_Cannot find "%s"`,e):this.props.t(`ra_Cannot read "%s"`,e)}))}).then(t=>t&&this.setState({selected:this.state.path,currentDir:e,pathFocus:!1})).catch(e=>console.error(e))}else (!this.lastSelect||Date.now()-this.lastSelect>100)&&this.setState({pathFocus:!1})},100)}renderBreadcrumb(){let e=this.state.currentDir.startsWith(`/`)?this.state.currentDir.split(`/`):`/${this.state.currentDir}`.split(`/`),t=[];return B.createElement(dS,{style:{paddingLeft:8,color:`#FFF`}},e.map((n,r)=>{n&&t.push(n);let i=t.join(`/`);return r<e.length-1?B.createElement($x,{component:`div`,key:`${this.state.selected}_${r}`,sx:Q.pathDivBreadcrumbDir,onClick:e=>this.changeFolder(e,i||`/`)},n||this.props.t(`ra_Root`)):B.createElement(`div`,{style:Q.pathDivBreadcrumbSelected,key:`${this.state.selected}_${r}`,onClick:()=>this.setState({pathFocus:!0})},n)}))}renderPath(){return B.createElement($x,{component:`div`,key:`path`,sx:Q.pathDiv},this.state.pathFocus?B.createElement(Yw,{value:this.state.path,onKeyDown:e=>{e.key===`Enter`?this.changeToPath():e.key===`Escape`&&this.setState({pathFocus:!1})},endAdornment:B.createElement(Ev,{size:`small`,onClick:()=>this.changeToPath()},B.createElement(Ak,null)),onBlur:()=>this.changeToPath(),onChange:e=>this.setState({path:e.target.value}),style:Q.pathDivInput}):this.renderBreadcrumb())}render(){return this.props.ready?(this.state.loadAllFolders&&!this.foldersLoading&&(this.foldersLoading=!0,setTimeout(()=>{this.setState({loadAllFolders:!1,folders:{}},()=>{this.foldersLoading=!1,this.loadFolders().catch(e=>console.error(`Cannot load folders: ${e}`))})},300)),B.createElement(`div`,{style:{...Q.root,...this.props.style},className:this.props.className},this.props.showToolbar?this.renderToolbar():null,this.state.viewType===NG?this.renderPath():null,B.createElement(`div`,{style:{...Q.filesDiv,...Q[`filesDiv${this.state.viewType}`]},onClick:e=>{this.state.viewType!==MG&&(this.state.selected===(this.state.currentDir||`/`)?e.stopPropagation():this.changeFolder(e,this.state.currentDir||`/`))},id:`dev`,ref:this.refFileDiv},this.state.viewType===MG?this.renderItems(`/`):this.renderItems(this.state.currentDir||`/`),this.state.viewType===MG?null:B.createElement(`div`,{style:Q.filesDivHint},this.props.t(`ra_select_folder_hint`))),this.props.allowUpload?this.renderInputDialog():null,this.props.allowUpload?this.renderUpload():null,this.props.allowDelete?this.renderDeleteDialog():null,this.props.allowView?this.renderViewDialog():null,this.state.modalEditOfAccess&&this.props.modalEditOfAccessControl?this.props.modalEditOfAccessControl(this):null,this.renderError())):B.createElement(mT,null)}};TW()(FG);function IG(e){let t=document.createElement(`div`);t.innerHTML=e;let n=t.firstElementChild;return n?.remove?n.remove():n&&t.removeChild(n),t.remove(),n}function LG(e){let t={};if(!e)return t;for(let n,r=0;r<e.length;r++){let i=e[r].name;n=i===`class`?`className`:i.startsWith(`data-`)?i:i.replace(/[-|:]([a-z])/g,e=>e[1].toUpperCase()),t[n]=e[r].value}return t}(class e extends B.Component{svg;static REMOTE_SERVER=window.location.hostname.includes(`iobroker.in`);static REMOTE_PREFIX=window.location.pathname.substring(0,window.location.pathname.lastIndexOf(`/`)+1);constructor(e){super(e),this.state={svg:!!this.props.src?.startsWith(`data:`),created:!0,color:this.props.color||``,src:this.props.src||``,imgError:!1,showError:!!this.props.showError},this.svg=this.state.svg&&this.state.src?this.getSvgFromData(this.state.src):null}static getDerivedStateFromProps(e,t){let n={},r=!1;return e&&t&&e.src!==t.src&&(n.src=e.src,n.svg=e.src?.startsWith(`data:`),n.created=!1,r=!0),e&&t&&e.color!==t.color&&(n.color=e.color,n.created=!1,r=!0),e&&t&&e.showError!==t.showError&&(n.showError=e.showError,r=!0),r?n:null}getSvgFromData(e){if(!e.startsWith(`data:image/svg+xml;base64,`))return null;e=e.substring(26);try{e=atob(e);let t=IG(e),n=t.innerHTML,r=LG(t.attributes);return t.remove(),B.createElement($x,{component:`svg`,sx:this.props.sx,className:this.props.className,style:this.state.color?{color:this.state.color}:void 0,...r,dangerouslySetInnerHTML:{__html:n}})}catch{}return null}render(){if(this.state.svg)return this.state.created||setTimeout(()=>{this.svg=this.state.src?this.getSvgFromData(this.state.src):null,this.setState({created:!0})},50),this.svg;if(this.state.src){if(this.state.imgError||!this.state.src)return B.createElement(jW,{className:this.props.className});if(e.REMOTE_SERVER&&!this.state.src.startsWith(`http://`)&&!this.state.src.startsWith(`https://`)){let t=(this.props.imagePrefix||``)+this.state.src;return t.startsWith(`./`)?t=e.REMOTE_PREFIX+t.substring(2):t.startsWith(`/`)||(t=e.REMOTE_PREFIX+t),B.createElement($x,{component:`img`,sx:this.props.sx,className:this.props.className,src:`https://remote-files.iobroker.in${t}`,alt:``,onError:()=>this.props.showError?this.setState({imgError:!0}):this.setState({src:``})})}return B.createElement($x,{component:`img`,sx:this.props.sx,className:this.props.className,src:(this.props.imagePrefix||``)+this.state.src,alt:``,onError:()=>this.props.showError?this.setState({imgError:!0}):this.setState({src:``})})}return null}});var RG=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.StateType=e.Types=void 0;var t;(function(e){e.unknown=`unknown`,e.airCondition=`airCondition`,e.blind=`blind`,e.blindButtons=`blindButtons`,e.button=`button`,e.buttonSensor=`buttonSensor`,e.camera=`camera`,e.chart=`chart`,e.cie=`cie`,e.ct=`ct`,e.dimmer=`dimmer`,e.door=`door`,e.fireAlarm=`fireAlarm`,e.floodAlarm=`floodAlarm`,e.gate=`gate`,e.hue=`hue`,e.humidity=`humidity`,e.illuminance=`illuminance`,e.image=`image`,e.info=`info`,e.instance=`instance`,e.light=`light`,e.location=`location`,e.locationOne=`locationOne`,e.lock=`lock`,e.media=`media`,e.motion=`motion`,e.percentage=`percentage`,e.rgb=`rgb`,e.rgbSingle=`rgbSingle`,e.rgbwSingle=`rgbwSingle`,e.slider=`slider`,e.socket=`socket`,e.temperature=`temperature`,e.thermostat=`thermostat`,e.vacuumCleaner=`vacuumCleaner`,e.volume=`volume`,e.volumeGroup=`volumeGroup`,e.warning=`warning`,e.weatherCurrent=`weatherCurrent`,e.weatherForecast=`weatherForecast`,e.window=`window`,e.windowTilt=`windowTilt`})(t||(e.Types=t={}));var n;(function(e){e.Number=`number`,e.String=`string`,e.Boolean=`boolean`})(n||(e.StateType=n={}))})),zG=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.checkEnum=t,e.roleOrEnum=n,e.roleOrEnumLight=a,e.roleOrEnumBlind=c,e.roleOrEnumGate=d,e.roleOrEnumWindow=p,e.roleOrEnumDoor=g,e.getEnums=_,e.getAllStatesInChannel=v,e.getAllStatesInDevice=y,e.getObjectsBelowId=b,e.getFunctionEnums=x,e.getParentId=S;function t(e,t){let n=!1;return e&&e.forEach(e=>{let r=e.lastIndexOf(`.`);r!==-1&&(e=e.substring(r+1));for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&t[r].find(t=>t.test(e)))return n=!0,!1}),n}function n(e,n,r,i){return e.common.role&&r?.includes(e.common.role)?!0:t(n,i)}var r={en:[/lights?/i,/lamps?/i,/ceilings?/i],de:[/licht(er)?/i,/lampen?/i,/beleuchtung(en)?/i],ru:[/свет/i,/ламп[аы]/i,/торшеры?/,/подсветк[аи]/i,/лампочк[аи]/i,/светильники?/i]},i=[`switch.light`,`dimmer`,`value.dimmer`,`level.dimmer`,`sensor.light`,`state.light`];function a(e,t){return n(e,t,i,r)}var o={en:[/blinds?/i,/windows?/i,/shutters?/i],de:[/rollladen?/i,/fenstern?/i,/beschattung(en)?/i,/jalousien?/i],ru:[/ставни/i,/рольставни/i,/окна|окно/,/жалюзи/i]},s=[`blind`,`level.blind`,`value.blind`,`action.stop`,`button.stop`,`button.stop.blind`,`button.open.blind`,`button.close.blind`,`level.tilt`,`value.tilt`,`button.tilt.open`,`button.tilt.close`,`button.tilt.stop`];function c(e,t){return n(e,t,s,o)}var l={en:[/gates?/i],de:[/^toren$/i,/^tor$/i],ru:[/ворота/i]},u=[`gate`,`value.gate`,`switch.gate`,`action.stop`,`button.stop`];function d(e,t){return n(e,t,u,l)}var f=[`window`,`state.window`,`sensor.window`,`value.window`];function p(e,t){return n(e,t,f,o)}var m={en:[/doors?/i,/gates?/i,/wickets?/i,/entry|entries/i],de:[/^türe?/i,/^tuere?/i,/^tore?$/i,/einfahrt(en)?/i,/pforten?/i],ru:[/двери|дверь/i,/ворота/i,/калитка|калитки/,/въезды?/i,/входы?/i]},h=[`door`,`state.door`,`sensor.door`];function g(e,t){return n(e,t,h,m)}function _(){return{door:{roles:h,words:m},window:{roles:f,words:o},blind:{roles:s,words:o},gate:{roles:u,words:l},light:{roles:i,words:r}}}function v(e,t){let n=[],r=RegExp(`^${t.replace(/([$^.)([\]{}])/g,`\\$1`)}\\.[^.]+$`);return e.forEach(e=>r.test(e)&&n.push(e)),n}function y(e,t){let n=[],r=RegExp(`^${t.replace(/([$^.)([\]{}])/g,`\\$1`)}\\.[^.]+\\.[^.]+$`);return e.forEach(e=>r.test(e)&&n.push(e)),n}function b(e,t){let n=[];t+=`.`;let r=0,i=e.length-1,a=-1;for(;r<=i;){let n=Math.floor((r+i)/2);e[n]<t?r=n+1:(a=n,i=n-1)}if(a===-1||a>=e.length)return n;for(let r=a;r<e.length;r++){let i=e[r];if(i===t||i.startsWith(t))n.push(i);else break}return n}function x(e,t){let n=[],r=/^enum\.functions\./,i=b(t,`enum`);for(let t of i)Object.prototype.hasOwnProperty.call(e,t)&&r.test(t)&&e[t]?.type===`enum`&&e[t].common?.members?.length&&n.push(t);return n}function S(e){let t=e.lastIndexOf(`.`);return t===-1?e:e.substring(0,t)}})),BG=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.patterns=void 0;var t=RG(),n=zG(),r=/^[^.]+\.setting\./,i={working:{role:/^indicator\.working$/,indicator:!0,notSingle:!0,name:`WORKING`,required:!1,defaultRole:`indicator.working`,defaultType:t.StateType.Boolean},unreach:{role:/^indicator(\.maintenance)?\.unreach$/,indicator:!0,type:t.StateType.Boolean,notSingle:!0,name:`UNREACH`,required:!1,defaultRole:`indicator.maintenance.unreach`},lowbat:{role:/^indicator(\.maintenance)?\.(lowbat|battery)$/,indicator:!0,type:t.StateType.Boolean,notSingle:!0,name:`LOWBAT`,required:!1,defaultRole:`indicator.maintenance.lowbat`},maintain:{role:/^indicator\.maintenance$/,indicator:!0,type:t.StateType.Boolean,notSingle:!0,name:`MAINTAIN`,required:!1,defaultRole:`indicator.maintenance`},error:{role:/^indicator\.error$/,indicator:!0,notSingle:!0,name:`ERROR`,required:!1,defaultRole:`indicator.error`,defaultType:t.StateType.String},direction:{role:/^indicator\.direction$/,indicator:!0,type:t.StateType.Boolean,notSingle:!0,name:`DIRECTION`,required:!1,defaultRole:`indicator.direction`},direction_enum:{role:/^(indicator|value)\.direction$/,type:t.StateType.Number,notSingle:!0,name:`DIRECTION`,required:!1,defaultStates:{0:`None`,1:`Up/Open`,2:`Down/Close`,3:`Unknown`},defaultRole:`value.direction`},reachable:{role:/^indicator\.reachable$/,indicator:!0,type:t.StateType.Boolean,notSingle:!0,name:`CONNECTED`,required:!1,defaultRole:`indicator.reachable`,inverted:!0},battery:{role:/^value\.battery$/,indicator:!1,type:t.StateType.Number,write:!1,name:`BATTERY`,required:!1,defaultRole:`value.battery`,defaultUnit:`%`}},a={power:{role:/^value\.power$/,indicator:!1,type:t.StateType.Number,write:!1,name:`ELECTRIC_POWER`,required:!1,defaultRole:`value.power`,defaultUnit:`W`},current:{role:/^value\.current$/,indicator:!1,type:t.StateType.Number,write:!1,name:`CURRENT`,required:!1,defaultRole:`value.current`,defaultUnit:`mA`},voltage:{role:/^value\.voltage$/,indicator:!1,type:t.StateType.Number,write:!1,name:`VOLTAGE`,required:!1,defaultRole:`value.voltage`,defaultUnit:`V`},consumption:{role:/^value\.power\.consumption$/,indicator:!1,type:t.StateType.Number,write:!1,name:`CONSUMPTION`,required:!1,defaultRole:`value.power.consumption`,defaultUnit:`Wh`},frequency:{role:/^value\.frequency$/,indicator:!1,type:t.StateType.Number,write:!1,name:`FREQUENCY`,required:!1,defaultRole:`value.frequency`,defaultUnit:`Hz`}};e.patterns={chart:{states:[{objectType:`chart`,name:`CHART`}],type:t.Types.chart},mediaPlayer:{states:[{role:/^media\.state(\..*)?$/,indicator:!1,type:[t.StateType.Boolean,t.StateType.Number],name:`STATE`,required:!0,defaultRole:`media.state`},{role:/^(button|action)\.play(\..*)?$/,indicator:!1,write:!0,type:t.StateType.Boolean,name:`PLAY`,required:!1,noSubscribe:!0,defaultRole:`button.play`},{role:/^(button|action)\.pause(\..*)?$/,indicator:!1,write:!0,type:t.StateType.Boolean,name:`PAUSE`,required:!1,noSubscribe:!0,defaultRole:`button.pause`},{role:/^(button|action)\.stop(\..*)?$/,indicator:!1,write:!0,type:t.StateType.Boolean,name:`STOP`,required:!1,noSubscribe:!0,defaultRole:`button.stop`},{role:/^(button|action)\.next(\..*)?$/,indicator:!1,write:!0,type:t.StateType.Boolean,name:`NEXT`,required:!1,noSubscribe:!0,defaultRole:`button.next`},{role:/^(button|action)\.prev(\..*)?$/,indicator:!1,write:!0,type:t.StateType.Boolean,name:`PREV`,required:!1,noSubscribe:!0,defaultRole:`button.prev`},{role:/^media\.mode\.shuffle(\..*)?$/,indicator:!1,write:!0,type:t.StateType.Boolean,name:`SHUFFLE`,required:!1,defaultRole:`media.mode.shuffle`},{role:/^media\.mode\.repeat(\..*)?$/,indicator:!1,write:!0,type:t.StateType.Number,name:`REPEAT`,required:!1,defaultRole:`media.mode.repeat`},{role:/^media\.artist(\..*)?$/,indicator:!1,write:!1,type:t.StateType.String,name:`ARTIST`,required:!1,defaultRole:`media.artist`},{role:/^media\.album(\..*)?$/,indicator:!1,write:!1,type:t.StateType.String,name:`ALBUM`,required:!1,defaultRole:`media.album`},{role:/^media\.title(\..*)?$/,indicator:!1,write:!1,type:t.StateType.String,name:`TITLE`,required:!1,defaultRole:`media.title`},{role:/^media\.cover(\.big)?$/,indicator:!1,write:!1,type:t.StateType.String,name:`COVER`,required:!1,notSingle:!0,defaultRole:`media.cover`},{role:/^media\.cover(\..*)$/,indicator:!1,write:!1,type:t.StateType.String,name:`COVER`,required:!1,notSingle:!0},{role:/^media\.duration(\..*)?$/,indicator:!1,write:!1,type:t.StateType.Number,name:`DURATION`,required:!1,defaultRole:`media.duration`,defaultUnit:`sec`},{role:/^media\.elapsed(\..*)?$/,indicator:!1,type:t.StateType.Number,name:`ELAPSED`,required:!1,defaultRole:`media.elapsed`,defaultUnit:`sec`},{role:/^media\.seek(\..*)?$/,indicator:!1,write:!0,type:t.StateType.Number,name:`SEEK`,required:!1,defaultRole:`media.seek`},{role:/^media\.track(\..*)?$/,indicator:!1,type:t.StateType.String,name:`TRACK`,required:!1,defaultRole:`media.track`},{role:/^media\.episode(\..*)?$/,indicator:!1,type:t.StateType.String,name:`EPISODE`,required:!1,defaultRole:`media.episode`},{role:/^media\.season(\..*)?$/,indicator:!1,type:t.StateType.String,name:`SEASON`,required:!1,defaultRole:`media.season`},{role:/^level(\.volume)?$/,indicator:!1,type:t.StateType.Number,min:t.StateType.Number,max:t.StateType.Number,write:!0,name:`VOLUME`,required:!1,notSingle:!0,defaultRole:`level.volume`,defaultUnit:`%`},{role:/^value(\.volume)?$/,indicator:!1,type:t.StateType.Number,min:t.StateType.Number,max:t.StateType.Number,write:!1,name:`VOLUME_ACTUAL`,required:!1,notSingle:!0,defaultRole:`value.volume`,defaultUnit:`%`},{role:/^media(\.mute)?$/,indicator:!1,type:t.StateType.Boolean,write:!0,name:`MUTE`,required:!1,notSingle:!0,defaultRole:`media.mute`},{role:/^media\.player\.name$/,indicator:!1,type:t.StateType.String,name:`PLAYER_NAME`,required:!1,notSingle:!0,defaultRole:`media.player.name`},{role:/^media\.player\.type/,indicator:!1,type:t.StateType.String,write:!1,name:`PLAYER_TYPE`,required:!1,notSingle:!0,defaultRole:`media.player.type`},{stateName:/\.(paused|playerState)$/,indicator:!1,name:`IGNORE`,required:!1,multiple:!0,noSubscribe:!0},i.reachable,i.lowbat,i.maintain,i.error,i.battery],type:t.Types.media},weatherForecast:{states:[{role:/^weather\.icon(\.forecast\.0)?$/,indicator:!1,type:t.StateType.String,name:`ICON`,required:!0,defaultRole:`weather.icon.forecast.0`},{role:/^value\.temperature\.min\.forecast\.0$/,indicator:!1,type:t.StateType.Number,name:`TEMP_MIN`,required:!0,defaultRole:`value.temperature.min.forecast.0`},{role:/^value\.temperature\.max\.forecast\.0$/,indicator:!1,type:t.StateType.Number,name:`TEMP_MAX`,required:!0,defaultRole:`value.temperature.max.forecast.0`},{role:/^value\.precipitation(\.forecast\.0)?$/,indicator:!1,type:t.StateType.Number,name:`PRECIPITATION_CHANCE`,unit:`%`,required:!1,defaultRole:`value.precipitation.forecast.0`},{role:/^value\.precipitation(\.forecast\.0)?$/,indicator:!1,type:t.StateType.Number,name:`PRECIPITATION`,unit:`mm`,required:!1,defaultRole:`value.precipitation.forecast.0`},{role:/^date(\.forecast\.0)?$/,indicator:!1,type:t.StateType.String,name:`DATE`,required:!1,defaultRole:`date.forecast.0`},{role:/^dayofweek(\.forecast\.0)?$/,indicator:!1,type:t.StateType.String,name:`DOW`,required:!1,defaultRole:`dayofweek.forecast.0`},{role:/^weather\.state(\.forecast\.0)?$/,indicator:!1,type:t.StateType.String,name:`STATE`,required:!1,defaultRole:`weather.state.forecast.0`},{role:/^value\.temperature(\.forecast\.0)?$/,indicator:!1,type:t.StateType.Number,name:`TEMP`,required:!1,defaultRole:`value.temperature.forecast.0`},{role:/^value\.pressure(\.forecast\.0)?$/,indicator:!1,type:t.StateType.Number,name:`PRESSURE`,required:!1,defaultRole:`value.pressure.forecast.0`},{role:/^value\.humidity(\.forecast\.0)?$/,indicator:!1,type:t.StateType.Number,name:`HUMIDITY`,required:!1,defaultRole:`value.humidity.forecast.0`},{role:/^(?:date|time)\.sunrise(?:\.forecast\.0)?$/,indicator:!1,type:[t.StateType.String,t.StateType.Number],name:`TIME_SUNRISE`,required:!1,defaultRole:`date.sunrise`},{role:/^(?:date|time)\.sunset(?:\.forecast\.0)?$/,indicator:!1,type:[t.StateType.String,t.StateType.Number],name:`TIME_SUNSET`,required:!1,defaultRole:`date.sunset`},{role:/^value\.temperature\.windchill(\.forecast\.0)?$/,indicator:!1,type:t.StateType.Number,name:`WIND_CHILL`,required:!1,defaultRole:`value.temperature.windchill.forecast.0`},{role:/^value\.temperature\.feelslike(\.forecast\.0)?$/,indicator:!1,type:t.StateType.Number,name:`FEELS_LIKE`,required:!1,defaultRole:`value.temperature.feelslike.forecast.0`},{role:/^value\.speed\.wind(\.forecast\.0)?$/,indicator:!1,type:t.StateType.Number,name:`WIND_SPEED`,required:!1,defaultRole:`value.speed.wind.forecast.0`},{role:/^value\.direction\.wind(\.forecast\.0)?$/,indicator:!1,type:t.StateType.Number,name:`WIND_DIRECTION`,required:!1,defaultRole:`value.direction.wind.forecast.0`},{role:/^weather\.direction\.wind(\.forecast\.0)?$/,indicator:!1,type:t.StateType.String,name:`WIND_DIRECTION_STR`,required:!1,defaultRole:`weather.direction.wind.forecast.0`},{role:/^weather\.icon\.wind(\.forecast\.0)?$/,indicator:!1,type:t.StateType.String,name:`WIND_ICON`,required:!1,defaultRole:`weather.icon.wind.forecast.0`},{role:/^weather\.chart\.url$/,indicator:!1,type:t.StateType.String,name:`HISTORY_CHART`,required:!1,noSubscribe:!0,defaultRole:`weather.chart.url`},{role:/^weather\.chart\.url\.forecast$/,indicator:!1,type:t.StateType.String,name:`FORECAST_CHART`,required:!1,noSubscribe:!0,defaultRole:`weather.chart.url.forecast`},{role:/^location$/,indicator:!1,type:t.StateType.String,name:`LOCATION`,required:!1,defaultRole:`location`},{role:/^weather\.icon\.forecast.(\d+)$/,indicator:!1,type:t.StateType.String,name:`ICON%d`,required:!1,searchInParent:!0,multiple:!0,noSubscribe:!0,notSingle:!0},{role:/^value\.temperature\.min\.forecast\.(\d+)$/,indicator:!1,type:t.StateType.Number,name:`TEMP_MIN%d`,required:!1,searchInParent:!0,multiple:!0,noSubscribe:!0},{role:/^value\.temperature\.max\.forecast\.(\d+)$/,indicator:!1,type:t.StateType.Number,name:`TEMP_MAX%d`,required:!1,searchInParent:!0,multiple:!0,noSubscribe:!0},{role:/^date\.forecast\.(\d+)$/,indicator:!1,type:t.StateType.String,name:`DATE%d`,required:!1,searchInParent:!0,multiple:!0,noSubscribe:!0},{role:/^dayofweek\.forecast\.(\d+)$/,indicator:!1,type:t.StateType.String,name:`DOW%d`,required:!1,searchInParent:!0,multiple:!0,noSubscribe:!0},{role:/^weather\.state\.forecast\.(\d+)$/,indicator:!1,type:t.StateType.String,name:`STATE%d`,required:!1,searchInParent:!0,multiple:!0,noSubscribe:!0},{role:/^value\.temperature\.forecast\.(\d+)$/,indicator:!1,type:t.StateType.Number,name:`TEMP%d`,required:!1,searchInParent:!0,multiple:!0,noSubscribe:!0},{role:/^value\.pressure\.forecast\.(\d+)?$/,indicator:!1,type:t.StateType.Number,name:`PRESSURE%d`,required:!1,searchInParent:!0,multiple:!0,noSubscribe:!0},{role:/^value\.humidity\.forecast\.(\d+)$/,indicator:!1,type:t.StateType.Number,name:`HUMIDITY%d`,required:!1,searchInParent:!0,multiple:!0,noSubscribe:!0},{role:/^value\.humidity\.max\.forecast\.(\d+)$/,indicator:!1,type:t.StateType.Number,name:`HUMIDITY_MAX%d`,required:!1,searchInParent:!0,multiple:!0,noSubscribe:!0},{role:/^value\.precipitation\.forecast\.(\d+)$/,indicator:!1,type:t.StateType.Number,unit:`%`,name:`PRECIPITATION_CHANCE%d`,required:!1,searchInParent:!0,multiple:!0,noSubscribe:!0},{role:/^value\.precipitation\.forecast\.(\d+)$/,indicator:!1,type:t.StateType.Number,unit:`mm`,name:`PRECIPITATION%d`,required:!1,searchInParent:!0,multiple:!0,noSubscribe:!0},{role:/^value\.speed\.wind\.forecast\.(\d+)$/,indicator:!1,type:t.StateType.Number,name:`WIND_SPEED%d`,required:!1,searchInParent:!0,multiple:!0,noSubscribe:!0},{role:/^value\.direction\.wind\.forecast\.(\d+)$/,indicator:!1,type:t.StateType.Number,name:`WIND_DIRECTION%d`,required:!1,searchInParent:!0,multiple:!0,noSubscribe:!0},{role:/^weather\.direction\.wind\.forecast\.(\d+)$/,indicator:!1,type:t.StateType.String,name:`WIND_DIRECTION_STR%d`,required:!1,searchInParent:!0,multiple:!0,noSubscribe:!0},{role:/^weather\.icon\.wind\.forecast\.(\d+)$/,indicator:!1,type:t.StateType.String,name:`WIND_ICON%d`,required:!1,searchInParent:!0,multiple:!0,noSubscribe:!0},{role:/^(?:date|time)\.sunrise(?:\.forecast\.(\d+))?$/,indicator:!1,type:[t.StateType.String,t.StateType.Number],name:`TIME_SUNRISE%d`,required:!1,searchInParent:!0,multiple:!0,noSubscribe:!0},{role:/^(?:date|time)\.sunset(?:\.forecast\.(\d+))?$/,indicator:!1,type:[t.StateType.String,t.StateType.Number],name:`TIME_SUNSET%d`,required:!1,searchInParent:!0,multiple:!0,noSubscribe:!0}],type:t.Types.weatherForecast},rgb:{states:[{role:/^level\.color\.red$/,indicator:!1,type:t.StateType.Number,write:!0,name:`RED`,required:!0,defaultRole:`level.color.red`},{role:/^level\.color\.green$/,indicator:!1,type:t.StateType.Number,write:!0,name:`GREEN`,required:!0,defaultRole:`level.color.green`},{role:/^level\.color\.blue$/,indicator:!1,type:t.StateType.Number,write:!0,name:`BLUE`,required:!0,defaultRole:`level.color.blue`},{role:/^level\.color\.white$/,indicator:!1,type:t.StateType.Number,write:!0,name:`WHITE`,required:!1,defaultRole:`level.color.white`},{role:/^level\.dimmer$/,indicator:!1,type:t.StateType.Number,write:!0,name:`DIMMER`,required:!1,defaultRole:`level.dimmer`,defaultUnit:`%`},{role:/^level\.brightness$/,indicator:!1,type:t.StateType.Number,write:!0,name:`BRIGHTNESS`,required:!1},{role:/^level\.color\.temperature$/,indicator:!1,type:t.StateType.Number,write:!0,name:`TEMPERATURE`,required:!1,defaultRole:`level.color.temperature`,defaultUnit:`°K`},{role:/^level\.effect$/,indicator:!1,type:[t.StateType.Number,t.StateType.String],write:!0,statesDefined:!0,name:`EFFECT`,required:!1,defaultRole:`level.effect`,defaultStates:{0:`None`}},{role:/^switch(\.light)?$|^state$/,indicator:!1,type:t.StateType.Boolean,write:!0,name:`ON`,required:!1,defaultRole:`switch.light`},{role:/^(state|switch|sensor)\.light|switch$/,indicator:!1,type:t.StateType.Boolean,write:!1,name:`ON_ACTUAL`,required:!1,defaultRole:`sensor.light`,ignoreRole:r},{role:/^time\.(span|interval)$/,indicator:!1,type:t.StateType.Number,write:!0,name:`TRANSITION_TIME`,required:!1,defaultRole:`time.span`,defaultUnit:`ms`},...Object.values(a),i.working,i.unreach,i.lowbat,i.maintain,i.error,i.battery],type:t.Types.rgb},rgbwSingle:{states:[{role:/^level\.color\.rgbw$/,indicator:!1,type:t.StateType.String,write:!0,name:`RGBW`,required:!0,defaultRole:`level.color.rgbw`},{role:/^level\.dimmer$/,indicator:!1,type:t.StateType.Number,write:!0,name:`DIMMER`,required:!1,defaultRole:`level.dimmer`,defaultUnit:`%`},{role:/^level\.brightness$/,indicator:!1,type:t.StateType.Number,write:!0,name:`BRIGHTNESS`,required:!1,defaultUnit:`%`},{role:/^level\.color\.temperature$/,indicator:!1,type:t.StateType.Number,write:!0,name:`TEMPERATURE`,required:!1,defaultRole:`level.color.temperature`,defaultUnit:`°K`},{role:/^level\.effect$/,indicator:!1,type:[t.StateType.Number,t.StateType.String],write:!0,statesDefined:!0,name:`EFFECT`,required:!1,defaultRole:`level.effect`,defaultStates:{0:`None`}},{role:/^switch(\.light)?$/,indicator:!1,type:t.StateType.Boolean,write:!0,name:`ON`,required:!1,defaultRole:`switch.light`},{role:/^(state|switch|sensor)\.light|switch$/,indicator:!1,type:t.StateType.Boolean,write:!1,name:`ON_ACTUAL`,required:!1,defaultRole:`sensor.light`,ignoreRole:r},{role:/^time\.(span|interval)$/,indicator:!1,type:t.StateType.Number,write:!0,name:`TRANSITION_TIME`,required:!1,defaultRole:`time.span`,defaultUnit:`ms`},...Object.values(a),i.working,i.unreach,i.lowbat,i.maintain,i.error,i.battery],type:t.Types.rgbwSingle},rgbSingle:{states:[{role:/^level\.color\.rgb$/,indicator:!1,type:t.StateType.String,write:!0,name:`RGB`,required:!0,defaultRole:`level.color.rgb`},{role:/^level\.dimmer$/,indicator:!1,type:t.StateType.Number,write:!0,name:`DIMMER`,required:!1,defaultRole:`level.dimmer`,defaultUnit:`%`},{role:/^level\.brightness$/,indicator:!1,type:t.StateType.Number,write:!0,name:`BRIGHTNESS`,required:!1,defaultUnit:`%`},{role:/^level\.color\.temperature$/,indicator:!1,type:t.StateType.Number,write:!0,name:`TEMPERATURE`,required:!1,defaultRole:`level.color.temperature`,defaultUnit:`°K`},{role:/^level\.effect$/,indicator:!1,type:[t.StateType.Number,t.StateType.String],write:!0,statesDefined:!0,name:`EFFECT`,required:!1,defaultRole:`level.effect`,defaultStates:{0:`None`}},{role:/^switch(\.light)?$/,indicator:!1,type:t.StateType.Boolean,write:!0,name:`ON`,required:!1,defaultRole:`switch.light`},{role:/^(state|switch|sensor)\.light|switch$/,indicator:!1,type:t.StateType.Boolean,write:!1,name:`ON_ACTUAL`,required:!1,defaultRole:`sensor.light`,ignoreRole:r},{role:/^time\.(span|interval)$/,indicator:!1,type:t.StateType.Number,write:!0,name:`TRANSITION_TIME`,required:!1,defaultRole:`time.span`,defaultUnit:`ms`},...Object.values(a),i.working,i.unreach,i.lowbat,i.maintain,i.error,i.battery],type:t.Types.rgbSingle},cie:{states:[{role:/^level\.color\.cie$/,indicator:!1,type:t.StateType.String,write:!0,name:`CIE`,required:!0,defaultRole:`level.color.cie`},{role:/^level\.dimmer$/,indicator:!1,type:t.StateType.Number,write:!0,name:`DIMMER`,required:!1,defaultRole:`level.dimmer`,defaultUnit:`%`},{role:/^level\.brightness$/,indicator:!1,type:t.StateType.Number,write:!0,name:`BRIGHTNESS`,required:!1,defaultUnit:`%`},{role:/^level\.color\.temperature$/,indicator:!1,type:t.StateType.Number,write:!0,name:`TEMPERATURE`,required:!1,defaultRole:`level.color.temperature`,defaultUnit:`°K`},{role:/^level\.effect$/,indicator:!1,type:[t.StateType.Number,t.StateType.String],write:!0,statesDefined:!0,name:`EFFECT`,required:!1,defaultRole:`level.effect`,defaultStates:{0:`None`}},{role:/^switch(\.light)?$/,indicator:!1,type:t.StateType.Boolean,write:!0,name:`ON`,required:!1,defaultRole:`switch.light`},{role:/^(state|switch|sensor)\.light|switch$/,indicator:!1,type:t.StateType.Boolean,write:!1,name:`ON_ACTUAL`,required:!1,defaultRole:`sensor.light`,ignoreRole:r},{role:/^time\.(span|interval)$/,indicator:!1,type:t.StateType.Number,write:!0,name:`TRANSITION_TIME`,required:!1,defaultRole:`time.span`,defaultUnit:`ms`},...Object.values(a),i.working,i.unreach,i.lowbat,i.maintain,i.error,i.battery],type:t.Types.cie},hue:{states:[{role:/^level\.color\.hue$/,indicator:!1,type:t.StateType.Number,write:!0,name:`HUE`,required:!0,defaultRole:`level.color.hue`,defaultUnit:`°`},{role:/^level\.dimmer$/,indicator:!1,type:t.StateType.Number,write:!0,name:`DIMMER`,required:!1,searchInParent:!0,defaultRole:`level.dimmer`,defaultUnit:`%`},{role:/^level\.brightness$/,indicator:!1,type:t.StateType.Number,write:!0,name:`BRIGHTNESS`,required:!1},{role:/^level\.color\.saturation$/,indicator:!1,type:t.StateType.Number,write:!0,name:`SATURATION`,required:!1,defaultRole:`level.color.saturation`,defaultUnit:`%`},{role:/^level\.color\.temperature$/,indicator:!1,type:t.StateType.Number,write:!0,name:`TEMPERATURE`,required:!1,defaultRole:`level.color.temperature`,defaultUnit:`°K`},{role:/^level\.effect$/,indicator:!1,type:[t.StateType.Number,t.StateType.String],write:!0,statesDefined:!0,name:`EFFECT`,required:!1,defaultRole:`level.effect`,defaultStates:{0:`None`}},{role:/^switch(\.light)?$/,indicator:!1,type:t.StateType.Boolean,write:!0,name:`ON`,required:!1,defaultRole:`switch.light`},{role:/^(state|switch|sensor)\.light|switch$/,indicator:!1,type:t.StateType.Boolean,write:!1,name:`ON_ACTUAL`,required:!1,defaultRole:`sensor.light`,ignoreRole:r},{role:/^time\.(span|interval)$/,indicator:!1,type:t.StateType.Number,write:!0,name:`TRANSITION_TIME`,required:!1,defaultRole:`time.span`,defaultUnit:`ms`},...Object.values(a),i.working,i.unreach,i.lowbat,i.maintain,i.error,i.battery],type:t.Types.hue},ct:{states:[{role:/^level\.color\.temperature$/,indicator:!1,type:t.StateType.Number,write:!0,name:`TEMPERATURE`,required:!0,defaultRole:`level.color.temperature`,defaultUnit:`°K`},{role:/^level\.dimmer$/,indicator:!1,type:t.StateType.Number,write:!0,name:`DIMMER`,required:!1,defaultRole:`level.dimmer`,defaultUnit:`%`},{role:/^level\.brightness$/,indicator:!1,type:t.StateType.Number,write:!0,name:`BRIGHTNESS`,required:!1},{role:/^switch(\.light)?$/,indicator:!1,type:t.StateType.Boolean,write:!0,name:`ON`,required:!1,defaultRole:`switch.light`},{role:/^(state|switch|sensor)\.light|switch$/,indicator:!1,type:t.StateType.Boolean,write:!1,name:`ON_ACTUAL`,required:!1,defaultRole:`sensor.light`,ignoreRole:r},{role:/^level\.effect$/,indicator:!1,type:[t.StateType.Number,t.StateType.String],write:!0,statesDefined:!0,name:`EFFECT`,required:!1,defaultRole:`level.effect`,defaultStates:{0:`None`}},{role:/^time\.(span|interval)$/,indicator:!1,type:t.StateType.Number,write:!0,name:`TRANSITION_TIME`,required:!1,defaultRole:`time.span`,defaultUnit:`ms`},...Object.values(a),i.working,i.unreach,i.lowbat,i.maintain,i.error,i.battery],type:t.Types.ct},warning:{states:[{role:/^value\.warning$/,indicator:!1,name:`LEVEL`,required:!0,defaultRole:`value.warning`},{role:/^weather\.title\.short$/,indicator:!1,type:t.StateType.String,name:`TITLE`,required:!1,defaultRole:`weather.title.short`},{role:/^weather\.title$/,indicator:!1,type:t.StateType.String,name:`INFO`,required:!1,defaultRole:`weather.title`},{role:/^date\.start$/,indicator:!1,type:t.StateType.String,name:`START`,required:!1,defaultRole:`date.start`},{role:/^date\.end$/,indicator:!1,type:t.StateType.String,name:`END`,required:!1,defaultRole:`date.end`},{role:/^date$/,indicator:!1,type:t.StateType.String,name:`START`,required:!1},{role:/^weather\.chart\.url/,indicator:!1,type:t.StateType.String,name:`ICON`,required:!1,defaultRole:`weather.chart.url`},{role:/^weather\.state$/,indicator:!1,type:t.StateType.String,name:`DESC`,required:!1,noSubscribe:!0,defaultRole:`weather.state`}],type:t.Types.warning},airCondition:{states:[{role:/temperature(\..*)?$/,indicator:!1,write:!0,type:t.StateType.Number,name:`SET`,required:!0,defaultRole:`level.temperature`,defaultUnit:`°C`,ignoreRole:r},{role:/(level\.mode\.)?airconditioner$/,indicator:!1,write:!0,type:t.StateType.Number,searchInParent:!0,name:`MODE`,required:!0,defaultRole:`level.mode.airconditioner`,defaultStates:{0:`AUTO`,3:`COOL`,4:`DRY`,5:`ECO`,6:`FAN_ONLY`,7:`HEAT`,8:`OFF`},ignoreRole:r},{role:/(speed|mode)\.fan$/,indicator:!1,write:!0,type:t.StateType.Number,name:`SPEED`,required:!1,defaultRole:`level.mode.fan`,defaultStates:{0:`AUTO`,1:`HIGH`,2:`LOW`,3:`MEDIUM`,4:`QUIET`,5:`TURBO`},ignoreRole:r},{role:/^switch(\.power)?$/,indicator:!1,write:!0,type:[t.StateType.Boolean,t.StateType.Number],searchInParent:!0,name:`POWER`,required:!1,defaultRole:`switch.power`},{role:/temperature(\..*)?$/,indicator:!1,write:!1,type:t.StateType.Number,searchInParent:!0,name:`ACTUAL`,required:!1,defaultRole:`value.temperature`,defaultUnit:`°C`,ignoreRole:r},{role:/humidity(\..*)?$/,indicator:!1,write:!1,type:t.StateType.Number,searchInParent:!0,name:`HUMIDITY`,required:!1,defaultRole:`value.humidity`,defaultUnit:`%`,ignoreRole:r},{role:/^switch\.boost(\..*)?$/,indicator:!1,write:!0,type:[t.StateType.Boolean,t.StateType.Number],searchInParent:!0,name:`BOOST`,required:!1,defaultRole:`switch.boost`},{role:/swing$/,indicator:!1,write:!0,type:t.StateType.Number,searchInParent:!0,name:`SWING`,required:!1,defaultRole:`level.mode.swing`,defaultStates:{0:`AUTO`,1:`HORIZONTAL`,2:`STATIONARY`,3:`VERTICAL`},ignoreRole:r},{role:/swing$/,indicator:!1,write:!0,type:t.StateType.Boolean,searchInParent:!0,name:`SWING`,required:!1,defaultRole:`switch.mode.swing`,ignoreRole:r},...Object.values(a),i.unreach,i.maintain,i.error],type:t.Types.airCondition},thermostat:{states:[{role:/temperature(\..*)?$/,indicator:!1,write:!0,type:t.StateType.Number,name:`SET`,required:!0,defaultRole:`level.temperature`,defaultUnit:`°C`,ignoreRole:r},{role:/temperature(\..*)?$/,indicator:!1,write:!1,type:t.StateType.Number,searchInParent:!0,name:`ACTUAL`,required:!1,defaultRole:`value.temperature`,defaultUnit:`°C`,ignoreRole:r},{role:/humidity(\..*)?$/,indicator:!1,write:!1,type:t.StateType.Number,searchInParent:!0,name:`HUMIDITY`,required:!1,defaultRole:`value.humidity`,defaultUnit:`%`,ignoreRole:r},{role:/^switch(\.mode)?\.boost(\..*)?$/,indicator:!1,write:!0,type:[t.StateType.Boolean,t.StateType.Number],searchInParent:!0,name:`BOOST`,required:!1,defaultRole:`switch.mode.boost`},{role:/^switch(\.power)?$/,indicator:!1,write:!0,type:[t.StateType.Boolean,t.StateType.Number],searchInParent:!0,name:`POWER`,required:!1,defaultRole:`switch.power`},{role:/^switch(\.mode)?\.party$/,indicator:!1,write:!0,type:[t.StateType.Boolean,t.StateType.Number],searchInParent:!0,name:`PARTY`,required:!1,defaultRole:`switch.mode.party`},{role:/^level(\.mode)?\.thermostat$/,indicator:!1,write:!0,type:t.StateType.Number,searchInParent:!0,name:`MODE`,required:!1,defaultRole:`level.mode.thermostat`,defaultStates:{0:`AUTO`,1:`MANUAL`}},i.working,i.unreach,i.lowbat,i.maintain,i.error,i.battery],type:t.Types.thermostat},vacuumCleaner:{states:[{role:/^switch\.power$/,indicator:!1,write:!0,type:[t.StateType.Boolean,t.StateType.Number],searchInParent:!0,name:`POWER`,required:!0,defaultRole:`switch.power`},{role:/mode\.cleanup$/,indicator:!1,write:!0,type:t.StateType.Number,searchInParent:!0,name:`MODE`,required:!0,defaultRole:`level.mode.cleanup`,defaultStates:{0:`AUTO`,1:`NORMAL`,2:`QUIET`,3:`ECO`,4:`EXPRESS`},ignoreRole:r},{role:/vacuum\.map\.base64$/,indicator:!1,write:!1,type:t.StateType.String,searchInParent:!0,name:`MAP_BASE64`,required:!1,defaultRole:`vacuum.map.base64`,ignoreRole:r},{role:/vacuum\.map\.url$/,indicator:!1,write:!1,type:t.StateType.String,searchInParent:!0,name:`MAP_URL`,required:!1,ignoreRole:r},{role:/mode\.work$/,indicator:!1,write:!0,type:t.StateType.Number,searchInParent:!0,name:`WORK_MODE`,required:!1,defaultRole:`level.mode.work`,defaultStates:{0:`AUTO`,1:`FAST`,2:`MEDIUM`,3:`SLOW`,4:`TURBO`},ignoreRole:r},{role:/^value\.water$/,indicator:!1,write:!1,type:t.StateType.Number,searchInParent:!0,unit:`%`,name:`WATER`,required:!1,defaultRole:`value.water`,defaultUnit:`%`},{role:/^value\.waste$/,indicator:!1,write:!1,type:t.StateType.Number,searchInParent:!0,unit:`%`,name:`WASTE`,required:!1,defaultRole:`value.waste`,defaultUnit:`%`},{role:/^value\.battery$/,indicator:!1,write:!1,type:t.StateType.Number,searchInParent:!0,unit:`%`,name:`BATTERY`,required:!1,defaultRole:`value.battery`,defaultUnit:`%`},{role:/^value\.state$/,indicator:!1,write:!1,type:[t.StateType.Number,t.StateType.String],searchInParent:!0,name:`STATE`,required:!1,defaultRole:`value.state`},{role:/^switch\.pause$/,indicator:!1,write:!0,type:t.StateType.Boolean,searchInParent:!0,name:`PAUSE`,required:!1,defaultRole:`switch.pause`},{role:/^indicator(\.maintenance)?\.waste$|^indicator(\.alarm)?\.waste/,indicator:!0,type:t.StateType.Boolean,searchInParent:!0,name:`WASTE_ALARM`,required:!1,defaultRole:`indicator.maintenance.waste`},{role:/^indicator(\.maintenance)?\.water$|^indicator(\.alarm)?\.water/,indicator:!0,type:t.StateType.Boolean,searchInParent:!0,name:`WATER_ALARM`,required:!1,defaultRole:`indicator.maintenance.water`},{role:/^value(\.usage)?\.filter/,indicator:!0,type:t.StateType.Number,searchInParent:!0,name:`FILTER`,required:!1,defaultRole:`value.usage.filter`,defaultUnit:`%`},{role:/^value(\.usage)?\.brush/,indicator:!0,type:t.StateType.Number,searchInParent:!0,name:`BRUSH`,required:!1,defaultRole:`value.usage.brush`,defaultUnit:`%`},{role:/^value(\.usage)?\.sensors/,indicator:!0,type:t.StateType.Number,searchInParent:!0,name:`SENSORS`,required:!1,defaultRole:`value.usage.sensors`,defaultUnit:`%`},{role:/^value(\.usage)?\.brush\.side/,indicator:!0,type:t.StateType.Number,searchInParent:!0,name:`SIDE_BRUSH`,required:!1,defaultRole:`value.usage.brush.side`,defaultUnit:`%`},i.unreach,i.lowbat,i.maintain,i.error,i.battery],type:t.Types.vacuumCleaner},blinds:{states:[{role:/^level(\.blind)?$/,indicator:!1,type:t.StateType.Number,write:!0,enums:n.roleOrEnumBlind,name:`SET`,required:!0,defaultRole:`level.blind`,defaultUnit:`%`},{role:/^value(\.blind)?$/,indicator:!1,type:t.StateType.Number,enums:n.roleOrEnumBlind,name:`ACTUAL`,required:!1,defaultRole:`value.blind`,defaultUnit:`%`},{role:/^(button|action)\.stop(\.blind)?$/,indicator:!1,type:t.StateType.Boolean,write:!0,enums:n.roleOrEnumBlind,name:`STOP`,required:!1,noSubscribe:!0,defaultRole:`button.stop.blind`},{role:/^(button|action)\.open(\.blind)?$/,indicator:!1,type:t.StateType.Boolean,write:!0,enums:n.roleOrEnumBlind,name:`OPEN`,required:!1,noSubscribe:!0,defaultRole:`button.open.blind`},{role:/^(button|action)\.close(\.blind)?$/,indicator:!1,type:t.StateType.Boolean,write:!0,enums:n.roleOrEnumBlind,name:`CLOSE`,required:!1,noSubscribe:!0,defaultRole:`button.close.blind`},{role:/^level(\.open)?\.tilt$/,indicator:!1,type:t.StateType.Number,write:!0,enums:n.roleOrEnumBlind,name:`TILT_SET`,required:!1,defaultRole:`level.tilt`},{role:/^value(\.open)?\.tilt$/,indicator:!1,type:t.StateType.Number,enums:n.roleOrEnumBlind,name:`TILT_ACTUAL`,required:!1,defaultRole:`value.tilt`},{role:/^(button|action)\.stop\.tilt$/,indicator:!1,type:t.StateType.Boolean,write:!0,enums:n.roleOrEnumBlind,name:`TILT_STOP`,required:!1,noSubscribe:!0,defaultRole:`button.stop.tilt`},{role:/^(button|action)\.open\.tilt$/,indicator:!1,type:t.StateType.Boolean,write:!0,enums:n.roleOrEnumBlind,name:`TILT_OPEN`,required:!1,noSubscribe:!0,defaultRole:`button.open.tilt`},{role:/^(button|action)\.close\.tilt$/,indicator:!1,type:t.StateType.Boolean,write:!0,enums:n.roleOrEnumBlind,name:`TILT_CLOSE`,required:!1,noSubscribe:!0,defaultRole:`button.close.tilt`},i.direction,i.direction_enum,i.working,i.unreach,i.lowbat,i.maintain,i.error,i.battery],type:t.Types.blind},blindButtons:{states:[{role:/^(button|action)\.stop(\.blind)?$/,indicator:!1,type:t.StateType.Boolean,write:!0,enums:n.roleOrEnumBlind,name:`STOP`,required:!0,noSubscribe:!0,defaultRole:`button.stop.blind`},{role:/^(button|action)\.open(\.blind)?$/,indicator:!1,type:t.StateType.Boolean,write:!0,enums:n.roleOrEnumBlind,name:`OPEN`,required:!0,noSubscribe:!0,defaultRole:`button.open.blind`},{role:/^(button|action)\.close(\.blind)?$/,indicator:!1,type:t.StateType.Boolean,write:!0,enums:n.roleOrEnumBlind,name:`CLOSE`,required:!0,noSubscribe:!0,defaultRole:`button.close.blind`},{role:/^level\.tilt$/,indicator:!1,type:t.StateType.Number,write:!0,enums:n.roleOrEnumBlind,name:`TILT_SET`,required:!1,defaultRole:`level.tilt`},{role:/^value\.tilt$/,indicator:!1,type:t.StateType.Number,enums:n.roleOrEnumBlind,name:`TILT_ACTUAL`,required:!1,defaultRole:`value.tilt`},{role:/^(button|action)\.stop\.tilt$/,indicator:!1,type:t.StateType.Boolean,write:!0,enums:n.roleOrEnumBlind,name:`TILT_STOP`,required:!1,noSubscribe:!0,defaultRole:`button.stop.tilt`},{role:/^(button|action)\.open\.tilt$/,indicator:!1,type:t.StateType.Boolean,write:!0,enums:n.roleOrEnumBlind,name:`TILT_OPEN`,required:!1,noSubscribe:!0,defaultRole:`button.open.tilt`},{role:/^(button|action)\.close\.tilt$/,indicator:!1,type:t.StateType.Boolean,write:!0,enums:n.roleOrEnumBlind,name:`TILT_CLOSE`,required:!1,noSubscribe:!0,defaultRole:`button.close.tilt`},i.direction,i.direction_enum,i.working,i.unreach,i.lowbat,i.maintain,i.error,i.battery],type:t.Types.blindButtons},gate:{states:[{role:/^switch(\.gate)?$/,indicator:!1,type:t.StateType.Boolean,write:!0,enums:n.roleOrEnumGate,name:`SET`,required:!0,defaultRole:`switch.gate`},{role:/^value(\.(position|gate))?$/,indicator:!1,type:t.StateType.Number,enums:n.roleOrEnumGate,name:`ACTUAL`,required:!1,defaultRole:`value.blind`,defaultUnit:`%`,ignoreRole:r},{role:/^(button|action)\.stop$/,indicator:!1,type:t.StateType.Boolean,write:!0,enums:n.roleOrEnumGate,name:`STOP`,required:!1,noSubscribe:!0,defaultRole:`button.stop`},i.direction,i.direction_enum,i.working,i.unreach,i.maintain,i.error],type:t.Types.gate},weatherCurrent:{states:[{role:/^value(\.temperature)?$/,indicator:!1,type:t.StateType.Number,name:`ACTUAL`,required:!0,defaultRole:`value.temperature`,defaultUnit:`°C`},{role:/^weather\.icon$/,indicator:!1,name:`ICON`,required:!0,defaultRole:`weather.icon`},{role:/^value\.precipitation\.chance$/,indicator:!1,type:t.StateType.Number,name:`PRECIPITATION_CHANCE`,defaultRole:`value.precipitation.chance`,defaultUnit:`%`},{role:/^value\.precipitation\.type$/,indicator:!1,type:t.StateType.Number,name:`PRECIPITATION_TYPE`,defaultRole:`value.precipitation.type`,defaultStates:{0:`NO`,1:`RAIN`,2:`SNOW`,3:`HAIL`}},{role:/^value\.pressure$/,indicator:!1,type:t.StateType.Number,name:`PRESSURE`,defaultRole:`value.pressure`,defaultUnit:`mbar`},{role:/^value\.pressure\.tendency$/,indicator:!1,type:t.StateType.String,name:`PRESSURE_TENDENCY`,defaultRole:`value.pressure.tendency`},{role:/^value\.temperature\.windchill$/,indicator:!1,type:t.StateType.Number,name:`REAL_FEEL_TEMPERATURE`,defaultRole:`value.temperature.windchill`,defaultUnit:`°C`},{role:/^value\.humidity$/,indicator:!1,type:t.StateType.Number,name:`HUMIDITY`,defaultRole:`value.humidity`,defaultUnit:`%`},{role:/^value\.uv$/,indicator:!1,type:t.StateType.Number,name:`UV`,defaultRole:`value.uv`},{role:/^weather\.state$/,indicator:!1,type:t.StateType.String,name:`WEATHER`,defaultRole:`weather.state`},{role:/^value\.direction\.wind$/,indicator:!1,type:t.StateType.String,name:`WIND_DIRECTION`,defaultRole:`value.direction.wind`,defaultUnit:`°`},{role:/^value\.speed\.wind\.gust$/,indicator:!1,type:t.StateType.Number,name:`WIND_GUST`,defaultRole:`value.speed.wind.gust`,defaultUnit:`km/h`},{role:/^value\.speed\.wind$/,indicator:!1,type:t.StateType.Number,name:`WIND_SPEED`,defaultRole:`value.speed.wind$`,defaultUnit:`km/h`},i.lowbat,i.unreach,i.maintain,i.error,i.battery],type:t.Types.weatherCurrent},camera:{states:[{role:/^link\.camera(\.\w+)?$/,indicator:!1,type:t.StateType.String,name:`URL`,required:!0,defaultRole:`link.camera`},{role:/^switch(\.camera)?\.autofocus$/,indicator:!1,type:t.StateType.Boolean,write:!0,name:`AUTOFOCUS`,required:!1,defaultRole:`switch.camera.autofocus`},{role:/^switch(\.camera)?\.autowhitebalance$/,indicator:!1,type:t.StateType.Boolean,write:!0,name:`AUTOWHITEBALANCE`,required:!1,defaultRole:`switch.camera.autowhitebalance`},{role:/^switch(\.camera)?\.brightness$/,indicator:!1,type:t.StateType.Boolean,write:!0,name:`BRIGHTNESS`,required:!1,defaultRole:`switch.camera.brightness`},{role:/^switch(\.camera)?\.nightmode$/,indicator:!1,type:t.StateType.Boolean,write:!0,name:`NIGHTMODE`,required:!1,defaultRole:`switch.camera.nightmode`},{role:/^level(\.camera)?\.position$|^level(\.camera)?(\.ptz)$/,indicator:!1,type:t.StateType.Number,write:!0,name:`PTZ`,required:!1,defaultRole:`level.camera.position`},i.unreach,i.lowbat,i.maintain,i.error,i.battery],type:t.Types.camera,enumRequired:!1},lock:{states:[{role:/^switch\.lock$/,indicator:!1,type:t.StateType.Boolean,write:!0,name:`SET`,required:!0,defaultRole:`switch.lock`},{role:/^state$/,indicator:!1,type:t.StateType.Boolean,write:!1,name:`ACTUAL`,required:!1,defaultRole:`state`},{indicator:!1,type:t.StateType.Boolean,write:!0,read:!1,name:`OPEN`,required:!1,noSubscribe:!0,defaultRole:`button`,ignoreRole:r},{role:/^(state|sensor)(\.door)?$/,indicator:!1,type:t.StateType.Boolean,write:!1,name:`DOOR_STATE`,required:!1,defaultRole:`sensor.door`,ignoreRole:r},i.direction,i.direction_enum,i.working,i.unreach,i.lowbat,i.maintain,i.error,i.battery],type:t.Types.lock},motion:{states:[{role:/^(state\.)?motion$|^sensor\.motion$/,indicator:!1,type:t.StateType.Boolean,name:`ACTUAL`,required:!0,defaultRole:`sensor.motion`,ignoreRole:r},{role:/brightness$/,indicator:!1,type:t.StateType.Number,name:`SECOND`,required:!1,defaultRole:`value.brightness`,defaultUnit:`lux`,ignoreRole:r},i.unreach,i.lowbat,i.maintain,i.error,i.battery],type:t.Types.motion},window:{states:[{role:/^(state|sensor)(\.window)?/,indicator:!1,type:t.StateType.Boolean,enums:n.roleOrEnumWindow,write:!1,name:`ACTUAL`,required:!0,defaultRole:`sensor.window`,ignoreRole:r},i.unreach,i.lowbat,i.maintain,i.error,i.battery],type:t.Types.window},windowTilt:{states:[{role:/^state$|^value(\.window)?$/,indicator:!1,type:t.StateType.Number,write:!1,enums:n.roleOrEnumWindow,name:`ACTUAL`,required:!0,defaultRole:`value.window`},i.unreach,i.lowbat,i.maintain,i.error,i.battery],type:t.Types.windowTilt},fireAlarm:{states:[{role:/^(state|sensor|indicator)(\.alarm)?\.fire$/,indicator:!1,type:t.StateType.Boolean,name:`ACTUAL`,required:!0,defaultRole:`sensor.alarm.fire`,defaultChannelRole:`sensor.alarm.fire`},i.unreach,i.lowbat,i.maintain,i.error,i.battery],type:t.Types.fireAlarm,enumRequired:!1},floodAlarm:{states:[{role:/^(state|sensor|indicator)(\.alarm)?\.flood$/,indicator:!1,type:t.StateType.Boolean,name:`ACTUAL`,required:!0,defaultRole:`sensor.alarm.flood`,defaultChannelRole:`sensor.alarm.flood`},i.unreach,i.lowbat,i.maintain,i.error,i.battery],type:t.Types.floodAlarm},door:{states:[{role:/^(state|sensor)(\.door)?/,indicator:!1,type:t.StateType.Boolean,write:!1,enums:n.roleOrEnumDoor,name:`ACTUAL`,required:!0,defaultRole:`sensor.door`},i.unreach,i.lowbat,i.maintain,i.error,i.battery],type:t.Types.door},dimmer:{states:[{role:/^level(\.dimmer)?$|^level\.brightness$/,indicator:!1,type:t.StateType.Number,write:!0,enums:n.roleOrEnumLight,name:`SET`,required:!0,defaultRole:`level.dimmer`,ignoreRole:/^level\.dimspeed$/,defaultUnit:`%`},{role:/^value(\.dimmer)?$/,indicator:!1,type:t.StateType.Number,write:!1,enums:n.roleOrEnumLight,name:`ACTUAL`,required:!1,defaultRole:`value.dimmer`,defaultUnit:`%`},{role:/^switch(\.light)?$|^state$/,indicator:!1,type:t.StateType.Boolean,write:!0,enums:n.roleOrEnumLight,name:`ON_SET`,required:!1,defaultRole:`switch.light`},{role:/^level\.effect$/,indicator:!1,type:[t.StateType.Number,t.StateType.String],write:!0,statesDefined:!0,name:`EFFECT`,required:!1,defaultRole:`level.effect`,defaultStates:{0:`None`}},{role:/^(state|switch|sensor)\.light|switch$/,indicator:!1,type:t.StateType.Boolean,write:!1,enums:n.roleOrEnumLight,name:`ON_ACTUAL`,required:!1,defaultRole:`sensor.light`,ignoreRole:r},{role:/^time\.(span|interval)$/,indicator:!1,type:t.StateType.Number,write:!0,enums:n.roleOrEnumLight,name:`TRANSITION_TIME`,required:!1,defaultRole:`time.span`,defaultUnit:`ms`},...Object.values(a),i.working,i.unreach,i.lowbat,i.maintain,i.error,i.battery],type:t.Types.dimmer},light:{states:[{role:/^switch(\.light)?$|^state$/,enums:n.roleOrEnumLight,indicator:!1,type:t.StateType.Boolean,write:!0,name:`SET`,required:!0,defaultRole:`switch.light`},{role:/^(state|switch|sensor)\.light|switch$/,indicator:!1,type:t.StateType.Boolean,write:!1,enums:n.roleOrEnumLight,name:`ON_ACTUAL`,required:!1,defaultRole:`sensor.light`,ignoreRole:r},{role:/^level\.effect$/,indicator:!1,type:[t.StateType.Number,t.StateType.String],write:!0,statesDefined:!0,name:`EFFECT`,required:!1,defaultRole:`level.effect`,defaultStates:{0:`None`}},...Object.values(a),i.working,i.unreach,i.lowbat,i.maintain,i.error,i.battery],type:t.Types.light},volume:{states:[{role:/^level\.volume$/,indicator:!1,type:t.StateType.Number,min:t.StateType.Number,max:t.StateType.Number,write:!0,name:`SET`,required:!0,defaultRole:`level.volume`,defaultUnit:`%`},{role:/^value\.volume$/,indicator:!1,type:t.StateType.Number,min:t.StateType.Number,max:t.StateType.Number,write:!1,name:`ACTUAL`,required:!1,defaultRole:`value.volume`,defaultUnit:`%`},{role:/^media\.mute$/,indicator:!1,type:t.StateType.Boolean,write:!0,name:`MUTE`,required:!1,defaultRole:`media.mute`},i.working,i.unreach,i.lowbat,i.maintain,i.error,i.battery],type:t.Types.volume},locationOne:{states:[{role:/^value\.gps$/,indicator:!1,type:t.StateType.String,write:!1,name:`GPS`,required:!0,defaultRole:`value.gps`},{role:/^value\.gps\.elevation$/,indicator:!1,type:t.StateType.Number,write:!1,name:`ELEVATION`,required:!1,defaultRole:`value.gps.elevation`},{role:/^value(\.gps)?\.radius$/,indicator:!1,type:t.StateType.Number,write:!1,name:`RADIUS`,required:!1,defaultRole:`value.gps.radius`},{role:/^value(\.gps)?\.accuracy$/,indicator:!1,type:t.StateType.Number,write:!1,name:`ACCURACY`,required:!1,defaultRole:`value.gps.accuracy`},i.unreach,i.lowbat,i.maintain,i.error,i.battery],type:t.Types.locationOne},location:{states:[{role:/^value(\.gps)?\.longitude$/,indicator:!1,type:t.StateType.Number,write:!1,name:`LONGITUDE`,required:!0,defaultRole:`value.gps.longitude`,defaultUnit:`°`},{role:/^value(\.gps)?\.latitude$/,indicator:!1,type:t.StateType.Number,write:!1,name:`LATITUDE`,required:!0,defaultRole:`value.gps.latitude`,defaultUnit:`°`},{role:/^value(\.gps)?\.elevation$/,indicator:!1,type:t.StateType.Number,write:!1,name:`ELEVATION`,required:!1,defaultRole:`value.gps.elevation`},{role:/^value(\.gps)?\.radius$/,indicator:!1,type:t.StateType.Number,write:!1,name:`RADIUS`,required:!1,defaultRole:`value.gps.radius`},{role:/^value(\.gps)?\.accuracy$/,indicator:!1,type:t.StateType.Number,write:!1,name:`ACCURACY`,required:!1,defaultRole:`value.gps.accuracy`},i.unreach,i.lowbat,i.maintain,i.error,i.battery],type:t.Types.location},volumeGroup:{states:[{role:/^level\.volume\.group?$/,indicator:!1,type:t.StateType.Number,min:t.StateType.Number,max:t.StateType.Number,write:!0,name:`SET`,required:!0,defaultRole:`level.volume.group`,defaultUnit:`%`},{role:/^value\.volume\.group$/,indicator:!1,type:t.StateType.Number,min:t.StateType.Number,max:t.StateType.Number,write:!1,name:`ACTUAL`,required:!1,defaultRole:`value.volume.group`,defaultUnit:`%`},{role:/^media\.mute\.group$/,indicator:!1,type:t.StateType.Boolean,write:!0,name:`MUTE`,required:!1,defaultRole:`media.mute.group`},i.working,i.unreach,i.lowbat,i.maintain,i.error,i.battery],type:t.Types.volumeGroup},percentage:{states:[{role:/^level(\..*)?$/,indicator:!1,type:t.StateType.Number,write:!0,unit:`%`,name:`SET`,required:!0,defaultRole:`level`,defaultUnit:`%`,ignoreRole:r},{role:/^value(\..*)?$/,indicator:!1,type:t.StateType.Number,write:!1,name:`ACTUAL`,required:!1,defaultRole:`value`,defaultUnit:`%`,ignoreRole:r},i.working,i.unreach,i.lowbat,i.maintain,i.error,i.battery],type:t.Types.percentage},levelSlider:{states:[{role:/^level(\..*)?$/,indicator:!1,type:t.StateType.Number,min:t.StateType.Number,max:t.StateType.Number,write:!0,name:`SET`,required:!0,defaultRole:`level`,defaultUnit:`%`,ignoreRole:r},{role:/^value(\..*)?$/,indicator:!1,type:t.StateType.Number,min:t.StateType.Number,max:t.StateType.Number,write:!1,name:`ACTUAL`,required:!1,defaultRole:`value`,defaultUnit:`%`,ignoreRole:r},i.working,i.unreach,i.lowbat,i.maintain,i.error,i.battery],type:t.Types.slider},socket:{states:[{role:/^switch(\.active)?$|^state$/,indicator:!1,type:t.StateType.Boolean,write:!0,name:`SET`,required:!0,defaultRole:`switch`},{role:/^state(\.active)?$|^sensor.switch$/,indicator:!1,type:t.StateType.Boolean,write:!1,name:`ACTUAL`,required:!1,defaultRole:`sensor.switch`},...Object.values(a),i.working,i.unreach,i.lowbat,i.maintain,i.error],type:t.Types.socket},button:{states:[{role:/^(button|action)(\.[.\w]+)?$/,indicator:!1,type:t.StateType.Boolean,read:!1,write:!0,name:`SET`,required:!0,noSubscribe:!0,defaultRole:`button`},i.unreach,i.lowbat,i.maintain,i.error,i.battery],type:t.Types.button},buttonSensor:{states:[{role:/^button(\.[.\w]+)?$/,indicator:!1,type:t.StateType.Boolean,read:!0,write:!1,name:`PRESS`,required:!0,defaultRole:`button.press`},{role:/^button\.long/,indicator:!1,type:t.StateType.Boolean,read:!0,write:!1,name:`PRESS_LONG`,required:!1,defaultRole:`button.long`},i.unreach,i.lowbat,i.maintain,i.error,i.battery],type:t.Types.buttonSensor},temperature:{states:[{role:/\.temperature$/,indicator:!1,write:!1,type:t.StateType.Number,name:`ACTUAL`,required:!0,defaultRole:`value.temperature`,defaultUnit:`°C`},{role:/\.humidity$/,indicator:!1,write:!1,type:t.StateType.Number,name:`SECOND`,required:!1,defaultRole:`value.humidity`,defaultUnit:`%`},i.unreach,i.lowbat,i.maintain,i.error,i.battery],type:t.Types.temperature},humidity:{states:[{role:/\.humidity$/,indicator:!1,write:!1,type:t.StateType.Number,name:`ACTUAL`,required:!0,defaultRole:`value.humidity`,defaultUnit:`%`},i.unreach,i.lowbat,i.maintain,i.error,i.battery],type:t.Types.humidity},illuminance:{states:[{role:/\.brightness$/,indicator:!1,write:!1,type:t.StateType.Number,name:`ACTUAL`,required:!0,defaultRole:`value.brightness`,defaultUnit:`lux`},i.unreach,i.lowbat,i.maintain,i.error,i.battery],type:t.Types.illuminance},image:{states:[{role:/\.icon$|^icon$|^icon\.|\.icon\.|\.chart\.url\.|\.chart\.url$|^url.icon$/,indicator:!1,write:!1,type:t.StateType.String,name:`URL`,defaultRole:`icon`,required:!0,ignoreRole:r},i.unreach,i.lowbat,i.maintain,i.error,i.battery],type:t.Types.image},info:{states:[{indicator:!1,name:`ACTUAL`,required:!0,multiple:!0,noDeviceDetection:!0,ignoreRole:/\.inhibit$/,defaultRole:`state`},i.working,i.unreach,i.lowbat,i.maintain,i.error,i.battery],type:t.Types.info}}})),VG=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ChannelDetector=void 0;var t=RG(),n=zG(),r=BG(),i=class e{constructor(){this.enums=null,this.cache={}}_applyPattern(e,r,i,a,o){if(e[r]?.common){let s=null;if(i.role&&(s=i.role.test(e[r].common.role||``),s&&i.channelRole)){let t=(0,n.getParentId)(r),a=e[t]?.common.role||``;s=a&&(e[t].type===`channel`||e[t].type===`device`)?i.channelRole.test(a):!1}if(s===!1)return!1;if(i.type){if(typeof i.type==`string`){if(i.type!==e[r].common.type)return!1}else if(Array.isArray(i.type)){let t=!1;for(let n=0;n<i.type.length;n++)if(i.type[n]===e[r].common.type){t=!0;break}if(!t)return!1}}if(i.objectType&&e[r].type!==i.objectType||i.stateName&&!i.stateName.test(r)||i.unit&&i.unit!==e[r].common.unit)return!1;if(i.ignoreRole){let t=e[r].common.role||``;if(t&&i.ignoreRole.test(t))return!1}if(i.indicator===!1&&(e[r].common.role||``).match(/^indicator(\.[.\w]+)?$/))return!1;if(i.state){let e=r.split(`.`).pop()||``;if(e&&!i.state.test(e))return!1}let c=i.defaultRole&&e[r].common.role===i.defaultRole,l=i.defaultUnit?e[r].common.unit===i.defaultUnit:!1;if(i.min===t.StateType.Number&&typeof e[r].common.min!==t.StateType.Number&&(!l||e[r].common.unit!==`%`)||i.max===t.StateType.Number&&typeof e[r].common.max!==t.StateType.Number&&(!l||e[r].common.unit!==`%`)||i.statesDefined===!0&&typeof e[r].common.states!=`object`)return!1;if(!c){if(i.write!==void 0&&i.write!==!!e[r].common.write||i.read!==void 0&&i.read!==(e[r].common.read===void 0?!0:e[r].common.read))return!1;if(typeof i.enums==`function`){let t=this._getEnumsForId(e,r,o);if(!a&&!i.enums(e[r],t||[]))return!1}}return!0}return!1}_getEnumsForId(e,t,r){this.enums||=(0,n.getFunctionEnums)(e,r);let i=[];if(this.enums.forEach(n=>{e[n].common.members.includes(t)&&i.push(n)}),!i.length&&e[t]?.type===`state`){let r=(0,n.getParentId)(t);e[r]&&(e[r].type===`channel`||e[r].type===`device`)&&this.enums.forEach(t=>{e[t].common.members.includes(r)&&i.push(t)})}return i.length?i:null}static copyState(e,t){let n=t||JSON.parse(JSON.stringify(e));return n.original=e.original||e,`enums`in e&&e.enums&&(n.enums=e.enums),`role`in e&&e.role&&(n.role=e.role),`channelRole`in e&&e.channelRole&&(n.channelRole=e.channelRole),n}_testOneState(t){let n=t.objects,i=t.pattern,a=t.state,o=t.channelStates,s=t.usedIds,c=t.usedInCurrentDevice,l=t.ignoreIndicators,u=t.ignoreEnums,d=t.sortedKeys,f=t.result,p=!1;for(let m of o)if(!(a.name===`COVER`&&f?.states.find(e=>e.id&&e.name===`COVER`))){if(a.indicator&&l){let e=m.split(`.`).pop()||``;if(e&&l.includes(e))continue}if(!a.indicator&&(c.includes(m)||!a.notSingle&&!t.detectAllPossibleDevices&&s.includes(m)))continue;if(this._applyPattern(n,m,a,u,d)){if(f||(f=JSON.parse(JSON.stringify(r.patterns[i])),t.result=f,f?.states.forEach((t,n)=>e.copyState(r.patterns[i].states[n],t))),f.states.find(({id:e})=>e===m))p=!0;else for(let e of f.states)if(e.name===a.name){if(e.id){let r;t.favorId&&(m===t.favorId?r=!0:e.id===t.favorId&&(r=!1));let i=n[e.id]?.common?.role??``,a=n[m]?.common?.role??``,o=e.defaultRole;if(o&&r===void 0&&(a===o?r=!0:i===o&&(r=!1)),r===void 0){let e=a.split(`.`),t=e.length,n=i.split(`.`),o=n.length;r=a===``||e[0]===`state`&&n[0]!==`state`?!1:e[0]!==`state`&&n[0]===`state`||t>o?!0:t<o?!1:e[0]!==`state`}if(!r)break}e.id=m,p=!0;break}if(p&&(a.indicator||c.push(m),a.multiple&&o.length>1)){for(let t of o)if(t!==m&&(a.indicator||!c.includes(t)&&(a.notSingle||!s.includes(t)))&&this._applyPattern(n,t,a,u,d))if(a.indicator||c.push(t),Array.isArray(a)){let n=e.copyState(a[0]);n.id=t,f.states.push(n)}else{let n=e.copyState(a);n.id=t,f.states.push(n)}}}}return p}static findParentChannelOrDevice(e,t,n){if(!e[t])return;let r=t.split(`.`),i=t;if(e[t].type===`state`&&(r.pop(),t=r.join(`.`)),r.length<=2)return t;let a=e[t];if(a?.type===`device`||n&&a?.type===`channel`)return t;if(n)return;r.pop();let o=r.join(`.`),s=e[o];if(!s)return a?t:i;if(s.type===`device`||r.length<=2)return o;if(a?.type===`channel`)return t;r.pop();let c=r.join(`.`),l=e[c];return!l||l.type!==`device`&&l.type!==`channel`?o:c}static getChannelOrDeviceStates(t,r,i,a=!1,o=!1){let s=t[r]?.type;switch(s){case void 0:return[...(0,n.getObjectsBelowId)(i,r)];case`state`:case`channel`:case`device`:case`folder`:if(a&&s!==`device`){let a=e.findParentChannelOrDevice(t,r);return a&&a!==r?[...(0,n.getObjectsBelowId)(i,a)]:[r]}if(s!==`state`)return[...(0,n.getObjectsBelowId)(i,r)];if(o){let a=e.findParentChannelOrDevice(t,r,!0);return a&&a!==r?[...(0,n.getObjectsBelowId)(i,a)]:[r]}return[r];default:return[r]}}static patternIsAllowed(e,t,n){if(!e)return!1;if(Array.isArray(e.type)){for(let r=0;r<e.type.length;r++)if(t&&!t.includes(e.type[r])||n&&n.includes(e.type[r]))return!1;return!0}return t&&!t.includes(e.type)?!1:!n||!n.includes(e.type)}static allRequiredStatesFound(e){if(!e.result)return!1;let t=e.result.states;for(let e=0;e<t.length;e++)if(t[e].required&&!t[e].id)return!1;return!0}static cleanState(e,t){let n=t[e.id]?.common?.role||``;if(e.name.includes(`%d`)&&e.role&&e.id&&n){let t=e.role.exec(n);t&&(e.name=e.name.replace(`%d`,t[1]))}e.role&&delete e.role,e.enums&&delete e.enums,e.original&&delete e.original}sortTypes(e,t){return t.forEach(([t,n])=>{let r=e.indexOf(t),i=e.indexOf(n);if(r===-1||i===-1)return;let a=e.splice(r,1);e.splice(i,0,...a)}),e}_detectNext(t){let{objects:i,id:a,_usedIdsOptional:o=[],ignoreIndicators:s,prioritizedTypes:c,detectParent:l,detectOnlyChannel:u,allowedTypes:d,excludedTypes:f,_keysOptional:p,detectAllPossibleDevices:m}=t,{_patternList:h}=t;t._usedIdsOptional=o;let g=e.getChannelOrDeviceStates(i,a,p||[],l,u);if(!i[a]?.common&&!g.length)return null;if(t._checkedPatterns??=[],!h){let n=Object.keys(r.patterns).filter(t=>e.patternIsAllowed(r.patterns[t],d,f));h=c?this.sortTypes(n,c):n,t._patternList=h}let _={objects:i,channelStates:g,usedIds:o,ignoreIndicators:s||[],pattern:`unknown`,usedInCurrentDevice:[],state:{},ignoreEnums:!!t.ignoreEnums,sortedKeys:p,favorId:t.detectParent?void 0:a,detectAllPossibleDevices:m},v=i[a]?.type;for(let s of h){if(t._checkedPatterns.includes(s))continue;t._checkedPatterns.push(s),delete _.result,_.pattern=s,_.usedInCurrentDevice=[];for(let e of r.patterns[s].states){let t=!1;if(_.state=e,this._testOneState(_)&&(t=!0),e.required&&!t){delete _.result;break}}if(!e.allRequiredStatesFound(_))continue;_.usedInCurrentDevice.forEach(e=>o.push(e));let c;if(v!==`device`){let r=e.findParentChannelOrDevice(i,a)??a;if(i[r]&&(i[r].type===`channel`||i[r].type===`device`)){c=(0,n.getObjectsBelowId)(p,r);for(let e of c)_.result.states.forEach((n,r)=>{!n.id&&(n.indicator||n.searchInParent)&&!n.noDeviceDetection&&this._applyPattern(i,e,n.original,!!t.ignoreEnums,_.sortedKeys)&&_.result&&(_.result.states[r].id=e)})}}if(_.result.states.forEach(t=>e.cleanState(t,_.objects)),t.limitTypesToOneOf){for(let e of t.limitTypesToOneOf)if(e.includes(s))for(let n of e)n===s||t._checkedPatterns.includes(n)||t._checkedPatterns.push(n)}return _.result}return null}detect(e){let{objects:n,id:r,ignoreCache:i,detectAllPossibleDevices:a}=e,{_keysOptional:o,_usedIdsOptional:s}=e;if(!i&&this.cache[r]){let{allowedTypes:t=[],excludedTypes:n=[]}=e;if(!t.length&&!n.length)return this.cache[r];let i=this.cache[r].filter(({type:e})=>t.includes(e)&&!n.includes(e));if(i.length)return i}o?e._keysOptionalSorted||o.sort():(o=Object.keys(n),o.sort(),e._keysOptional=o),s&&!e.detectParent&&(s=[],e._usedIdsOptional=s),e.ignoreEnums===void 0&&e.allowedTypes?.length===1&&(e.ignoreEnums=!0),a&&(e.excludedTypes||=[],e.excludedTypes.includes(t.Types.info)||e.excludedTypes.push(t.Types.info)),e._checkedPatterns=[];let c=[],l;for(;l=this._detectNext(e);)c.push(l),e.detectAllPossibleDevices&&(e._usedIdsOptional=[]);return c.sort((e,n)=>{if(e.type===t.Types.info&&n.type!==t.Types.info)return 1;if(n.type===t.Types.info&&e.type!==t.Types.info)return-1;let i=+!!e.states.find(e=>e.id===r&&e.required),a=+!!n.states.find(e=>e.id===r&&e.required);if(i!==a)return a-i;if(!i){let t=+!!e.states.find(e=>e.id===r),i=+!!n.states.find(e=>e.id===r);if(t!==i)return i-t}let o=e.states.filter(e=>e.id).length;return n.states.filter(e=>e.id).length-o}),this.cache[r]=c.length?c:null,this.cache[r]}static getPatterns(){let e={};return Object.keys(r.patterns).forEach(t=>{let n=JSON.parse(JSON.stringify(r.patterns[t]));n.states.forEach((e,i)=>{let a=r.patterns[t].states[i];a.role&&(n.states[i].role=a.role.toString()),a.enums&&(n.states[i].enums=!0)}),e[t]=n}),e}};e.ChannelDetector=i,i.getEnums=n.getEnums})),HG=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.StateType=e.Types=e.roleOrEnumGate=e.roleOrEnumDoor=e.roleOrEnumWindow=e.roleOrEnumBlind=e.roleOrEnumLight=void 0;var t=VG(),n=zG();Object.defineProperty(e,"roleOrEnumLight",{enumerable:!0,get:function(){return n.roleOrEnumLight}}),Object.defineProperty(e,"roleOrEnumBlind",{enumerable:!0,get:function(){return n.roleOrEnumBlind}}),Object.defineProperty(e,"roleOrEnumWindow",{enumerable:!0,get:function(){return n.roleOrEnumWindow}}),Object.defineProperty(e,"roleOrEnumDoor",{enumerable:!0,get:function(){return n.roleOrEnumDoor}}),Object.defineProperty(e,"roleOrEnumGate",{enumerable:!0,get:function(){return n.roleOrEnumGate}}),e.default=t.ChannelDetector;var r=RG();Object.defineProperty(e,"Types",{enumerable:!0,get:function(){return r.Types}}),Object.defineProperty(e,"StateType",{enumerable:!0,get:function(){return r.StateType}})}));B.createContext;function UG(){return UG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UG.apply(null,arguments)}function WG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function GG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?WG(Object(n),!0).forEach(function(t){KG(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function KG(e,t,n){return(t=qG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qG(e){var t=JG(e,`string`);return typeof t==`symbol`?t:t+``}function JG(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function YG(e){return e&&e.map((e,t)=>B.createElement(e.tag,GG({key:t},e.attr),YG(e.child)))}var XG=HG();XG.Types.airCondition,XG.Types.blind,XG.Types.blindButtons,XG.Types.button,XG.Types.buttonSensor,XG.Types.camera,XG.Types.chart,XG.Types.image,XG.Types.dimmer,XG.Types.door,XG.Types.fireAlarm,XG.Types.floodAlarm,XG.Types.gate,XG.Types.humidity,XG.Types.illuminance,XG.Types.info,XG.Types.light,XG.Types.lock,XG.Types.location,XG.Types.locationOne,XG.Types.media,XG.Types.motion,XG.Types.ct,XG.Types.percentage,XG.Types.rgb,XG.Types.rgbSingle,XG.Types.rgbwSingle,XG.Types.hue,XG.Types.cie,XG.Types.slider,XG.Types.socket,XG.Types.temperature,XG.Types.thermostat,XG.Types.vacuumCleaner,XG.Types.volume,XG.Types.volumeGroup,XG.Types.window,XG.Types.windowTilt,XG.Types.weatherCurrent,XG.Types.weatherForecast,XG.Types.warning,XG.Types.unknown,XG.Types.instance,B.Component;function ZG(e){return B.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,onClick:t=>e.onClick&&e.onClick(t),viewBox:`0 0 512 512`,width:e.width||(e.fontSize===`small`?16:20),height:e.height||e.width||(e.fontSize===`small`?16:20),className:e.className,style:e.style},B.createElement(`path`,{fill:`currentColor`,d:`M448 0L320 96v62.06l-83.03 83.03c6.79 4.25 13.27 9.06 19.07 14.87 5.8 5.8 10.62 12.28 14.87 19.07L353.94 192H416l96-128-64-64zM128 278.59L10.92 395.67c-14.55 14.55-14.55 38.15 0 52.71l52.7 52.7c14.56 14.56 38.15 14.56 52.71 0L233.41 384c29.11-29.11 29.11-76.3 0-105.41s-76.3-29.11-105.41 0z`}))}function QG(e){return B.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,onClick:t=>e.onClick&&e.onClick(t),viewBox:`0 0 320 320`,width:e.width||(e.fontSize===`small`?16:20),height:e.height||e.width||(e.fontSize===`small`?16:20),className:e.className,style:e.style},B.createElement(`g`,{fill:`currentColor`},B.createElement(`rect`,{rx:`32`,height:`272`,width:`267`,y:`25`,x:`25`,strokeWidth:`15`,stroke:`currentColor`,fill:`none`}),B.createElement(`ellipse`,{stroke:`currentColor`,ry:`26`,rx:`26`,cy:`248`,cx:`160`,fill:`none`,strokeWidth:`15`}),B.createElement(`line`,{y2:`201.94531`,x2:`159.5`,y1:`46.94531`,x1:`159.5`,fillOpacity:`null`,strokeOpacity:`null`,strokeWidth:`15`,stroke:`currentColor`,fill:`none`}),B.createElement(`rect`,{height:`27`,width:`50`,y:`79.7979`,x:`133.5`,fillOpacity:`null`,strokeOpacity:`null`,strokeWidth:`15`,stroke:`currentColor`,fill:`#fff`})))}function $G(e){return B.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,onClick:t=>e.onClick&&e.onClick(t),viewBox:`0 0 512 512`,width:e.width||(e.fontSize===`small`?16:20),height:e.height||e.width||(e.fontSize===`small`?16:20),className:e.className,style:e.style},B.createElement(`path`,{fill:`currentColor`,d:`M433.941 65.941l-51.882-51.882A48 48 0 0 0 348.118 0H176c-26.51 0-48 21.49-48 48v48H48c-26.51 0-48 21.49-48 48v320c0 26.51 21.49 48 48 48h224c26.51 0 48-21.49 48-48v-48h80c26.51 0 48-21.49 48-48V99.882a48 48 0 0 0-14.059-33.941zM266 464H54a6 6 0 0 1-6-6V150a6 6 0 0 1 6-6h74v224c0 26.51 21.49 48 48 48h96v42a6 6 0 0 1-6 6zm128-96H182a6 6 0 0 1-6-6V54a6 6 0 0 1 6-6h106v88c0 13.255 10.745 24 24 24h88v202a6 6 0 0 1-6 6zm6-256h-64V48h9.632c1.591 0 3.117.632 4.243 1.757l48.368 48.368a6 6 0 0 1 1.757 4.243V112z`}))}function eK(e){return B.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,onClick:t=>e.onClick&&e.onClick(t),viewBox:`0 0 320 320`,width:e.width||(e.fontSize===`small`?16:20),height:e.height||e.width||(e.fontSize===`small`?16:20),className:e.className,style:e.style},B.createElement(`g`,{fill:`currentColor`},B.createElement(`rect`,{rx:`32`,height:`272`,width:`267`,y:`25`,x:`25`,strokeWidth:`15`,stroke:`currentColor`,fill:`none`}),B.createElement(`ellipse`,{stroke:`currentColor`,ry:`26`,rx:`26`,cy:`252`,cx:`160`,fillOpacity:`null`,strokeOpacity:`null`,strokeWidth:`15`,fill:`#fff`}),B.createElement(`line`,{y2:`201.94531`,x2:`159.5`,y1:`46.94531`,x1:`159.5`,fillOpacity:`null`,strokeOpacity:`null`,strokeWidth:`15`,stroke:`currentColor`,fill:`none`}),B.createElement(`rect`,{height:`27`,width:`50`,y:`140.83068`,x:`133.5`,fillOpacity:`null`,strokeOpacity:`null`,strokeWidth:`15`,stroke:`currentColor`,fill:`#fff`}),B.createElement(`ellipse`,{stroke:`currentColor`,ry:`26`,rx:`26`,cy:`251`,cx:`241`,fillOpacity:`null`,strokeOpacity:`null`,strokeWidth:`15`,fill:`#fff`}),B.createElement(`line`,{y2:`200.94531`,x2:`240.5`,y1:`45.94531`,x1:`240.5`,fillOpacity:`null`,strokeOpacity:`null`,strokeWidth:`15`,stroke:`currentColor`,fill:`none`}),B.createElement(`rect`,{height:`27`,width:`50`,y:`78.7979`,x:`214.5`,strokeWidth:`15`,stroke:`currentColor`,fill:`#fff`}),B.createElement(`ellipse`,{stroke:`currentColor`,ry:`26`,rx:`26`,cy:`252`,cx:`84`,fillOpacity:`null`,strokeOpacity:`null`,strokeWidth:`15`,fill:`#fff`}),B.createElement(`line`,{y2:`201.94531`,x2:`83.5`,y1:`46.94531`,x1:`83.5`,fillOpacity:`null`,strokeOpacity:`null`,strokeWidth:`15`,stroke:`currentColor`,fill:`none`}),B.createElement(`rect`,{height:`27`,width:`50`,y:`79.7979`,x:`57.5`,fillOpacity:`null`,strokeOpacity:`null`,strokeWidth:`15`,stroke:`currentColor`,fill:`#fff`})))}function tK(e){return B.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`,onClick:t=>e.onClick&&e.onClick(t),width:e.width||(e.fontSize===`small`?16:20),height:e.height||e.width||(e.fontSize===`small`?16:20),className:e.className,style:e.style},B.createElement(`path`,{fill:`currentColor`,d:`M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48z`}))}function nK(e){return B.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,onClick:t=>e.onClick&&e.onClick(t),viewBox:`0 0 512 512`,width:e.width||(e.fontSize===`small`?16:20),height:e.height||e.width||(e.fontSize===`small`?16:20),className:e.className,style:e.style},B.createElement(`path`,{fill:`currentColor`,d:`M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48z`}),B.createElement(`path`,{fill:`currentColor`,stroke:`null`,d:`m261,270l-12,0l0,-24c0,-33.12 -26.88,-60 -60,-60s-60,26.88 -60,60l0,24l-12,0c-13.2,0 -24,10.8 -24,24l0,120c0,13.2 10.8,24 24,24l144,0c13.2,0 24,-10.8 24,-24l0,-120c0,-13.2 -10.8,-24 -24,-24zm-72,108c-13.2,0 -24,-10.8 -24,-24s10.8,-24 24,-24s24,10.8 24,24s-10.8,24 -24,24zm37.2,-108l-74.4,0l0,-24c0,-20.52 16.68,-37.2 37.2,-37.2c20.52,0 37.2,16.68 37.2,37.2l0,24z`}))}function rK(e){return B.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,onClick:t=>e.onClick&&e.onClick(t),viewBox:`0 0 512 512`,width:e.width||(e.fontSize===`small`?16:20),height:e.height||e.width||(e.fontSize===`small`?16:20),className:e.className,style:e.style},B.createElement(`path`,{fill:`currentColor`,d:`M448 0L320 96v62.06l-83.03 83.03c6.79 4.25 13.27 9.06 19.07 14.87 5.8 5.8 10.62 12.28 14.87 19.07L353.94 192H416l96-128-64-64zM128 278.59L10.92 395.67c-14.55 14.55-14.55 38.15 0 52.71l52.7 52.7c14.56 14.56 38.15 14.56 52.71 0L233.41 384c29.11-29.11 29.11-76.3 0-105.41s-76.3-29.11-105.41 0z`}))}function iK(e){return B.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,onClick:t=>e.onClick&&e.onClick(t),viewBox:`0 0 320 320`,width:e.width||(e.fontSize===`small`?16:20),height:e.height||e.width||(e.fontSize===`small`?16:20),className:e.className,style:e.style},B.createElement(`rect`,{fill:`none`,rx:`32`,height:`272`,width:`267`,y:`25`,x:`25`,strokeWidth:`15`,stroke:`currentColor`}),B.createElement(`ellipse`,{fill:`none`,ry:`54`,rx:`54`,cy:`160`,cx:`160`,fillOpacity:`null`,strokeOpacity:`null`,strokeWidth:`15`,stroke:`currentColor`}))}function aK(e){return B.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,onClick:t=>e.onClick&&e.onClick(t),viewBox:`0 0 24 24`,width:e.width||(e.fontSize===`small`?16:20),height:e.height||e.width||(e.fontSize===`small`?16:20),className:e.className,style:e.style},B.createElement(`path`,{fill:`currentColor`,stroke:`currentColor`,d:`M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39A.998.998 0 0 0 18.95 4H5.04c-.83 0-1.3.95-.79 1.61z`}))}var oK={root:{width:`100%`,height:`100%`},overflowHidden:{overflow:`hidden`},container:{height:`100%`}};function sK(e){return B.createElement(z_,{elevation:Number.isNaN(e.elevation)?1:e.elevation,style:{...oK.root,...e.styles?.root||void 0,...e.overflow===`visible`?void 0:oK.overflowHidden},onKeyDown:e.onKeyDown,tabIndex:e.tabIndex},B.createElement(Bw,{container:!0,direction:`column`,wrap:`nowrap`,sx:oK.container},e.children))}var cK={root:{height:`100%`,overflow:`hidden`},overflowAuto:{overflow:`auto`}},lK=B.forwardRef(function(e,t){return B.createElement(Bw,{sx:{...cK.root,...e?.style||void 0,...e.overflow===`auto`?cK.overflowAuto:void 0},ref:t},e.children)});function uK(e){return B.createElement(Bw,{container:!0,alignItems:`center`},e.children)}var dK=e=>e===`dark`?`#62ff25`:`#37c400`,fK=e=>e===`dark`?`#ee56ff`:`#a204b4`,pK=e=>e===`dark`?`#fff46e`:`#b89101`,mK=e=>`#ff6d69`,hK=e=>`#5773ff`,gK=[`0_userdata.0.`,`alias.0.`],_K={headerCellInput:{width:`calc(100% - 5px)`,height:32,pt:0,"& .itemIcon":{verticalAlign:`middle`,width:24,height:24,display:`inline-block`}},headerCellSelectItem:{"& .itemIcon":{width:24,height:24,mr:`5px`,display:`inline-block`}},selectNone:{opacity:.5},selectClearButton:{position:`absolute`,top:0,right:0,borderRadius:5,backgroundColor:`background.default`},cellIdTooltipLink:{color:`#7ec2fd`,"&:hover":{color:`#7ec2fd`},"&:visited":{color:`#7ec2fd`}},cellIdTooltip:{fontSize:14}};function vK(e){return B.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 436 436`,style:e?.style,width:`24`,height:`24`,className:`admin-button`},B.createElement(`g`,{fill:`currentColor`},B.createElement(`path`,{d:`m195.23077,24.30769c-36,3 -67,12 -96,26c-49,24 -82,61 -93,104l-3,11l-1,50c0,46 0,49 2,59l5,20c21,58 84,103 165,116c16,3 53,4 70,2c60,-6 111,-28 147,-64c21,-21 36,-49 40,-74a866,866 0 0 0 1,-104c-3,-18 -6,-28 -13,-43c-26,-52 -87,-90 -162,-101c-16,-2 -48,-3 -63,-2l1,0zm60,23c36,5 70,18 95,35c31,20 51,47 59,77c2,7 2,11 2,25c1,15 0,18 -2,26c-19,69 -104,117 -200,114c-47,-2 -90,-15 -124,-38c-31,-20 -51,-47 -59,-77c-3,-11 -4,-32 -2,-43c8,-42 41,-78 91,-101a260,260 0 0 1 140,-19l0,1zm-221,222c21,26 57,49 95,62c81,27 174,14 239,-32c14,-10 31,-27 41,-41c2,-2 2,-2 2,7c-1,23 -16,50 -38,72c-78,74 -233,74 -311,-1a121,121 0 0 1 -39,-76l0,-6l3,4l8,11z`}),B.createElement(`path`,{d:`m201.23077,47.30769c-40,3 -79,19 -104,44c-55,55 -38,133 37,171c52,26 122,24 172,-5c30,-17 51,-42 58,-71c3,-11 3,-34 0,-45c-6,-23 -21,-44 -40,-60l-27,-16a184,184 0 0 0 -96,-18zm30,21c56,5 100,35 112,75c4,11 4,30 0,41c-8,25 -26,45 -54,59a166,166 0 0 1 -160,-8a98,98 0 0 1 -41,-53c-5,-18 -2,-39 8,-57c23,-39 79,-62 135,-57z`})))}function yK(e){e=(e||``).toString();let t=e[0]===`*`,n=e[e.length-1]===`*`;return e=e.replace(/[-/\\^$+?.()|[\]{}]/g,`\\$&`).replace(/\*/g,`.*`),(t?``:`^`)+e+(n?``:`$`)}function bK(e,t){let n=[];for(let r=0;r<e.length;r++)t(n,e[r],r);return n}function xK(e,t){let n={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t(n,e[r],r);return n}function SK(e,t,n){return Array.isArray(e)?bK(e,(e,r,i)=>{if(r==null)return;let a=typeof r==`object`;if(n&&a&&typeof r.en==`string`&&typeof r.de==`string`){e[i]=r.en;return}e[i]=a?SK(r,t,n):r}):xK(e,(e,r,i)=>{if(r==null||t.includes(i))return;let a=typeof r==`object`;if(n&&a&&typeof r.en==`string`&&typeof r.de==`string`){e[i]=r.en;return}e[i]=a?SK(r,t,n):r})}function CK(e,t,n){let r=document.createElement(`a`),i=[];n.excludeSystemRepositories&&i.push(`system.repositories`);let a=i.length>0||n.excludeTranslations?SK(t,i,n.excludeTranslations):t,o=n.beautify?JSON.stringify(a,null,2):JSON.stringify(a);r.setAttribute(`href`,`data:application/json;charset=utf-8,${encodeURIComponent(o)}`),r.setAttribute(`download`,e),r.style.display=`none`,document.body.appendChild(r),r.click(),document.body.removeChild(r)}var wK=class extends B.Component{hasIcons;timer=null;constructor(e){super(e),this.state={value:e.initialValue||[]},this.hasIcons=!!e.values?.find(e=>e.icon)}componentWillUnmount(){this.timer&&clearTimeout(this.timer)}render(){return B.createElement(`div`,{style:{position:`relative`}},B.createElement(nD,{variant:`standard`,key:this.props.name,sx:_K.headerCellInput,className:`no-underline`,multiple:!0,renderValue:e=>e?.length?e.map(e=>{let t=this.props.values.find(t=>typeof t==`object`?t.value===e:t===e),n,r,i;return typeof t==`object`?(n=t.value,r=t.name,i=t.icon):(n=t,r=t),B.createElement($x,{component:`span`,sx:_K.headerCellSelectItem,key:n},i||(this.hasIcons?B.createElement(`div`,{className:`itemIcon`}):null),r)}):this.props.name===`custom`?this.props.texts.showAll:this.props.texts[`filter_${this.props.name}`],value:this.state.value,onChange:e=>{let t=e.target.value;if(this.state.value[0]===`_`&&t.includes(`_`)&&t.length>1){let e=t.indexOf(`_`);e!==-1&&t.splice(e,1)}else this.state.value[0]!==`_`&&t.includes(`_`)&&(t=[`_`]);t.includes(``)&&(t=[]),this.setState({value:t},()=>{this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{this.timer=null,this.props.onChange(this.props.name,t)},400)})},onClose:()=>{this.timer&&(clearTimeout(this.timer),this.timer=null,this.props.onChange(this.props.name,this.state.value))},inputProps:{name:this.props.name,id:this.props.name},displayEmpty:!0},B.createElement(bE,{key:`empty`,value:``},B.createElement(`span`,{style:_K.selectNone},this.props.name===`custom`?this.props.texts.showAll:this.props.texts[`filter_${this.props.name}`])),this.props.values?.map(e=>{let t,n,r;return typeof e==`object`?(t=e.value,n=e.name,r=e.icon):(t=e,n=e),B.createElement(bE,{sx:_K.headerCellSelectItem,key:t,value:t},r||(this.hasIcons?B.createElement(`div`,{className:`itemIcon`}):null),n)})),this.state.value.length?B.createElement($x,{component:`div`,sx:_K.selectClearButton},B.createElement(Ev,{size:`small`,onClick:()=>{this.timer&&=(clearTimeout(this.timer),null),this.setState({value:[]},()=>this.props.onChange(this.props.name,void 0))}},B.createElement(uk,null))):null)}},TK=class extends B.Component{timer=null;constructor(e){super(e),this.state={value:e.initialValue||``}}componentWillUnmount(){this.timer&&clearTimeout(this.timer)}render(){return B.createElement(aw,{sx:this.props.styles,key:this.props.name,title:this.props.t(`ra_You can use * as wildcard`),margin:`dense`},B.createElement(Yw,{classes:{underline:`no-underline`},id:this.props.name,placeholder:this.props.texts[`filter_${this.props.name}`],value:this.state.value,onChange:e=>{let t=e.target.value;this.setState({value:t},()=>{this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{this.timer=null,this.props.onChange(this.props.name,t)},400)})},onBlur:()=>{this.timer&&(clearTimeout(this.timer),this.timer=null,this.props.onChange(this.props.name,this.state.value))},autoComplete:`off`}),this.state.value?B.createElement(`div`,{style:{position:`absolute`,right:0}},B.createElement(Ev,{size:`small`,onClick:()=>{this.timer&&=(clearTimeout(this.timer),null),this.setState({value:``},()=>this.props.onChange(this.props.name,void 0))}},B.createElement(uk,null))):null)}};function EK(e,t,n,r){if(n||=0,r===void 0&&(r=e.length-1,!r))return e[0]===t;let i=Math.floor((n+r)/2);return t===e[i]?!0:r-1===n?e[n]===t||e[r]===t:t>e[i]?EK(e,t,i,r):t<e[i]?EK(e,t,n,i):!1}function DK(e,t){return typeof e==`object`?e?(e[t]||e.en||``).toString():``:e?e.toString():``}function OK(e,t,n,r){r||=`.`;let i=``,a=`system.adapter.${t}`,o=t&&e[a]?.common?.icon;if(o)if(o.startsWith(`data:image/`))i=o.startsWith(`data:image/svg`)?B.createElement(mG,{className:`iconOwn`,src:o,width:28,height:28}):o;else if(o.includes(`.`)){let t=e[a].common.name;i=typeof t==`object`?`${r}/adapter/${t[n]||t.en}/${o}`:`${r}/adapter/${t}/${o}`}else if(o&&o.length<3)return o;else return null;else{let a=e[t]?.common;if(a){let s=a.icon;if(s)if(s.startsWith(`data:image/`))i=s.startsWith(`data:image/svg`)?B.createElement(mG,{className:`iconOwn`,src:s,width:28,height:28}):s;else if(s.includes(`.`)){let o;e[t].type===`instance`||e[t].type===`adapter`?i=typeof a.name==`object`?`${r}/adapter/${a.name[n]||a.name.en}/${s}`:`${r}/adapter/${a.name}/${s}`:t&&t.startsWith(`system.adapter.`)?(o=t.split(`.`,3),s[0]===`/`?o[2]+=s:o[2]+=`/${s}`,i=`${r}/adapter/${o[2]}`):(o=t.split(`.`,2),s[0]===`/`?o[0]+=s:o[0]+=`/${s}`,i=`${r}/adapter/${o[0]}`)}else if(o&&o.length<3)return o;else return null}}return i||null}function kK(e,t,n,r,i,a,o,s,c){c||=0;let l=!1;if(!i){if(i={},t.id){let e=t.id.toLowerCase();e.includes(`*`)?i.idRx=new RegExp(yK(t.id),`i`):i.id=e}if(t.name){let e=t.name.toLowerCase();e.includes(`*`)?i.nameRx=new RegExp(yK(e),`i`):i.name=e}t.type?.length&&(i.type=t.type.map(e=>e.toLowerCase())),t.custom?.length&&(i.custom=t.custom.map(e=>e.toLowerCase())),t.role?.length&&(i.role=t.role.map(e=>e.toLowerCase())),t.room?.length&&(i.room=[],t.room.forEach(e=>{i.room=i.room.concat(r[e]?.common?.members||[])})),t.func?.length&&(i.func=[],t.func.forEach(e=>{i.func=i.func.concat(r[e]?.common?.members||[])}))}let u=e.data;if(u?.id){let e=u.obj?.common;if(o){if(o.type&&(typeof o.type==`string`?(!u.obj||o.type!==u.obj.type)&&(l=!0):Array.isArray(o.type)&&(!u.obj||!o.type.includes(u.obj.type))&&(l=!0)),!l&&o.common?.type&&(e?.type?typeof o.common.type==`string`?o.common.type!==e.type&&(l=!0):Array.isArray(o.common.type)&&(o.common.type.includes(e.type)||(l=!0)):l=!0),!l&&o.common?.role&&(e?.role?typeof o.common.role==`string`?e.role.startsWith(o.common.role)&&(l=!0):Array.isArray(o.common.role)&&(o.common.role.find(t=>e.role.startsWith(t))||(l=!0)):l=!0),!l&&o.common?.custom===`_`&&e?.custom)l=!0;else if(!l&&o.common?.custom&&o.common?.custom!==`_`){let t=o.common.custom;if(!e?.custom)l=!0;else if(t===`_dataSources`)Object.keys(e.custom).find(e=>e.startsWith(`history.`)||e.startsWith(`sql.`)||e.startsWith(`influxdb.`))||(l=!0);else if(Array.isArray(t)){let n=Object.keys(e.custom);t.find(e=>n.find(t=>t.startsWith(e)))&&(l=!0)}else t!==!0&&!Object.keys(e.custom).find(e=>e.startsWith(t))&&(l=!0)}}!l&&!t.expertMode&&(l=u.id===`system`||u.id===`enum`||u.id.startsWith(`system.`)||u.id.startsWith(`enum.`)||u.id.startsWith(`_design/`)||u.id.endsWith(`.admin`)||!!e?.expert),!l&&i.id&&(u.fID===void 0&&(u.fID=u.id.toLowerCase()),l=!u.fID.includes(i.id)),!l&&i.idRx&&(l=!i.idRx.test(u.id)),!l&&i.name&&(e?(u.fName===void 0&&(u.fName=DK(e.name,n)||``,u.fName=u.fName.toLowerCase()),l=!u.fName.includes(i.name)):l=!0),!l&&i.nameRx&&e&&(u.fName===void 0&&(u.fName=DK(e.name,n)||``,u.fName=u.fName.toLowerCase()),l=!i.nameRx.test(u.fName)),!l&&t.role?.length&&e&&(l=!(typeof e.role==`string`&&i.role.find(t=>e.role.startsWith(t)))),!l&&i.room?.length&&(l=!i.room.find(e=>e===u.id||u.id.startsWith(`${e}.`))),!l&&i.func?.length&&(l=!i.func.find(e=>e===u.id||u.id.startsWith(`${e}.`))),!l&&i.type?.length&&(l=!(u.obj?.type&&i.type.includes(u.obj.type))),!l&&s&&(l=!(u.obj?.type&&s.includes(u.obj.type))),!l&&i.custom?.length&&(l=e?i.custom[0]===`_`?!!e.custom:e.custom?!i.custom.find(t=>e.custom[t]):!0:i.custom[0]!==`_`)}return u.visible=!l,u.hasVisibleChildren=!1,e.children&&c<20&&e.children.forEach(e=>{kK(e,t,n,r,i,a,o,s,c+1)&&(u.hasVisibleChildren=!0)}),u.sumVisibility=u.visible||u.hasVisibleChildren,a&&u.sumVisibility&&a.count++,u.id&&u.sumVisibility&&e.children&&e.children.forEach(e=>e.data.hasVisibleParent=!0),u.visible||u.hasVisibleChildren}function AK(e,t,n,r){r||=[];let i=e.data;return i.sumVisibility&&(i.id&&n[i.id]&&(!t||n[i.id].type===t)&&r.push(i.id),e.children?.forEach(e=>AK(e,t,n,r))),r}function jK(e,t,n,r,i,a){let o;return t===`alias`||t===`alias.0`?o=B.createElement(jk,{className:`iconOwn`,style:{color:fK(r)}}):t===`0_userdata`||t===`0_userdata.0`?o=B.createElement(gk,{className:`iconOwn`,style:{color:dK(r)}}):t.startsWith(`_design/`)||t===`system`?o=B.createElement(Uk,{className:`iconOwn`,style:{color:mK(r)}}):t===`system.adapter`?o=B.createElement(Uk,{className:`iconOwn`,style:{color:hK(r)}}):t===`system.group`?o=B.createElement(Gk,{className:`iconOwn`}):t===`system.user`?o=B.createElement(Ik,{className:`iconOwn`}):t===`system.host`?o=B.createElement(zk,{className:`iconOwn`}):t.endsWith(`.connection`)||t.endsWith(`.connected`)?o=B.createElement(Zk,{className:`iconOwn`}):t.endsWith(`.info`)?o=B.createElement(Ok,{className:`iconOwn`}):e[t]&&e[t].type===`meta`?o=B.createElement(vk,{className:`iconOwn`}):n<2&&e[`system.adapter.${t}`]&&(o=OK(e,`system.adapter.${t}`,i,a)),o||null}function MK(e,t){return e?.obj?.common?.desc&&DK(e.obj.common.desc,t)||null}function NK(e,t){let n=MK(e,t);return n?.startsWith(`http`)?B.createElement($x,{component:`a`,sx:_K.cellIdTooltipLink,href:n,target:`_blank`,rel:`noreferrer`},n):B.createElement(`span`,{style:_K.cellIdTooltip},n||e.id||``)}function PK(e,t){let n=t.imagePrefix||`.`,r=Object.keys(e);r.sort((e,t)=>e===t?0:(e=e.replace(/\./g,`!!!`),t=t.replace(/\./g,`!!!`),e>t?1:-1)),t.root&&(r=r.filter(e=>e===t.root||e.startsWith(`${t.root}.`)));let i=[],a=``,o=0,s={data:{name:``,id:``},children:[]},c={funcEnums:[],roomEnums:[],roles:[],ids:[],types:[],objects:e,customs:[`_`],enums:[],hasSomeCustoms:!1,aliasesMap:{}},l=s;for(let u=0;u<r.length;u++){let d=r[u];if(!d)continue;let f=e[d],p=d.split(`.`);if(f.type&&!c.types.includes(f.type)&&c.types.push(f.type),f){let e=f.common,t=e?.role;if(t&&!c.roles.find(e=>e.role===t)?typeof t==`string`?c.roles.push({role:t,type:e.type}):console.warn(`Invalid role type "${typeof t}" in "${f._id}"`):d.startsWith(`enum.rooms.`)?(c.roomEnums.push(d),c.enums.push(d)):d.startsWith(`enum.functions.`)?(c.funcEnums.push(d),c.enums.push(d)):f.type===`enum`?c.enums.push(d):f.type===`instance`&&e&&(e.supportCustoms||e.adminUI?.custom)&&(c.hasSomeCustoms=!0,c.customs.push(d.substring(15))),d.startsWith(`alias.`)&&f.common.alias?.id)if(typeof f.common.alias.id==`string`){let e=f.common.alias.id;c.aliasesMap[e]?c.aliasesMap[e].includes(d)||c.aliasesMap[e].push(d):c.aliasesMap[e]=[d]}else{let e=f.common.alias.id.read;e&&(c.aliasesMap[e]?c.aliasesMap[e].includes(d)||c.aliasesMap[e].push(d):c.aliasesMap[e]=[d]);let t=f.common.alias.id.write;t&&(c.aliasesMap[t]?c.aliasesMap[t].includes(d)||c.aliasesMap[t].push(d):c.aliasesMap[t]=[d])}}c.ids.push(d);let m;do if(m=!1,!a||d.startsWith(`${a}.`)){if(p.length-o>1){let r=a;for(let i=o;i<p.length-1;i++)if(r+=(r?`.`:``)+p[i],EK(c.ids,r))l.children&&(l=l.children.find(e=>e.data.name===p[i]));else{let a={data:{name:p[i],parent:l,id:r,obj:e[r],level:i,icon:jK(e,r,i,t.themeType,t.lang,n),generated:!0}};l.children||=[],l.children.push(a),l=a,c.ids.push(r)}}let r={data:{name:p[p.length-1],title:DK(f?.common?.name,t.lang),obj:f,parent:l,icon:OK(e,d,t.lang,n)||jK(e,d,0,t.themeType,t.lang,n),id:d,hasCustoms:!!(f.common?.custom&&Object.keys(f.common.custom).length),level:p.length-1,generated:!1,button:f.type===`state`&&!!f.common?.role&&typeof f.common.role==`string`&&f.common.role.startsWith(`button`)&&f.common?.write!==!1,switch:f.type===`state`&&f.common?.type===`boolean`&&f.common?.write!==!1&&f.common?.read!==!1,url:!!f.common?.role&&typeof f.common.role==`string`&&f.common.role.startsWith(`url`)}};l.children||=[],l.children.push(r),l=r,o=p.length,i=p,a=d}else{let e=0;for(;i[e]===p[e];)e++;if(e>0){let t=i.length;for(i=i.splice(0,e),o=e,a=i.join(`.`);t>e;)l.data.parent?l=l.data.parent:console.error(`Parent is null for ${d} ${a} ${i.join(`.`)}`),t--}else l=s,i=[],a=``,o=0;m=!0}while(m)}return c.roomEnums.sort((n,r)=>{let i=DK(e[n]?.common?.name,t.lang)||n.split(`.`).pop(),a=DK(e[r]?.common?.name,t.lang)||r.split(`.`).pop();return i>a?1:i<a?-1:0}),c.funcEnums.sort((n,r)=>{let i=DK(e[n]?.common?.name,t.lang)||n.split(`.`).pop(),a=DK(e[r]?.common?.name,t.lang)||r.split(`.`).pop();return i>a?1:i<a?-1:0}),c.roles.sort((e,t)=>e.role.localeCompare(t.role)),c.types.sort(),{info:c,root:s}}function FK(e,t,n,r,i){if(e.data.id===t)return e;if(n||(n=t.split(`.`),i=0,r=n[i]),!e.children&&e.data.id!==t)return null;let a;if(e.children)for(let t=0;t<e.children.length;t++){let n=e.children[t].data.id;if(n===r){a=e.children[t];break}else if(n>r)break}return a?(i||=0,FK(a,t,n,`${r}.${n[i+1]}`,i+1)):null}function IK(e,t,n,r){if(!t)return{rooms:[],per:!1};r||=[];for(let i of e.roomEnums){let a=e.objects[i]?.common;if(!a)continue;let o=DK(a.name,n);a.members?.includes(t)&&!r.includes(o)&&r.push(o)}let i,a=t.split(`.`);return a.pop(),t=a.join(`.`),e.objects[t]&&(i=r.length,IK(e,t,n,r)),{rooms:r,per:!i}}function LK(e,t,n,r){if(!t)return[];r||=[];for(let i=0;i<e[n].length;i++)(e.objects[e[n][i]]?.common)?.members?.includes(t)&&!r.includes(e[n][i])&&r.push(e[n][i]);return r.sort(),r}function RK(e,t,n,r){if(!t)return{funcs:[],pef:!1};r||=[];for(let i=0;i<e.funcEnums.length;i++){let a=e.objects[e.funcEnums[i]]?.common;if(!a)continue;let o=DK(a.name,n);a.members?.includes(t)&&!r.includes(o)&&r.push(o)}let i,a=t.split(`.`);return a.pop(),t=a.join(`.`),e.objects[t]&&(i=r.length,RK(e,t,n,r)),{funcs:r,pef:!i}}function zK(e){let{dateFormat:t,state:n,isFloatComma:r,texts:i,obj:a}=e,o=wA.getStates(a),s=a.common,c,l=s?.type===`file`?`[file]`:!n||n.val===null?`(null)`:n.val===void 0?`[undef]`:n.val,u=typeof l;if(s?.role&&typeof s.role==`string`&&s.role.match(/^value\.time|^date/))if(l&&typeof l==`string`)if(wA.isStringInteger(l))l=new Date(parseInt(l,10)).toString();else try{let e=new Date(l);wA.isValidDate(e)&&(l=e.toString())}catch{}else l>946681200&&l<9466812e5&&(l*=1e3),l&&=new Date(l).toString();else if(s?.role&&typeof s.role==`string`&&s.role.match(/^value\.duration/)){if(typeof l==`number`&&l>=0){let e=Math.floor(l/3600),t=Math.floor(l%3600/60),n=Math.floor(l%60);l=`${e.toString().padStart(2,`0`)}:${t.toString().padStart(2,`0`)}:${n.toString().padStart(2,`0`)}`}else if(typeof l==`string`&&wA.isStringInteger(l)){let e=parseInt(l,10);if(e>=0){let t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%60);l=`${t.toString().padStart(2,`0`)}:${n.toString().padStart(2,`0`)}:${r.toString().padStart(2,`0`)}`}}}else u===`number`?Number.isInteger(l)||(l=Math.round(l*1e8)/1e8,r&&(l=l.toString().replace(`.`,`,`))):u===`object`?l=JSON.stringify(l):u===`string`?l.startsWith(`data:image/`)&&(c=`image`):l=l.toString(),typeof l!=`string`&&(l=l.toString());let d={v:l};o&&o[l]!==void 0&&l!==o[l]&&(d.s=l,l=o[l],d.v=l),d.v?.length>40&&(d.c=d.v,d.v=`${d.v.substring(0,40)}...`),s?.unit&&(d.u=s.unit);let f;if(e.full&&(f=typeof l==`string`&&l.length>100?[{t:i.value,v:`${l.substring(0,100)}...`}]:[{t:i.value,v:l}],n)){if(n.ack!==void 0&&n.ack!==null&&f.push({t:i.ack,v:n.ack.toString()}),n.ts&&f.push({t:i.ts,v:n.ts?wA.formatDate(new Date(n.ts),t):``}),n.lc&&f.push({t:i.lc,v:n.lc?wA.formatDate(new Date(n.lc),t):``}),n.from){let e=n.from.toString();e.startsWith(`system.adapter.`)&&(e=e.substring(15)),f.push({t:i.from,v:e})}if(n.user){let e=n.user.toString();e.startsWith(`system.user.`)&&(e=e.substring(12)),f.push({t:i.user,v:e})}n.c&&f.push({t:i.c,v:n.c}),f.push({t:i.quality,v:wA.quality2text(n.q||0).join(`, `),nbr:!0})}return{valText:d,valFull:f,fileViewer:c}}function BK(e){let{state:t}=e;return{color:t?.ack?t.q?`#ffa500`:``:e.nonAckColor||`#ff2222c9`}}function VK(e,t){let n=t,r=1,i=[];for(;r<e.length&&n<t+25*36e5;){for(;e[r-1].ts<n&&n<=e[r].ts&&r<e.length;)r++;if(r===1&&e[r-1].ts>=n)i.push(0);else if(r<e.length)if(typeof e[r].val==`boolean`||typeof e[r-1].val==`boolean`)i.push(+!!e[r].val);else{e[r-1].val||=0,e[r].val||=0;let t=e[r-1].val,a=t+(e[r].val-t)*(n-e[r-1].ts)/(e[r].ts-e[r-1].ts);i.push(a)}n+=36e5}return i}function HK(e,t){if(e?._id?.startsWith(`${t.adapter}.`)&&t.path.length>1){let n=t.path,r,i=e;if(i[n[0]]&&typeof i[n[0]]==`object`)return n.length===2?r=i[n[0]][n[1]]:n.length===3?r=i[n[0]][n[1]]&&typeof i[n[0]][n[1]]==`object`?i[n[0]][n[1]][n[2]]:null:n.length===4?r=i[n[0]][n[1]]&&typeof i[n[0]][n[1]]==`object`&&i[n[0]][n[1]][n[2]]?i[n[0]][n[1]][n[2]][n[3]]:null:n.length===5?r=i[n[0]][n[1]]&&typeof i[n[0]][n[1]]==`object`&&i[n[0]][n[1]][n[2]]&&i[n[0]][n[1]][n[2]][n[3]]?i[n[0]][n[1]][n[2]][n[3]][n[4]]:null:n.length===6&&(r=i[n[0]][n[1]]&&typeof i[n[0]][n[1]]==`object`&&i[n[0]][n[1]][n[2]]&&i[n[0]][n[1]][n[2]][n[3]]&&i[n[0]][n[1]][n[2]][n[3]][n[4]]?i[n[0]][n[1]][n[2]][n[3]][n[4]][n[5]]:null),r??null}return null}function UK(e,t,n){if(e?._id?.startsWith(`${t.adapter}.`)&&t.path.length>1){let r=t.path,i=e;if(i[r[0]]&&typeof i[r[0]]==`object`){if(r.length===2)return i[r[0]][r[1]]=n,!0;if(r.length===3){if(i[r[0]][r[1]]&&typeof i[r[0]][r[1]]==`object`)return i[r[0]][r[1]][r[2]]=n,!0}else if(r.length===4){if(i[r[0]][r[1]]&&typeof i[r[0]][r[1]]==`object`&&i[r[0]][r[1]][r[2]]&&typeof i[r[0]][r[1]][r[2]]==`object`)return i[r[0]][r[1]][r[2]][r[3]]=n,!0}else if(r.length===5){if(i[r[0]][r[1]]&&typeof i[r[0]][r[1]]==`object`&&i[r[0]][r[1]][r[2]]&&typeof i[r[0]][r[1]][r[2]]==`object`&&i[r[0]][r[1]][r[2]][r[3]]&&typeof i[r[0]][r[1]][r[2]][r[3]]==`object`)return i[r[0]][r[1]][r[2]][r[3]][r[4]]=n,!0}else if(r.length===6&&i[r[0]][r[1]]&&typeof i[r[0]][r[1]]==`object`&&i[r[0]][r[1]][r[2]]&&typeof i[r[0]][r[1]][r[2]]==`object`&&i[r[0]][r[1]][r[2]][r[3]]&&typeof i[r[0]][r[1]][r[2]][r[3]]==`object`&&i[r[0]][r[1]][r[2]][r[3]][r[4]]&&typeof i[r[0]][r[1]][r[2]][r[3]][r[4]]==`object`)return i[r[0]][r[1]][r[2]][r[3]][r[4]][r[5]]=n,!0}}return!1}function WK(e){return!!gK.find(t=>e.startsWith(t))}var GK=16,KK=20,qK=`#ff413c`,JK=`#86211f`,YK=`#57ff45`,XK=`#098c04`,ZK=`#f3ad11`,QK=`#6c5008`,$={toolbar:{minHeight:38},toolbarButtons:{padding:4,marginLeft:4},switchColumnAuto:{marginLeft:16},dialogColumns:{transition:`opacity 1s`},dialogColumnsLabel:{fontSize:12,paddingTop:8},columnCustom:{width:`100%`,display:`inline-block`},columnCustomEditable:{cursor:`text`},columnCustom_center:{textAlign:`center`},columnCustom_left:{textAlign:`left`},columnCustom_right:{textAlign:`right`},width100:{width:`100%`},transparent_10:{opacity:.1},transparent_20:{opacity:.2},transparent_30:{opacity:.3},transparent_40:{opacity:.4},transparent_50:{opacity:.5},transparent_60:{opacity:.6},transparent_70:{opacity:.7},transparent_80:{opacity:.8},transparent_90:{opacity:.9},transparent_100:{opacity:1},headerRow:{paddingLeft:8,height:38,whiteSpace:`nowrap`,userSelect:`none`},buttonClearFilter:{position:`relative`,float:`right`,padding:0},buttonClearFilterIcon:{zIndex:2,position:`absolute`,top:0,left:0,color:`#FF0000`,opacity:.7},tableDiv:{paddingTop:0,paddingLeft:0,width:`calc(100% - 8px)`,height:`calc(100% - 38px)`,overflow:`auto`},tableRow:e=>({pl:1,height:32,lineHeight:`32px`,verticalAlign:`top`,userSelect:`none`,position:`relative`,width:`100%`,"&:hover":{background:`${e.palette.mode===`dark`?e.palette.primary.dark:e.palette.primary.light} !important`,color:wA.invertColor(e.palette.primary.main,!0)},whiteSpace:`nowrap`,flexWrap:`nowrap`}),tableRowLines:e=>({borderBottom:`1px solid ${e.palette.mode,`#8888882e`}`,"& > div":{borderRight:`1px solid ${e.palette.mode,`#8888882e`}`}}),tableRowNoDragging:{cursor:`pointer`},tableRowAlias:{height:42},tableRowAliasReadWrite:{height:54},tableRowFocused:e=>({"&:after":{content:`""`,position:`absolute`,top:1,left:1,right:1,bottom:1,border:e.palette.mode?`1px dotted #000`:`1px dotted #FFF`}}),checkBox:{padding:0},cellId:{position:`relative`,fontSize:`1rem`,overflow:`hidden`,textOverflow:`ellipsis`,"& .copyButton":{display:`none`},"&:hover .copyButton":{display:`block`},"& .iconOwn":{display:`block`,width:28,height:28,mt:`2px`,float:`right`},"&:hover .iconOwn":{display:`none`},"& *":{width:`initial`}},cellIdSpan:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},cellIdIconFolder:e=>({marginRight:8,width:28,height:28,cursor:`pointer`,color:e.palette.secondary.main||`#fbff7d`,verticalAlign:`top`}),cellIdIconDocument:{verticalAlign:`middle`,marginLeft:(32-KK)/2,marginRight:8,width:KK,height:KK},cellIdIconOwn:{},cellCopyButton:{width:KK,height:KK,top:(32-KK)/2,opacity:.8,position:`absolute`,right:3},cellCopyButtonInDetails:{width:KK,height:KK,top:(32-KK)/2,opacity:.8},cellEditButton:{width:KK,height:KK,color:`white`,position:`absolute`,top:(32-KK)/2,right:23,opacity:.7,"&:hover":{opacity:1}},cellName:{display:`inline-block`,verticalAlign:`top`,fontSize:14,ml:`5px`,overflow:`hidden`,textOverflow:`ellipsis`,position:`relative`,"& .copyButton":{display:`none`},"&:hover .copyButton":{display:`block`}},cellNameWithDesc:{lineHeight:`normal`},cellNameDivDiv:{},cellDescription:{fontSize:10,opacity:.5,fontStyle:`italic`},cellIdAlias:e=>({fontStyle:`italic`,fontSize:12,opacity:.7,"&:hover":{color:e.palette.mode===`dark`?`#009900`:`#007700`}}),cellIdAliasReadWriteDiv:{height:24,marginTop:-5},cellIdAliasAlone:{lineHeight:0},cellIdAliasReadWrite:{lineHeight:`12px`},cellType:{display:`inline-block`,verticalAlign:`top`,"& .itemIcon":{verticalAlign:`middle`,width:24,height:24,display:`inline-block`},"& .itemIconFolder":{marginLeft:3}},cellRole:{display:`inline-block`,verticalAlign:`top`,textOverflow:`ellipsis`,overflow:`hidden`},cellRoom:{display:`inline-block`,verticalAlign:`top`,textOverflow:`ellipsis`,overflow:`hidden`},cellEnumParent:{opacity:.4},cellFunc:{display:`inline-block`,verticalAlign:`top`,textOverflow:`ellipsis`,overflow:`hidden`},cellValue:{display:`inline-block`,verticalAlign:`top`,textOverflow:`ellipsis`,overflow:`hidden`},cellValueButton:{marginTop:5},cellValueButtonFalse:{opacity:.3},cellAdapter:{display:`inline-block`,verticalAlign:`top`},cellValueTooltip:{fontSize:12},cellValueText:{width:`100%`,height:32,fontSize:16,display:`flex`,overflow:`hidden`,textOverflow:`ellipsis`,position:`relative`,verticalAlign:`top`,"& .copyButton":{display:`none`},"&:hover .copyButton":{display:`block`}},cellValueFile:{color:`#2837b9`},cellValueTooltipTitle:{fontStyle:`italic`,width:100,display:`inline-block`},cellValueTooltipValue:{width:120,display:`inline-block`,whiteSpace:`nowrap`,textOverflow:`ellipsis`},cellValueTooltipImage:{width:100,height:`auto`},cellValueTooltipBoth:{width:220,display:`inline-block`,whiteSpace:`nowrap`},cellValueTooltipBox:{width:250,overflow:`hidden`,pointerEvents:`none`},tooltip:{pointerEvents:`none`},cellValueTextUnit:{marginLeft:4,opacity:.8,display:`inline-block`},cellValueTextState:{opacity:.7},cellValueTooltipCopy:{position:`absolute`,bottom:3,right:3},cellValueTooltipEdit:{position:`absolute`,bottom:3,right:15},cellButtons:{display:`inline-block`,verticalAlign:`top`},cellButtonsButton:{display:`inline-block`,opacity:.5,width:24,height:24,"&:hover":{opacity:1},p:0,mt:`-2px`},cellButtonsEmptyButton:{fontSize:12},cellButtonMinWidth:{minWidth:40},cellButtonsButtonAlone:{ml:`26px`,pt:0,mt:`-2px`},cellButtonsButtonWithCustoms:e=>({color:e.palette.mode===`dark`?e.palette.primary.main:e.palette.secondary.main}),cellButtonsButtonWithoutCustoms:{opacity:.2},cellButtonsValueButton:e=>({position:`absolute`,top:KK/2-2,opacity:.7,width:KK-2,height:KK-2,color:e.palette.action.active,"&:hover":{opacity:1}}),cellButtonsValueButtonCopy:{right:8,cursor:`pointer`},cellButtonsValueButtonEdit:{right:26},cellDetailsLine:{display:`flex`,alignItems:`center`,width:`100%`,height:32,fontSize:16},cellDetailsName:{fontWeight:`bold`,marginRight:8,minWidth:80},filteredOut:{opacity:.5},filteredParentOut:{opacity:.3},filterInput:{mt:0,mb:0},selectIcon:{width:24,height:24,marginRight:4},itemSelected:e=>({background:`${e.palette.primary.main} !important`,color:`${wA.invertColor(e.palette.primary.main,!0)} !important`}),header:{width:`100%`},headerCell:{display:`inline-block`,verticalAlign:`top`},headerCellValue:{paddingTop:4,fontSize:16},visibleButtons:{color:`#2196f3`,opacity:.7},grow:{flexGrow:1},enumIconDiv:{marginRight:8,width:32,height:32,borderRadius:8,background:`#FFFFFF`},enumIcon:{marginTop:4,marginLeft:4,width:24,height:24},enumDialog:{overflow:`hidden`},enumList:{minWidth:250,height:`calc(100% - 50px)`,overflow:`auto`},enumCheckbox:{minWidth:0},buttonDiv:{display:`flex`,height:`100%`,alignItems:`center`},aclText:{fontSize:13,marginTop:6},rightsObject:{color:`#55ff55`,paddingLeft:3},rightsState:{color:`#86b6ff`,paddingLeft:3},textCenter:{padding:12,textAlign:`center`},tooltipAccessControl:{display:`flex`,flexDirection:`column`},fontSizeTitle:{"@media screen and (max-width: 465px)":{"& *":{fontSize:12}}},draggable:{cursor:`copy`},nonDraggable:{cursor:`no-drop`},iconDeviceConnected:e=>({color:e.palette.mode===`dark`?YK:XK,opacity:.8,position:`absolute`,top:4,right:32,width:20}),iconDeviceDisconnected:e=>({color:e.palette.mode===`dark`?ZK:QK,opacity:.8,position:`absolute`,top:4,right:32,width:20}),iconDeviceError:e=>({color:e.palette.mode===`dark`?qK:JK,opacity:.8,position:`absolute`,top:4,right:50,width:20}),resizeHandle:{display:`block`,position:`absolute`,cursor:`col-resize`,width:7,top:2,bottom:2,zIndex:1},resizeHandleRight:{right:3,borderRight:`2px dotted #888`,"&:hover":{borderColor:`#ccc`,borderRightStyle:`solid`},"&.active":{borderColor:`#517ea5`,borderRightStyle:`solid`}},invertedBackground:e=>({backgroundColor:e.palette.mode===`dark`?`#9a9a9a`:`#565656`,padding:`0 3px`,borderRadius:`2px 0 0 2px`}),invertedBackgroundFlex:e=>({backgroundColor:e.palette.mode===`dark`?`#9a9a9a`:`#565656`,borderRadius:`0 2px 2px 0`}),contextMenuEdit:e=>({color:e.palette.mode===`dark`?`#ffee48`:`#cbb801`}),contextMenuEditValue:e=>({color:e.palette.mode===`dark`?`#5dff45`:`#1cd301`}),contextMenuView:e=>({color:e.palette.mode===`dark`?`#FFF`:`#000`}),contextMenuCustom:e=>({color:e.palette.mode===`dark`?`#42eaff`:`#01bbc2`}),contextMenuACL:e=>({color:e.palette.mode===`dark`?`#e079ff`:`#500070`}),contextMenuRoom:e=>({color:e.palette.mode===`dark`?`#ff9a33`:`#642a00`}),contextMenuRole:e=>({color:e.palette.mode===`dark`?`#ffdb43`:`#562d00`}),contextMenuDelete:e=>({color:e.palette.mode===`dark`?`#ff4f4f`:`#cf0000`}),contextMenuKeys:{marginLeft:8,opacity:.7,fontSize:`smaller`},contextMenuWithSubMenu:{display:`flex`},..._K},$K={state:B.createElement(iK,{className:`itemIcon`,style:{verticalAlign:`middle`}}),channel:B.createElement(QG,{className:`itemIcon`,style:{verticalAlign:`middle`}}),device:B.createElement(eK,{className:`itemIcon`,style:{verticalAlign:`middle`}}),adapter:B.createElement(ZG,{className:`itemIcon`,style:{verticalAlign:`middle`}}),meta:B.createElement(vk,{className:`itemIcon`,style:{verticalAlign:`middle`}}),instance:B.createElement(rK,{className:`itemIcon`,style:{color:`#7da7ff`,verticalAlign:`middle`}}),enum:B.createElement(Nk,{className:`itemIcon`,style:{verticalAlign:`middle`}}),chart:B.createElement(Wk,{className:`itemIcon`,style:{verticalAlign:`middle`}}),config:B.createElement(Hk,{className:`itemIcon`,style:{verticalAlign:`middle`}}),group:B.createElement(Gk,{className:`itemIcon`,style:{verticalAlign:`middle`}}),user:B.createElement(Ik,{className:`itemIcon`,style:{verticalAlign:`middle`}}),host:B.createElement(zk,{className:`itemIcon`,style:{verticalAlign:`middle`}}),schedule:B.createElement(ck,{className:`itemIcon`,style:{verticalAlign:`middle`}}),script:B.createElement(dk,{className:`itemIcon`,style:{verticalAlign:`middle`}}),folder:B.createElement(kW,{className:`itemIcon itemIconFolder`,style:{verticalAlign:`middle`}})},eq={xs:{idWidth:`100%`,fields:[],widths:{}},sm:{idWidth:300,fields:[`room`,`val`],widths:{room:100,val:200}},md:{idWidth:300,fields:[`room`,`func`,`val`,`buttons`],widths:{name:200,room:150,func:150,val:120,buttons:120}},lg:{idWidth:300,fields:[`name`,`type`,`role`,`room`,`func`,`val`,`buttons`,`changedFrom`,`qualityCode`,`timestamp`,`lastChange`],widths:{name:300,type:80,role:120,room:180,func:180,val:140,buttons:120,changedFrom:120,qualityCode:100,timestamp:165,lastChange:165}},xl:{idWidth:550,fields:[`name`,`type`,`role`,`room`,`func`,`val`,`buttons`,`changedFrom`,`qualityCode`,`timestamp`,`lastChange`],widths:{name:400,type:80,role:120,room:180,func:180,val:140,buttons:120,changedFrom:120,qualityCode:100,timestamp:170,lastChange:170}}},tq=!1,nq={id:``,name:``,room:[],func:[],role:[],type:[],custom:[],expertMode:!1},rq=class e extends B.Component{info={funcEnums:[],roomEnums:[],roles:[],ids:[],types:[],objects:{},customs:[],enums:[],hasSomeCustoms:!1,aliasesMap:{}};localStorage=window._localStorage||window.localStorage;tableRef;pausedSubscribes=!1;selectFirst;lastNav=null;applyingNav=!1;root=null;states={};subscribes=[];unsubscribeTimer=null;statesUpdateTimer=null;objectsUpdateTimer=null;visibleCols;texts;possibleCols;imagePrefix;adapterColumns=[];styleTheme=``;edit={id:``,val:``,q:0,ack:!1};levelPadding;customWidth=!1;resizeTimeout=null;resizerNextName=null;resizerActiveName=null;resizerCurrentWidths={};resizeLeft=!1;resizerOldWidth=0;resizerMin=0;resizerNextMin=0;resizerOldWidthNext=0;resizerPosition=0;resizerActiveDiv=null;resizerNextDiv=null;storedWidths=null;systemConfig;objects;defaultHistory=``;ctrlPressed=!1;columnsVisibility={};changedIds=null;contextMenu=null;recordStates=[];styles={};expertMode=!1;customColumnDialog=null;constructor(e){super(e);let t=this.localStorage.getItem(`${e.dialogName||`App`}.objectSelected`)||``;if(this.selectFirst=``,this.expertMode=!!this.props.expertMode,t.startsWith(`[`))try{let e=JSON.parse(t);this.selectFirst=e[0]||``}catch{}else this.selectFirst=t;let n,r=this.localStorage.getItem(`${e.dialogName||`App`}.objectExpanded`)||`[]`;try{n=JSON.parse(r)}catch{n=[]}let i,a=e.defaultFilters?``:this.localStorage.getItem(`${e.dialogName||`App`}.objectFilter`)||``;if(a)try{i=JSON.parse(a)}catch{i={...nq}}else i=e.defaultFilters&&typeof e.defaultFilters==`object`?{...e.defaultFilters}:{...nq};if(typeof i.room==`string`&&i.room&&(i.room=[i.room].filter(e=>e),i.room.length||delete i.room),typeof i.func==`string`&&i.func&&(i.func=[i.func].filter(e=>e),i.func.length||delete i.func),typeof i.role==`string`&&i.role&&(i.role=[i.role].filter(e=>e),i.role.length||delete i.role),typeof i.type==`string`&&(i.type=[i.type].filter(e=>e),i.type.length||delete i.type),typeof i.custom==`string`&&(i.custom=[i.custom].filter(e=>e),i.custom.length||delete i.custom),i.expertMode=e.expertMode===void 0?(window._sessionStorage||window.sessionStorage).getItem(`App.expertMode`)===`true`:e.expertMode,this.tableRef=(0,B.createRef)(),this.visibleCols=e.columns||eq[e.width||`lg`].fields,e.types&&e.types.length===1){let e=this.visibleCols.indexOf(`type`);e!==-1&&this.visibleCols.splice(e,1)}this.possibleCols=eq.xl.fields;let o=null;if(e.router){let t=e.router.getLocation();t.id&&t.dialog===`customs`&&(o=[t.id],this.pauseSubscribe(!0))}let s;s=Array.isArray(e.selected)?e.selected:[e.selected||``],s=s.map(e=>e.replace(/["']/g,``)).filter(e=>e),this.selectFirst=s.length&&s[0]?s[0]:this.selectFirst;let c=this.localStorage.getItem(`${e.dialogName||`App`}.columns`),l;try{l=c?JSON.parse(c):null}catch{l=null}let u=null;try{u=u?JSON.parse(u):{}}catch{u={}}this.imagePrefix=e.imagePrefix||`.`;let d,f=this.localStorage.getItem(`${e.dialogName||`App`}.foldersFirst`);d=f===`false`?!1:f===`true`||e.foldersFirst===void 0?!0:e.foldersFirst;let p=!1;try{p=this.props.objectStatesView&&JSON.parse(this.localStorage.getItem(`${e.dialogName||`App`}.objectStatesView`)||``)||!1}catch{}this.state={aliasMenu:``,beautifyJsonExport:!0,columns:l,columnsAuto:this.localStorage.getItem(`${e.dialogName||`App`}.columnsAuto`)!==`false`,columnsDialogTransparent:100,columnsEditCustomDialog:null,columnsForAdmin:null,columnsSelectorShow:!1,columnsWidths:u,customColumnDialogValueChanged:!1,customDialog:o,depth:0,editObjectAlias:!1,editObjectDialog:``,enumDialog:null,excludeSystemRepositoriesFromExport:!0,excludeTranslations:!1,expandAllVisible:!1,expanded:n,filter:i,filterKey:0,focused:this.localStorage.getItem(`${e.dialogName||`App`}.focused`)||``,foldersFirst:d,linesEnabled:this.localStorage.getItem(`${e.dialogName||`App`}.lines`)===`true`,loaded:!1,noStatesByExportImport:!1,roleDialog:null,scrollBarWidth:16,selected:s,selectedNonObject:this.localStorage.getItem(`${e.dialogName||`App`}.selectedNonObject`)||``,showAliasEditor:``,showAllExportOptions:!1,showContextMenu:null,showDescription:this.localStorage.getItem(`${e.dialogName||`App`}.desc`)!==`false`,showExportDialog:!1,showImportDialog:!1,showImportMenu:null,showRenameDialog:null,statesView:p,toast:``,tooltipInfo:null,viewFileDialog:``},this.texts={name:e.t(`ra_Name`),categories:e.t(`ra_Categories`),value:e.t(`ra_tooltip_value`),ack:e.t(`ra_tooltip_ack`),ts:e.t(`ra_tooltip_ts`),lc:e.t(`ra_tooltip_lc`),from:e.t(`ra_tooltip_from`),user:e.t(`ra_tooltip_user`),c:e.t(`ra_tooltip_comment`),quality:e.t(`ra_tooltip_quality`),editObject:e.t(`ra_tooltip_editObject`),deleteObject:e.t(`ra_tooltip_deleteObject`),customConfig:e.t(`ra_tooltip_customConfig`),copyState:e.t(`ra_tooltip_copyState`),editState:e.t(`ra_tooltip_editState`),ctrlForLink:e.t(`ra_tooltip_ctrlForLink`),close:e.t(`ra_Close`),filter_id:e.t(`ra_filter_id`),filter_name:e.t(`ra_filter_name`),filter_type:e.t(`ra_filter_type`),filter_role:e.t(`ra_filter_role`),filter_room:e.t(`ra_filter_room`),filter_func:e.t(`ra_filter_func`),filter_custom:e.t(`ra_filter_customs`),filterCustomsWithout:e.t(`ra_filter_customs_without`),objectChangedByUser:e.t(`ra_object_changed_by_user`),objectChangedBy:e.t(`ra_object_changed_by`),objectChangedFrom:e.t(`ra_state_changed_from`),stateChangedBy:e.t(`ra_state_changed_by`),stateChangedFrom:e.t(`ra_state_changed_from`),ownerGroup:e.t(`ra_Owner group`),ownerUser:e.t(`ra_Owner user`),showAll:e.t(`ra_show_all`),deviceError:e.t(`ra_Error`),deviceDisconnected:e.t(`ra_Disconnected`),deviceConnected:e.t(`ra_Connected`),aclOwner_read_object:e.t(`ra_aclOwner_read_object`),aclOwner_read_state:e.t(`ra_aclOwner_read_state`),aclOwner_write_object:e.t(`ra_aclOwner_write_object`),aclOwner_write_state:e.t(`ra_aclOwner_write_state`),aclGroup_read_object:e.t(`ra_aclGroup_read_object`),aclGroup_read_state:e.t(`ra_aclGroup_read_state`),aclGroup_write_object:e.t(`ra_aclGroup_write_object`),aclGroup_write_state:e.t(`ra_aclGroup_write_state`),aclEveryone_read_object:e.t(`ra_aclEveryone_read_object`),aclEveryone_read_state:e.t(`ra_aclEveryone_read_state`),aclEveryone_write_object:e.t(`ra_aclEveryone_write_object`),aclEveryone_write_state:e.t(`ra_aclEveryone_write_state`),create:e.t(`ra_Create`),createBooleanState:e.t(`ra_create_boolean_state`),createNumberState:e.t(`ra_create_number_state`),createStringState:e.t(`ra_create_string_state`),createState:e.t(`ra_create_state`),createChannel:e.t(`ra_create_channel`),createDevice:e.t(`ra_create_device`),createFolder:e.t(`ra_Create folder`)},this.levelPadding=e.levelPadding||GK;let m=this.localStorage.getItem(`${this.props.dialogName||`App`}.table`);if(m)try{let e=JSON.parse(m),t=this.props.width||`lg`;this.storedWidths=JSON.parse(JSON.stringify(eq[t])),Object.keys(e).forEach(n=>{n===`id`?eq[t].idWidth=e.id:n===`nameHeader`?eq[t].widths.name=e[n]:eq[t].widths[n]!==void 0&&(eq[t].widths[n]=e[n])}),this.customWidth=!0}catch{}this.calculateColumnsVisibility()}async loadAllObjects(e){let t=this.props;try{await new Promise(e=>{this.setState({updating:!0},()=>e())});let n=(t.objectsWorker?await t.objectsWorker.getObjects(e):await t.socket.getObjects(e,!0))||{};if(t.types&&Hs.isWeb())for(let e=0;e<t.types.length;e++){if(t.types[e]===`state`||t.types[e]===`channel`||t.types[e]===`device`||t.types[e]===`enum`)continue;let r=await t.socket.getObjectViewSystem(t.types[e]);Object.assign(n||{},r)}if(this.systemConfig=this.systemConfig||n?.[`system.config`]||await t.socket.getObject(`system.config`),this.systemConfig.common=this.systemConfig.common||{},this.systemConfig.common.defaultNewAcl=this.systemConfig.common.defaultNewAcl||{object:0,state:0,file:0,owner:`system.user.admin`,ownerGroup:`system.group.administrator`},this.systemConfig.common.defaultNewAcl.owner=this.systemConfig.common.defaultNewAcl.owner||`system.user.admin`,this.systemConfig.common.defaultNewAcl.ownerGroup=this.systemConfig.common.defaultNewAcl.ownerGroup||`system.group.administrator`,typeof this.systemConfig.common.defaultNewAcl.state!=`number`&&(this.systemConfig.common.defaultNewAcl.state=1636),typeof this.systemConfig.common.defaultNewAcl.object!=`number`&&(this.systemConfig.common.defaultNewAcl.state=1636),typeof t.filterFunc==`function`){this.objects={};let e=t.filterFunc;Object.keys(n).forEach(t=>{try{if(e(n[t]))this.objects[t]=n[t];else{let e=n[t]&&n[t].type;e&&(e===`channel`||e===`device`||e===`folder`||e===`adapter`||e===`instance`)&&(this.objects[t]=n[t])}}catch(e){console.log(`Error by filtering of "${t}": ${e}`)}})}else if(t.types){this.objects={};let e=t.types;Object.keys(n).forEach(t=>{let r=n[t]?.type;r&&(r===`channel`||r===`device`||r===`enum`||r===`folder`||r===`adapter`||r===`instance`||e.includes(r))&&(this.objects[t]=n[t])})}else this.objects=n;t.setObjectsReference&&t.setObjectsReference(this.objects),this.defaultHistory=this.systemConfig.common.defaultHistory,this.defaultHistory&&t.socket.getState(`system.adapter.${this.defaultHistory}.alive`).then(e=>{e?.val||(this.defaultHistory=``)}).catch(e=>window.alert(`Cannot get state: ${e}`));let r=await this.getAdditionalColumns();this.calculateColumnsVisibility(null,null,r);let{info:i,root:a}=PK(this.objects,{imagePrefix:t.imagePrefix,root:t.root,lang:t.lang,themeType:t.themeType});this.root=a,this.info=i;let o=this.state.selected?.length&&FK(this.root,this.state.selected[0]);o&&!kK(o,this.state.filter,t.lang,this.objects,void 0,void 0,t.customFilter,t.types)?this.setState({filter:{...nq},columnsForAdmin:r},()=>{this.doFilter(),this.setState({loaded:!0,updating:!1},()=>this.expandAllSelected(()=>{this.onAfterSelect(),this.applyInitialNavigateTo()}))}):(this.doFilter(),this.setState({loaded:!0,updating:!1,columnsForAdmin:r},()=>this.expandAllSelected(()=>{this.onAfterSelect(),this.applyInitialNavigateTo()})))}catch(e){this.showError(e)}}expandAllSelected(e){let t=[...this.state.expanded],n=!1;this.state.selected.forEach(e=>{let r=e.split(`.`),i=[];for(let e=0;e<r.length-1;e++)i.push(r[e]),t.includes(i.join(`.`))||(t.push(i.join(`.`)),n=!0)}),n?(t.sort(),this.localStorage.setItem(`${this.props.dialogName||`App`}.objectExpanded`,JSON.stringify(t)),this.setState({expanded:t},e)):e&&e()}onAfterSelect(e){if(this.state.selected?.length&&this.state.selected[0]){this.localStorage.setItem(`${this.props.dialogName||`App`}.objectSelected`,this.state.selected[0]),this.selectFirst&&this.selectFirst!==this.state.selected[0]&&(this.selectFirst=``);let t=this.findItem(this.state.selected[0]);if(t?.data&&!t.data.visible&&!t.data.hasVisibleChildren&&this.clearFilter(),this.state.selected.length===1&&this.objects[this.state.selected[0]]){let t=wA.getObjectName(this.objects,this.state.selected[0],null,{language:this.props.lang});this.props.onSelect?.(this.state.selected,t,e)}else (this.state.selected.length===1&&this.props.allowNonObjects||!this.props.allowNonObjects||!this.state.selected.find(e=>!this.objects[e]))&&this.props.onSelect?.(this.state.selected,null,e)}else this.localStorage.removeItem(`${this.props.dialogName||`App`}.objectSelected`),this.state.selected.length?this.setState({selected:[]},()=>{this.props.onSelect&&(this.state.focused&&this.props.allowNonObjects?(this.selectFirst&&this.selectFirst!==this.state.selected[0]&&(this.selectFirst=``),this.props.onSelect([this.state.focused],null,e)):this.props.onSelect([],``))}):this.props.onSelect&&(this.state.focused&&this.props.allowNonObjects?(this.selectFirst&&this.selectFirst!==this.state.selected[0]&&(this.selectFirst=``),this.props.onSelect([this.state.focused],null,e)):this.props.onSelect([],``))}static getDerivedStateFromProps(e,t){let n={},r=!1;return e.expertMode!==void 0&&e.expertMode!==t.filter.expertMode&&(r=!0,n.filter={...t.filter},n.filter.expertMode=e.expertMode),r?n:null}async componentDidMount(){await this.loadAllObjects(!tq),this.props.objectsWorker?this.props.objectsWorker.registerHandler(this.onObjectChangeFromWorker):await this.props.socket.subscribeObject(`*`,this.onObjectChange),tq=!0,window.addEventListener(`contextmenu`,this.onContextMenu,!0),window.addEventListener(`keydown`,this.onKeyPress,!0),window.addEventListener(`keyup`,this.onKeyPress,!0),this.props.onAllLoaded&&setTimeout(()=>{this.props.onAllLoaded?.()},100)}onKeyPress=e=>{e.type===`keydown`&&e.ctrlKey&&!this.ctrlPressed?(this.ctrlPressed=!0,this.tableRef.current&&(this.tableRef.current.className=`highlight-link`)):e.type===`keyup`&&!e.ctrlKey&&this.ctrlPressed&&(this.ctrlPressed=!1,this.tableRef.current&&(this.tableRef.current.className=``))};componentWillUnmount(){window.removeEventListener(`contextmenu`,this.onContextMenu,!0),window.removeEventListener(`keydown`,this.onKeyPress,!0),window.removeEventListener(`keyup`,this.onKeyPress,!0),this.props.objectsWorker?this.props.objectsWorker.unregisterHandler(this.onObjectChangeFromWorker,!0):this.props.socket.unsubscribeObject(`*`,this.onObjectChange).catch(e=>console.error(`Cannot unsubscribe *: ${e}`)),this.subscribes.forEach(e=>{this.props.socket.unsubscribeState(e,this.onStateChange)}),this.subscribes=[],this.objects={}}showDeleteDialog(e){let{id:t,obj:n,item:r}=e,i=Object.keys(this.objects);i.sort();let a=0,o=`${t}.`;for(let e=0;e<i.length;e++)if(i[e].startsWith(o))a++;else if(i[e]>o)break;this.props.onObjectDelete?.(t,!!r.children?.length,!n.common?.dontDelete,a+1)}onContextMenu=e=>{this.contextMenu&&Date.now()-this.contextMenu.ts<2e3?(e.preventDefault(),this.setState({showContextMenu:{item:this.contextMenu.item,position:{left:e.clientX+2,top:e.clientY-6}}})):this.state.showContextMenu&&(e.preventDefault(),this.setState({showContextMenu:null})),this.contextMenu=null};refreshComponent(){this.subscribes.forEach(e=>{this.props.socket.unsubscribeState(e,this.onStateChange)}),this.subscribes=[],this.loadAllObjects(!0).then(()=>console.log(`updated!`)).catch(e=>this.showError(e))}renderErrorDialog(){return this.state.error?B.createElement(CC,{open:!0,maxWidth:`sm`,fullWidth:!0,onClose:()=>this.setState({error:``}),"aria-labelledby":`error-dialog-title`,"aria-describedby":`error-dialog-description`},B.createElement(BC,{id:`alert-dialog-title`},this.props.t(`ra_Error`)),B.createElement(NC,null,B.createElement(LC,{id:`alert-dialog-description`},this.state.error)),B.createElement(DC,null,B.createElement(CS,{variant:`contained`,onClick:()=>this.setState({error:``}),color:`primary`,autoFocus:!0,startIcon:B.createElement(lk,null)},this.props.t(`ra_Ok`)))):null}showError(e){this.setState({error:typeof e==`object`?e&&typeof e.toString==`function`?e.toString():JSON.stringify(e):e})}onSelect(e,t,n){if(this.localStorage.setItem(`${this.props.dialogName||`App`}.focused`,e),!this.props.multiSelect)this.objects[e]&&(!this.props.types||this.props.types.includes(this.objects[e].type))?(this.localStorage.removeItem(`${this.props.dialogName||`App`}.selectedNonObject`),this.state.selected[0]===e?t&&this.props.onSelect&&this.onAfterSelect(t):this.setState({selected:[e],selectedNonObject:``,focused:e},()=>{this.onAfterSelect(t),n&&n()})):(this.localStorage.setItem(`${this.props.dialogName||`App`}.selectedNonObject`,e),this.setState({selected:[],selectedNonObject:e,focused:e},()=>{this.onAfterSelect(),n&&n()}));else if(this.objects[e]&&(!this.props.types||this.props.types.includes(this.objects[e].type))){this.localStorage.removeItem(`${this.props.dialogName||`App`}.selectedNonObject`);let r=[...this.state.selected],i=r.indexOf(e);i===-1?(r.push(e),r.sort()):t||r.splice(i,1),this.setState({selected:r,selectedNonObject:``,focused:e},()=>{this.onAfterSelect(t),n&&n()})}}_renderDefinedList(e){let t=[...this.possibleCols];if(t.unshift(`id`),this.props.columns&&!this.props.columns.includes(`buttons`)){let e=t.indexOf(`buttons`);e!==-1&&t.splice(e,1)}return t.filter(t=>e&&(t===`val`||t===`buttons`)||!e&&t!==`val`&&t!==`buttons`).map(e=>B.createElement(ET,{onClick:()=>{if(!this.state.columnsAuto&&e!==`id`){let t=[...this.state.columns||[]],n=t.indexOf(e);n===-1?(t.push(e),t.sort()):t.splice(n,1),this.localStorage.setItem(`${this.props.dialogName||`App`}.columns`,JSON.stringify(t)),this.calculateColumnsVisibility(null,t),this.setState({columns:t})}},key:e},B.createElement(zS,{edge:`start`,disabled:e===`id`||this.state.columnsAuto,checked:e===`id`||!!(this.state.columnsAuto?this.visibleCols.includes(e):this.state.columns?.includes(e)),disableRipple:!0}),B.createElement(GT,{primary:this.texts[`filter_${e}`]||this.props.t(`ra_${e}`)})))}renderColumnsSelectorDialog(){return this.state.columnsSelectorShow?B.createElement(CC,{onClose:()=>this.setState({columnsSelectorShow:!1}),open:!0,sx:{"& .MuiPaper-root":wA.getStyle(this.props.theme,$.dialogColumns,$[`transparent_${this.state.columnsDialogTransparent}`])}},B.createElement(BC,{sx:$.fontSizeTitle},this.props.t(`ra_Configure`)),B.createElement(NC,{sx:$.fontSizeTitle},B.createElement(dw,{style:$.switchColumnAuto,control:B.createElement(ND,{checked:this.state.foldersFirst,onChange:()=>{this.localStorage.setItem(`${this.props.dialogName||`App`}.foldersFirst`,this.state.foldersFirst?`false`:`true`),this.setState({foldersFirst:!this.state.foldersFirst})}}),label:this.props.t(`ra_Folders always first`)}),B.createElement(dw,{style:$.switchColumnAuto,control:B.createElement(ND,{checked:this.state.linesEnabled,onChange:()=>{this.localStorage.setItem(`${this.props.dialogName||`App`}.lines`,this.state.linesEnabled?`false`:`true`),this.setState({linesEnabled:!this.state.linesEnabled})}}),label:this.props.t(`ra_Show lines between rows`)}),B.createElement(dw,{style:$.switchColumnAuto,control:B.createElement(ND,{checked:this.state.columnsAuto,onChange:()=>{this.localStorage.setItem(`${this.props.dialogName||`App`}.columnsAuto`,this.state.columnsAuto?`false`:`true`),this.state.columnsAuto?this.state.columns?(this.calculateColumnsVisibility(!1),this.setState({columnsAuto:!1})):(this.calculateColumnsVisibility(!1,[...this.visibleCols]),this.setState({columnsAuto:!1,columns:[...this.visibleCols]})):(this.calculateColumnsVisibility(!0),this.setState({columnsAuto:!0}))}}),label:this.props.t(`ra_Auto (no custom columns)`)}),B.createElement(yT,null,this._renderDefinedList(!1),this.state.columnsForAdmin&&Object.keys(this.state.columnsForAdmin).sort().map(e=>this.state.columnsForAdmin?.[e].map(t=>B.createElement(ET,{onClick:()=>{if(!this.state.columnsAuto){let n=[...this.state.columns||[]],r=`_${e}_${t.path}`,i=n.indexOf(r);i===-1?(n.push(r),n.sort()):n.splice(i,1),this.calculateColumnsVisibility(null,n),this.localStorage.setItem(`${this.props.dialogName||`App`}.columns`,JSON.stringify(n)),this.setState({columns:n})}},key:`${e}_${t.name}`},B.createElement(BT,null,B.createElement(zS,{disabled:this.state.columnsAuto,edge:`start`,checked:!this.state.columnsAuto&&this.state.columns?.includes(`_${e}_${t.path}`),disableRipple:!0})),B.createElement(GT,{primary:`${t.name} (${e})`})))),this._renderDefinedList(!0))),B.createElement(DC,null,B.createElement(CS,{variant:`contained`,onClick:()=>this.setState({columnsSelectorShow:!1}),color:`primary`,startIcon:B.createElement(uk,null)},this.texts.close))):null}async getAdditionalColumns(){try{let e=await this.props.socket.getAdapters(),t=null;return e.forEach(e=>t=this.parseObjectForAdmins(t,e)),t}catch(e){return console.error(`Cannot get adapters: ${e}`),null}}checkUnsubscribes(){for(let e=this.subscribes.length-1;e>=0;e--)this.recordStates.includes(this.subscribes[e])||this.unsubscribe(this.subscribes[e]);this.recordStates=[]}findItem(e,t,n,r){if(t||=e.split(`.`),n||=this.root,!n||!t.length)return null;if(r=(r?`${r}.`:``)+t.shift(),n.children){let i=n.children.find(e=>e.data.id===r);if(i){if(i.data.id===e)return i;if(t.length)return this.findItem(e,t,i,r)}else return null}return null}onStateChange=(e,t)=>{if(this.states[e]){let t=this.findItem(e);t?.data.state&&(t.data.state=void 0)}t?this.states[e]=t:delete this.states[e],this.pausedSubscribes?this.statesUpdateTimer&&=(clearTimeout(this.statesUpdateTimer),null):this.statesUpdateTimer||=setTimeout(()=>{this.statesUpdateTimer=null,this.forceUpdate()},300)};parseObjectForAdmins(e,t){if(t.common?.adminColumns&&t.common.name){let n=t.common.adminColumns,r;n&&typeof n!=`object`?r=[n]:n&&(r=n);let i;i=n?r.map(e=>{if(typeof e!=`object`)return{path:e,name:e.split(`.`).pop()};let n=e;return n.objTypes&&typeof n.objTypes!=`object`?n.objTypes=[n.objTypes]:n.objTypes||=void 0,!n.name&&n.path?{path:n.path,name:n.path.split(`.`).pop(),width:n.width,edit:!!n.edit,type:n.type,objTypes:n.objTypes}:n.path?{path:n.path,name:DK(n.name||``,this.props.lang),width:n.width,edit:!!n.edit,type:n.type,objTypes:n.objTypes}:(console.warn(`Admin columns for ${t._id} ignored, because path not found`),null)}).filter(e=>e):null,i?.length&&(e||={},e[t.common.name]=i.sort((e,t)=>e.path>t.path?-1:+(e.path<t.path)))}else t.common&&t.common.name&&e&&e[t.common.name]&&delete e[t.common.name];return e}onObjectChangeFromWorker=e=>{if(Array.isArray(e)){let t=null;e.forEach(e=>{let{newInnerState:n,filtered:r}=this.processOnObjectChangeElement(e.id,e.obj);r||(n&&t?Object.assign(t,n):t=n)}),t&&this.setState(t),this.afterObjectUpdated()}};onObjectChange=(e,t)=>{let{newInnerState:n,filtered:r}=this.processOnObjectChangeElement(e,t);r||(n&&this.setState(n),this.afterObjectUpdated())};afterObjectUpdated(){!this.objectsUpdateTimer&&this.objects&&(this.objectsUpdateTimer=setTimeout(()=>{this.objectsUpdateTimer=null;let{info:e,root:t}=PK(this.objects,{imagePrefix:this.props.imagePrefix,root:this.props.root,lang:this.props.lang,themeType:this.props.themeType});this.root=t,this.info=e,this.pausedSubscribes||this.doFilter()},500))}updateAliases(e){if(!this.objects||!this.info?.aliasesMap||!e?.startsWith(`alias.`))return;let t=Object.keys(this.objects).filter(e=>e.startsWith(`alias.0`));this.info.aliasesMap={};for(let e of t){let t=this.objects[e];if(t?.common?.alias?.id)if(typeof t.common.alias.id==`string`){let n=t.common.alias.id;this.info.aliasesMap[n]?this.info.aliasesMap[n].includes(e)||this.info.aliasesMap[n].push(e):this.info.aliasesMap[n]=[e]}else{let n=t.common.alias.id.read;n&&(this.info.aliasesMap[n]?this.info.aliasesMap[n].includes(e)||this.info.aliasesMap[n].push(e):this.info.aliasesMap[n]=[e]);let r=t.common.alias.id.write;r&&(this.info.aliasesMap[r]?this.info.aliasesMap[r].includes(e)||this.info.aliasesMap[r].push(e):this.info.aliasesMap[r]=[e])}}}processOnObjectChangeElement(e,t){let n=t?.type;if(t&&typeof this.props.filterFunc==`function`&&!this.props.filterFunc(t)&&n!==`channel`&&n!==`device`&&n!==`folder`&&n!==`adapter`&&n!==`instance`)return{newInnerState:null,filtered:!0};let r=null;if(e.startsWith(`system.adapter.`)&&t?.type===`adapter`){let e=JSON.parse(JSON.stringify(this.state.columnsForAdmin));this.parseObjectForAdmins(e,t),JSON.stringify(this.state.columnsForAdmin)!==JSON.stringify(e)&&(r={columnsForAdmin:e})}return this.objects||={},t?this.objects[e]=t:this.objects[e]&&delete this.objects[e],this.updateAliases(e),{newInnerState:r,filtered:!1}}subscribe(e){this.subscribes.includes(e)||(this.subscribes.push(e),this.pausedSubscribes||this.props.socket.subscribeState(e,this.onStateChange).catch(t=>console.error(`Cannot subscribe on state ${e}: ${t}`)))}unsubscribe(e){let t=this.subscribes.indexOf(e);t!==-1&&(this.subscribes.splice(t,1),this.states[e]&&delete this.states[e],this.props.socket.unsubscribeState(e,this.onStateChange),this.pausedSubscribes&&console.warn(`Unsubscribe during pause?`))}pauseSubscribe(e){!this.pausedSubscribes&&e?(this.pausedSubscribes=!0,this.subscribes.forEach(e=>this.props.socket.unsubscribeState(e,this.onStateChange))):this.pausedSubscribes&&!e&&(this.pausedSubscribes=!1,this.subscribes.forEach(e=>this.props.socket.subscribeState(e,this.onStateChange)))}clearFilter(){JSON.stringify(this.state.filter)!==JSON.stringify(nq)&&this.setState({filter:{...nq},filterKey:this.state.filterKey+1},()=>{this.doFilter(),this.props.onFilterChanged?.({...nq})})}isFilterEmpty(){return!!this.state.filter.id||!!this.state.filter.name||!!this.state.filter.room?.length||!!this.state.filter.func?.length||!!this.state.filter.role?.length||!!this.state.filter.type?.length||!!this.state.filter.custom?.length}getFilterInput(e){return B.createElement(TK,{key:`${e}_${this.state.filterKey}`,styles:this.styles.filterInput,name:e,texts:this.texts,t:this.props.t,initialValue:this.state.filter[e],onChange:(e,t)=>{let n={...this.state.filter};t===void 0?delete n[e]:n[e]=t,this.setState({filter:n},()=>{this.doFilter(),this.props.onFilterChanged?.(n)})}})}getFilterSelect(e,t){return B.createElement(wK,{key:`${e}_${this.state.filterKey}`,name:e,texts:this.texts,initialValue:this.state.filter[e]||[],values:t,onChange:(e,t)=>{let n={...this.state.filter};t===void 0?delete n[e]:n[e]=t,this.setState({filter:n},()=>{this.doFilter(),this.props.onFilterChanged?.(n)})}})}getFilterSelectRole(){return this.getFilterSelect(`role`,this.info.roles.map(e=>e.role))}getFilterSelectRoom(){let e=this.info.roomEnums.map(e=>({name:DK(this.objects[e]?.common?.name,this.props.lang)||e.split(`.`).pop(),value:e,icon:B.createElement(_G,{src:this.objects[e]?.common?.icon||``,style:$.selectIcon})}));return this.getFilterSelect(`room`,e)}getFilterSelectFunction(){let e=this.info.funcEnums.map(e=>({name:DK(this.objects[e]?.common?.name,this.props.lang)||e.split(`.`).pop(),value:e,icon:B.createElement(_G,{src:this.objects[e]?.common?.icon||``,style:$.selectIcon})}));return this.getFilterSelect(`func`,e)}getFilterSelectType(){let e=this.info.types.map(e=>({name:e,value:e,icon:$K[e]||null}));return this.getFilterSelect(`type`,e)}getFilterSelectCustoms(){if(this.info.customs.length>1){let e=this.info.customs.map(e=>({name:e===`_`?this.texts.filterCustomsWithout:e,value:e,icon:e===`_`?null:B.createElement(_G,{src:OK(this.objects,e,this.props.lang,this.imagePrefix)||``,style:$.selectIcon})}));return this.getFilterSelect(`custom`,e)}return null}onExpandAll(e,t){let n=e||this.root;t||=[],n?.children?.forEach(e=>{e.data.sumVisibility&&(t.push(e.data.id),this.onExpandAll(e,t))}),n===this.root&&(t.sort(),this.localStorage.setItem(`${this.props.dialogName||`App`}.objectExpanded`,JSON.stringify(t)),this.setState({expanded:t}))}onCollapseAll(){this.localStorage.setItem(`${this.props.dialogName||`App`}.objectExpanded`,JSON.stringify([])),this.localStorage.setItem(`${this.props.dialogName||`App`}.objectSelected`,`[]`),this.setState({expanded:[],depth:0,selected:[]},()=>this.onAfterSelect())}expandDepth(e,t,n){e||=this.root,t>0&&e.children?.forEach(e=>{e.data.sumVisibility&&(EK(n,e.data.id)||(n.push(e.data.id),n.sort()),t-1>0&&this.expandDepth(e,t-1,n))})}static collapseDepth(e,t){return t.filter(t=>t.split(`.`).length<=e)}onExpandVisible(){if(this.state.depth<9){let e=this.state.depth+1,t=[...this.state.expanded];this.root&&this.expandDepth(this.root,e,t),this.localStorage.setItem(`${this.props.dialogName||`App`}.objectExpanded`,JSON.stringify(t)),this.setState({depth:e,expanded:t})}}onStatesViewVisible(){let e=!this.state.statesView;this.localStorage.setItem(`${this.props.dialogName||`App`}.objectStatesView`,JSON.stringify(e)),this.setState({statesView:e})}onCollapseVisible(){if(this.state.depth>0){let t=this.state.depth-1,n=e.collapseDepth(t,this.state.expanded);this.localStorage.setItem(`${this.props.dialogName||`App`}.objectExpanded`,JSON.stringify(n)),this.setState({depth:t,expanded:n})}}getEnumsForId=e=>{let t=[];return this.info.enums.forEach(n=>{if(this.objects[n]?.common?.members?.includes(e)){let e={_id:this.objects[n]._id,common:JSON.parse(JSON.stringify(this.objects[n].common)),native:this.objects[n].native,type:`enum`};e.common&&(delete e.common.members,delete e.common.custom,delete e.common.mobile),t.push(e)}}),t.length?t:void 0};_createAllEnums=async(e,t)=>{for(let n=0;n<e.length;n++){let r=e[n],i,a;typeof r==`object`?(a=r,i=a._id):i=r;let o=this.objects[i];o?o.common?.members?.includes(t)||(o.common||={},o.type=`enum`,o.common.members||=[],o.common.members.push(t),o.common.members.sort(),await this.props.socket.setObject(i,o)):(o=a||{_id:i,common:{name:i.split(`.`).pop(),members:[]},native:{},type:`enum`},o.common||={},o.common.members=[t],o.type=`enum`,await this.props.socket.setObject(i,o))}};async loadObjects(e){if(e)for(let t in e){if(!Object.prototype.hasOwnProperty.call(e,t)||!e[t])continue;let n=e[t],r=null,i,a;n?.common?.enums?(r=n.common.enums,delete n.common.enums):r=null,(n.val||n.val===0)&&(i=n.val,delete n.val),n.ack!==void 0&&(a=n.ack,delete n.ack);try{if(await this.props.socket.setObject(t,n),r&&await this._createAllEnums(r,n._id),n.type===`state`)if(i!=null)try{await this.props.socket.setState(n._id,i,a===void 0?!0:a)}catch(e){window.alert(`Cannot set state "${n._id} with ${i}": ${e}`)}else try{let e=await this.props.socket.getState(n._id);if(!e||e.val===null)try{await this.props.socket.setState(n._id,!n.common||n.common.def===void 0?null:n.common.def,!0)}catch(e){window.alert(`Cannot set state "${n._id}": ${e}`)}}catch(e){window.alert(`Cannot read state "${n._id}": ${e}`)}}catch(e){window.alert(e)}}}_getSelectedIdsForExport(){if(this.state.selected.length||this.state.selectedNonObject){let e=[],t=Object.keys(this.objects);t.sort();let n=this.state.selected[0]||this.state.selectedNonObject,r=`${n}.`,i=r.length;for(let a=0;a<t.length;a++){let o=t[a];if((n===o||o.startsWith(r))&&e.push(o),o.substring(0,i)>r)break}return e}return[]}async _exportObjects(e){if(e.isAll){CK(`allObjects.json`,this.objects,e);return}if(!(this.state.selected.length||this.state.selectedNonObject)){window.alert(this.props.t(`ra_Save of objects-tree is not possible`));return}let t={},n=this.state.selected[0]||this.state.selectedNonObject,r=this._getSelectedIdsForExport();for(let n of r){if(t[n]=JSON.parse(JSON.stringify(this.objects[n])),t[n]?.type===`state`&&!e.noStatesByExportImport){let e=await this.props.socket.getState(n);e&&(t[n].val=e.val,t[n].ack=e.ack)}if(t[n].common){let e=this.getEnumsForId(n);e&&(t[n].common.enums=e)}}CK(`${n}.json`,t,e)}renderExportDialog(){return this.state.showExportDialog===!1?null:B.createElement(CC,{open:!0,maxWidth:`lg`},B.createElement(BC,null,this.props.t(`ra_Select type of export`)),B.createElement(NC,null,B.createElement(LC,null,this.state.filter.expertMode||this.state.showAllExportOptions?B.createElement(B.Fragment,null,this.props.t(`ra_You can export all objects or just the selected branch.`),B.createElement(`br`,null),this.props.t(`ra_Selected %s object(s)`,this.state.showExportDialog),B.createElement(`br`,null),B.createElement(dw,{control:B.createElement(zS,{checked:this.state.noStatesByExportImport,onChange:e=>this.setState({noStatesByExportImport:e.target.checked})}),label:this.props.t(`ra_Do not export values of states`)}),B.createElement(`br`,null),this.props.t(`These options can reduce the size of the export file:`),B.createElement(dw,{control:B.createElement(zS,{checked:this.state.beautifyJsonExport,onChange:e=>this.setState({beautifyJsonExport:e.target.checked})}),label:this.props.t(`Beautify JSON output`)}),B.createElement(`br`,null),B.createElement(dw,{control:B.createElement(zS,{checked:this.state.excludeSystemRepositoriesFromExport,onChange:e=>this.setState({excludeSystemRepositoriesFromExport:e.target.checked})}),label:this.props.t(`Exclude system repositories from export JSON`)}),B.createElement(dw,{control:B.createElement(zS,{checked:this.state.excludeTranslations,onChange:e=>this.setState({excludeTranslations:e.target.checked})}),label:this.props.t(`Exclude translations (except english) from export JSON`)})):null)),B.createElement(DC,null,this.state.filter.expertMode||this.state.showAllExportOptions?B.createElement(CS,{color:`grey`,variant:`outlined`,onClick:()=>this.setState({showExportDialog:!1,showAllExportOptions:!1},()=>this._exportObjects({isAll:!0,noStatesByExportImport:this.state.noStatesByExportImport,beautify:this.state.beautifyJsonExport,excludeSystemRepositories:this.state.excludeSystemRepositoriesFromExport,excludeTranslations:this.state.excludeTranslations}))},B.createElement(`span`,{style:{marginRight:8}},this.props.t(`ra_All objects`)),`(`,Object.keys(this.objects).length,`)`):B.createElement(CS,{color:`grey`,variant:`outlined`,startIcon:B.createElement(OW,null),onClick:()=>this.setState({showAllExportOptions:!0})},this.props.t(`ra_Advanced options`)),B.createElement(CS,{color:`primary`,variant:`contained`,autoFocus:!0,onClick:()=>this.setState({showExportDialog:!1,showAllExportOptions:!1},()=>this._exportObjects({isAll:!1,noStatesByExportImport:this.state.noStatesByExportImport,beautify:this.state.beautifyJsonExport,excludeSystemRepositories:this.state.excludeSystemRepositoriesFromExport,excludeTranslations:this.state.excludeTranslations}))},B.createElement(`span`,{style:{marginRight:8}},this.props.t(`ra_Only selected`)),`(`,this.state.showExportDialog,`)`),B.createElement(CS,{color:`grey`,variant:`contained`,onClick:()=>this.setState({showExportDialog:!1,showAllExportOptions:!1}),startIcon:B.createElement(uk,null)},this.props.t(`ra_Cancel`))))}renderRenameDialog(){if(!this.state.showRenameDialog)return null;let e=this.props.objectMoveRenameDialog;return B.createElement(e,{expertMode:this.props.expertMode,onClose:()=>this.setState({showRenameDialog:null}),id:this.state.showRenameDialog.id,childrenIds:this.state.showRenameDialog.childrenIds,theme:this.props.theme,socket:this.props.socket,t:this.props.t,objectType:this.objects[this.state.showRenameDialog.id]?.type})}async parseJsonFile(e){try{let t=JSON.parse(e),n=Object.keys(t).length,r=t._id;if(r===void 0&&n)await this.loadObjects(t),window.alert(this.props.t(`ra_%s object(s) processed`,n));else{if(!r)return window.alert(this.props.t(`ra_Invalid structure`));try{let e,n,r;if(t.common.enums&&(e=t.common.enums,delete t.common.enums),t.val&&(n=t.val,delete t.val),t.ack!==void 0&&(r=t.ack,delete t.ack),await this.props.socket.setObject(t._id,t),t.type===`state`)if(n!=null)await this.props.socket.setState(t._id,n,r===void 0?!0:r);else{let e=await this.props.socket.getState(t._id);(!e||e.val===null||e.val===void 0)&&await this.props.socket.setState(t._id,t.common.def===void 0?null:t.common.def,!0)}e&&await this._createAllEnums(e,t._id),window.alert(this.props.t(`ra_%s was imported`,t._id))}catch(e){window.alert(e)}}}catch(e){window.alert(e)}}handleJsonUpload(e){let t=e.target,n=t.files?.length&&t.files[0];if(n){let e=new FileReader;e.onload=e=>(this.parseJsonFile(e.target?.result),null),e.readAsText(n)}else window.alert(this.props.t(`ra_Failed to open JSON File`))}toolTipObjectCreating=()=>{let{t:e}=this.props,t=[B.createElement(`div`,{key:1},e(`ra_Only following structures of objects are available:`)),B.createElement(`div`,{key:2},e(`ra_Folder → State`)),B.createElement(`div`,{key:3},e(`ra_Folder → Channel → State`)),B.createElement(`div`,{key:4},e(`ra_Folder → Device → Channel → State`)),B.createElement(`div`,{key:5},e(`ra_Device → Channel → State`)),B.createElement(`div`,{key:6},e(`ra_Channel → State`)),B.createElement(`div`,{key:7,style:{height:10}}),B.createElement(`div`,{key:8},e(`ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".`)),B.createElement(`div`,{key:9},e(`ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").`))];if(this.state.selected.length||this.state.selectedNonObject){let n=this.state.selected[0]||this.state.selectedNonObject;if(!(n.split(`.`).length<2||this.objects[n]&&this.objects[n]?.type===`state`))if(this.state.filter.expertMode)switch(this.objects[n]?.type){case`device`:t=[B.createElement(`div`,{key:1},e(`ra_Only following structures of objects are available:`)),B.createElement(`div`,{key:5},e(`ra_Device → Channel → State`)),B.createElement(`div`,{key:7,style:{height:10}}),B.createElement(`div`,{key:8},e(`ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".`)),B.createElement(`div`,{key:9},e(`ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").`))];break;case`folder`:t=[B.createElement(`div`,{key:1},e(`ra_Only following structures of objects are available:`)),B.createElement(`div`,{key:2},e(`ra_Folder → State`)),B.createElement(`div`,{key:3},e(`ra_Folder → Channel → State`)),B.createElement(`div`,{key:4},e(`ra_Folder → Device → Channel → State`)),B.createElement(`div`,{key:7,style:{height:10}}),B.createElement(`div`,{key:8},e(`ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".`)),B.createElement(`div`,{key:9},e(`ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").`))];break;case`channel`:t=[B.createElement(`div`,{key:1},e(`ra_Only following structures of objects are available:`)),B.createElement(`div`,{key:1},e(`ra_Channel → State`)),B.createElement(`div`,{key:7,style:{height:10}}),B.createElement(`div`,{key:8},e(`ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".`)),B.createElement(`div`,{key:9},e(`ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").`))];break;default:break}else (n.startsWith(`alias.0`)||n.startsWith(`0_userdata`))&&(t=[B.createElement(`div`,{key:1},e(`ra_Only following structures of objects are available:`)),B.createElement(`div`,{key:2},e(`ra_Folder → State`)),B.createElement(`div`,{key:3},e(`ra_Folder → Channel → State`)),B.createElement(`div`,{key:4},e(`ra_Folder → Device → Channel → State`)),B.createElement(`div`,{key:5},e(`ra_Device → Channel → State`)),B.createElement(`div`,{key:6},e(`ra_Channel → State`)),B.createElement(`div`,{key:7,style:{height:10}}),B.createElement(`div`,{key:7},e(`ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".`)),B.createElement(`div`,{key:8},e(`ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").`))])}return t.length?t:e(`ra_Add new child object to selected parent`)};onOpenFile(){let e=document.createElement(`input`);e.setAttribute(`type`,`file`),e.setAttribute(`id`,`files`),e.setAttribute(`opacity`,`0`),e.addEventListener(`change`,e=>this.handleJsonUpload(e),!1),e.click()}renderInputJsonDialog(){let e=this.props.objectBrowserInsertJsonObjects;return this.state.showImportDialog?B.createElement(e,{onClose:e=>{this.setState({showImportDialog:!1}),e&&this.parseJsonFile(e)},themeName:this.props.themeName,themeType:this.props.themeType,t:this.props.t}):null}getToolbar(){let e=!1;if(this.state.selected.length||this.state.selectedNonObject){let t=this.state.selected[0]||this.state.selectedNonObject;t.split(`.`).length<2||this.objects[t]&&this.objects[t].type===`state`?e=!1:(this.state.filter.expertMode||t.startsWith(`alias.0`)||t.startsWith(`0_userdata`))&&(e=!0)}return B.createElement(`div`,{style:{display:`flex`,width:`100%`,alignItems:`center`,overflowX:`auto`}},B.createElement(`div`,{style:{display:`flex`,width:`100%`,alignItems:`center`}},B.createElement(TD,{title:this.props.t(`ra_Refresh tree`),slotProps:{popper:{sx:$.tooltip}}},B.createElement(`div`,null,B.createElement(Ev,{onClick:()=>this.refreshComponent(),disabled:this.state.updating,size:`large`},B.createElement(Rk,null)))),this.props.showExpertButton&&!this.props.expertMode&&B.createElement(TD,{title:this.props.t(`ra_expertMode`),slotProps:{popper:{sx:$.tooltip}}},B.createElement(Ev,{key:`expertMode`,color:this.state.filter.expertMode?`secondary`:`default`,onClick:()=>{let e={...this.state.filter};e.expertMode=!e.expertMode,this.localStorage.setItem(`${this.props.dialogName||`App`}.objectFilter`,JSON.stringify(e)),this.setState({filter:e})},size:`large`},B.createElement(OW,null))),!this.props.disableColumnSelector&&this.props.width!==`xs`&&B.createElement(TD,{title:this.props.t(`ra_Configure`),slotProps:{popper:{sx:$.tooltip}}},B.createElement(Ev,{key:`columnSelector`,color:this.state.columnsAuto?`primary`:`default`,onClick:()=>this.setState({columnsSelectorShow:!0}),size:`large`},B.createElement(Yk,null))),this.props.width!==`xs`&&this.state.expandAllVisible&&B.createElement(TD,{title:this.props.t(`ra_Expand all nodes`),slotProps:{popper:{sx:$.tooltip}}},B.createElement(Ev,{key:`expandAll`,onClick:()=>this.onExpandAll(),size:`large`},B.createElement(AW,null))),B.createElement(TD,{title:this.props.t(`ra_Collapse all nodes`),slotProps:{popper:{sx:$.tooltip}}},B.createElement(Ev,{key:`collapseAll`,onClick:()=>this.onCollapseAll(),size:`large`},B.createElement(kW,null))),this.props.width!==`xs`&&B.createElement(TD,{title:this.props.t(`ra_Expand one step node`),slotProps:{popper:{sx:$.tooltip}}},B.createElement(Ev,{key:`expandVisible`,color:`primary`,onClick:()=>this.onExpandVisible(),size:`large`},B.createElement(Zx,{badgeContent:this.state.depth,color:`secondary`,sx:e=>({badge:{right:3,top:3,border:`2px solid ${e.palette.background.paper}`,padding:`0 4px`}})},B.createElement(AW,null)))),this.props.width!==`xs`&&B.createElement(TD,{title:this.props.t(`ra_Collapse one step node`),slotProps:{popper:{sx:$.tooltip}}},B.createElement(Ev,{key:`collapseVisible`,color:`primary`,onClick:()=>this.onCollapseVisible(),size:`large`},B.createElement(Zx,{sx:e=>({badge:{right:3,top:3,border:`2px solid ${e.palette.background.paper}`,padding:`0 4px`}}),badgeContent:this.state.depth,color:`secondary`},B.createElement(kW,null)))),this.props.objectStatesView&&B.createElement(TD,{title:this.props.t(`ra_Toggle the states view`),slotProps:{popper:{sx:$.tooltip}}},B.createElement(Ev,{onClick:()=>this.onStatesViewVisible(),size:`large`},B.createElement(Pk,{color:this.state.statesView?`primary`:`inherit`}))),B.createElement(TD,{title:this.props.t(`ra_Show/Hide object descriptions`),slotProps:{popper:{sx:$.tooltip}}},B.createElement(Ev,{onClick:()=>{this.localStorage.setItem(`${this.props.dialogName||`App`}.desc`,this.state.showDescription?`false`:`true`),this.setState({showDescription:!this.state.showDescription})},size:`large`},B.createElement(Kk,{color:this.state.showDescription?`primary`:`inherit`}))),this.props.objectAddBoolean?B.createElement(TD,{title:this.toolTipObjectCreating(),slotProps:{popper:{sx:$.tooltip}}},B.createElement(`div`,null,B.createElement(Ev,{disabled:!e,onClick:()=>this.setState({modalNewObj:{id:this.state.selected[0]||this.state.selectedNonObject}}),size:`large`},B.createElement(QO,null)))):null,this.props.objectImportExport&&B.createElement(TD,{title:this.props.t(`ra_Add objects tree from JSON file`),slotProps:{popper:{sx:$.tooltip}}},B.createElement(Ev,{onClick:e=>{this.props.objectBrowserInsertJsonObjects?this.setState({showImportMenu:e.currentTarget}):this.onOpenFile()},size:`large`},B.createElement(Lk,null))),this.props.objectBrowserInsertJsonObjects?B.createElement(mE,{anchorEl:this.state.showImportMenu,open:!!this.state.showImportMenu,onClose:()=>this.setState({showImportMenu:null})},B.createElement(bE,{onClick:()=>this.setState({showImportMenu:null},()=>this.onOpenFile())},B.createElement(BT,null,B.createElement(qk,null)),B.createElement(GT,null,this.props.t(`ra_From file`))),B.createElement(bE,{onClick:()=>this.setState({showImportMenu:null,showImportDialog:!0})},B.createElement(BT,null,B.createElement(mk,null)),B.createElement(GT,null,this.props.t(`ra_From text`)))):null,this.props.objectImportExport&&(!!this.state.selected.length||this.state.selectedNonObject)&&B.createElement(TD,{title:this.props.t(`ra_Save objects tree as JSON file`),slotProps:{popper:{sx:$.tooltip}}},B.createElement(Ev,{onClick:()=>this.setState({showExportDialog:this._getSelectedIdsForExport().length}),size:`large`},B.createElement(Lk,{style:{transform:`rotate(180deg)`}})))),!!this.props.objectBrowserEditObject&&this.props.width!==`xs`&&B.createElement(`div`,{style:{display:`flex`,whiteSpace:`nowrap`}},`${this.props.t(`ra_Objects`)}: ${Object.keys(this.info.objects).length}, ${this.props.t(`ra_States`)}: ${Object.keys(this.info.objects).filter(e=>this.info.objects[e].type===`state`).length}`),this.props.objectEditBoolean&&B.createElement(TD,{title:this.props.t(`ra_Edit custom config`),slotProps:{popper:{sx:$.tooltip}}},B.createElement(Ev,{onClick:()=>{let e=this.root?AK(this.root,`state`,this.objects):[];e.length?(this.pauseSubscribe(!0),e.length===1&&(this.localStorage.setItem(`${this.props.dialogName||`App`}.objectSelected`,this.state.selected[0]),this.props.router?.doNavigate(null,`custom`,this.state.selected[0])),this.setState({customDialog:e,customDialogAll:!0})):this.setState({toast:this.props.t(`ra_please select object`)})},size:`large`},B.createElement(sk,null))))}toggleExpanded(e){let t=JSON.parse(JSON.stringify(this.state.expanded)),n=t.indexOf(e);n===-1?(t.push(e),t.sort()):t.splice(n,1),this.localStorage.setItem(`${this.props.dialogName||`App`}.objectExpanded`,JSON.stringify(t)),this.setState({expanded:t})}onCopy(e,t){e.stopPropagation(),e.preventDefault(),t&&(wA.copyToClipboard(t),t.length<50?this.setState({toast:this.props.t(`ra_Copied %s`,t)}):this.setState({toast:this.props.t(`ra_Copied`)}))}renderTooltipAccessControl=e=>{if(!e)return null;let t=[{value:`0x400`,valueNum:1024,title:`read`,group:`Owner`},{value:`0x200`,valueNum:512,title:`write`,group:`Owner`},{value:`0x40`,valueNum:64,title:`read`,group:`Group`},{value:`0x20`,valueNum:32,title:`write`,group:`Group`},{value:`0x4`,valueNum:4,title:`read`,group:`Everyone`},{value:`0x2`,valueNum:2,title:`write`,group:`Everyone`}],n=[],r=r=>{let i=e[r];t.forEach((e,t)=>{i&e.valueNum&&n.push(B.createElement(`span`,{key:r+t},this.texts[`acl${e.group}_${e.title}_${r}`],`,`,B.createElement(`span`,{style:r===`object`?$.rightsObject:$.rightsState},e.value)))})};return n.push(B.createElement(`span`,{key:`group`},`${this.texts.ownerGroup}: ${(e.ownerGroup||``).replace(`system.group.`,``)}`)),n.push(B.createElement(`span`,{key:`owner`},`${this.texts.ownerUser}: ${(e.owner||``).replace(`system.user.`,``)}`)),r(`object`),e.state&&r(`state`),n.length?B.createElement(`span`,{style:$.tooltipAccessControl},n.map(e=>e)):null};renderColumnButtons(e,t){if(!t.data.obj)return this.props.onObjectDelete||this.props.objectEditOfAccessControl?B.createElement(`div`,{style:$.buttonDiv},this.state.filter.expertMode&&this.props.objectEditOfAccessControl?B.createElement(Ev,{sx:{...$.cellButtonsButton,...$.cellButtonsEmptyButton,...$.cellButtonMinWidth},onClick:()=>this.setState({modalEditOfAccess:!0,modalEditOfAccessObjData:t.data}),size:`large`},B.createElement(`div`,{style:{height:15}},`---`)):null,this.props.onObjectDelete&&t.children?.length?B.createElement(Ev,{sx:{...$.cellButtonsButton,...$.cellButtonsButtonAlone},size:`small`,"aria-label":`delete`,title:this.texts.deleteObject,onClick:()=>{let n=Object.keys(this.objects);n.sort();let r=0,i=`${e}.`;for(let e=0;e<n.length;e++)if(n[e].startsWith(i))r++;else if(n[e]>i)break;this.props.onObjectDelete&&this.props.onObjectDelete(e,!!t.children?.length,!1,r+1)}},B.createElement(_k,{style:$.cellButtonsButtonIcon})):null):null;t.data.aclTooltip=t.data.aclTooltip||this.renderTooltipAccessControl(t.data.obj.acl);let n=t.data.obj.acl?t.data.obj.type===`state`?t.data.obj.acl.state:t.data.obj.acl.object:0,r=t.data.obj.acl&&(t.data.obj.type===`state`?this.systemConfig.common.defaultNewAcl.state:this.systemConfig.common.defaultNewAcl.object),i=this.state.filter.expertMode||WK(t.data.id);return[this.state.filter.expertMode&&this.props.objectEditOfAccessControl?B.createElement(TD,{key:`acl`,title:t.data.aclTooltip,slotProps:{popper:{sx:$.tooltip}}},B.createElement(Ev,{sx:{...$.cellButtonsButton,...$.cellButtonMinWidth,opacity:1},onClick:()=>this.setState({modalEditOfAccess:!0,modalEditOfAccessObjData:t.data}),size:`large`},B.createElement(`div`,{style:$.aclText},Number.isNaN(Number(n))?Number(r).toString(16):Number(n).toString(16)))):B.createElement(`div`,{key:`aclEmpty`,style:$.cellButtonMinWidth}),i?B.createElement(Ev,{key:`edit`,sx:{marginRight:`2px`,...$.cellButtonsButton},size:`small`,"aria-label":`edit`,title:this.texts.editObject,onClick:()=>{this.localStorage.setItem(`${this.props.dialogName||`App`}.objectSelected`,e),this.setState({editObjectDialog:e,editObjectAlias:!1})}},B.createElement(bk,{style:$.cellButtonsButtonIcon})):B.createElement($x,{component:`div`,key:`editDisabled`,sx:$.cellButtonsButton}),this.props.onObjectDelete&&(t.children?.length||!t.data.obj.common?.dontDelete)?B.createElement(Ev,{key:`delete`,sx:$.cellButtonsButton,size:`small`,"aria-label":`delete`,onClick:()=>{let n=Object.keys(this.objects);n.sort();let r=0,i=`${e}.`;for(let e=0;e<n.length;e++)if(n[e].startsWith(i))r++;else if(n[e]>i)break;this.props.onObjectDelete&&this.props.onObjectDelete(e,!!t.children?.length,!t.data.obj?.common?.dontDelete,r)},title:this.texts.deleteObject},B.createElement(_k,{style:$.cellButtonsButtonIcon})):null,this.props.objectCustomDialog&&this.info.hasSomeCustoms&&t.data.obj.type===`state`&&t.data.obj.common?.type!==`file`?B.createElement(Ev,{sx:{...$.cellButtonsButton,...t.data.hasCustoms?this.styles.cellButtonsButtonWithCustoms:$.cellButtonsButtonWithoutCustoms},key:`custom`,size:`small`,"aria-label":`config`,title:this.texts.customConfig,onClick:()=>{this.localStorage.setItem(`${this.props.dialogName||`App`}.objectSelected`,e),this.pauseSubscribe(!0),this.props.router?.doNavigate(null,`customs`,e),this.setState({customDialog:[e],customDialogAll:!1})}},B.createElement(Hk,{style:$.cellButtonsButtonIcon})):null]}readHistory(e){if(window.sparkline&&this.defaultHistory&&this.objects[e]?.common?.custom&&this.objects[e].common.custom[this.defaultHistory]){let t=new Date;t.setHours(t.getHours()-24),t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0);let n=t.getTime();this.props.socket.getHistory(e,{instance:this.defaultHistory,start:n,end:Date.now(),step:36e5,from:!1,ack:!1,q:!1,addId:!1,aggregate:`minmax`}).then(t=>{let r=window.document.getElementsByClassName(`sparkline`);for(let i=0;i<r.length;i++)if(r[i].dataset.id===e){let e=VK(t,n);window.sparkline.sparkline(r[i],e);break}}).catch(e=>console.warn(`Cannot read history: ${e}`))}}getTooltipInfo(e,t){let n=this.objects[e],r=this.states[e],{valFull:i,fileViewer:a}=zK({state:r,obj:n,texts:this.texts,dateFormat:this.props.dateFormat||this.systemConfig.common.dateFormat,isFloatComma:this.props.isFloatComma===void 0?this.systemConfig.common.isFloatComma:this.props.isFloatComma,full:!0}),o=[];i?.forEach(e=>{e.t===this.texts.quality&&r.q?(o.push(B.createElement(`div`,{style:$.cellValueTooltipBoth,key:e.t},e.t,`:\xA0`,e.v)),e.nbr||o.push(B.createElement(`br`,{key:`${e.t}_br`}))):(o.push(B.createElement(`div`,{style:$.cellValueTooltipTitle,key:e.t},e.t,`:\xA0`)),o.push(B.createElement(`div`,{style:$.cellValueTooltipValue,key:`${e.t}_v`},e.v)),e.nbr||o.push(B.createElement(`br`,{key:`${e.t}_br`})))});let s=n?.common?.role||``;a===`image`?o.push(B.createElement(`img`,{style:$.cellValueTooltipImage,src:r.val,alt:e})):s===`url`||n.common.role===`url.self`||n.common.role===`url.blank`?o.unshift(B.createElement(`div`,{key:`ctrl`,style:{textDecoration:`underline`,fontWeight:`bold`}},this.texts.ctrlForLink)):this.defaultHistory&&n?.common?.custom?.[this.defaultHistory]&&o.push(B.createElement(`svg`,{key:`sparkline`,className:`sparkline`,"data-id":e,style:{fill:`#3d85de`},width:`200`,height:`30`,strokeWidth:`3`})),this.setState({tooltipInfo:{el:o,id:e}},()=>t&&t())}renderColumnValue(e,t,n){let r=t.data.obj;if(!r||!this.states)return null;if(r.common?.type===`file`)return B.createElement($x,{component:`div`,sx:{...$.cellValueText,...$.cellValueFile}},`[file]`);if(!this.states[e])return r.type===`state`&&(this.recordStates.includes(e)||this.recordStates.push(e),this.states[e]={val:null},this.subscribe(e)),null;this.recordStates.includes(e)||this.recordStates.push(e);let i=this.states[e],a=t.data.state;if(!a){let{valText:e}=zK({state:i,obj:r,texts:this.texts,dateFormat:this.props.dateFormat||this.systemConfig.common.dateFormat,isFloatComma:this.props.isFloatComma===void 0?this.systemConfig.common.isFloatComma:this.props.isFloatComma}),o=[];if(t.data.state={valTextRx:o},o.push(B.createElement(`span`,{className:`newValueBrowser-${this.props.themeType||`light`}`,key:`${e.v.toString()}valText`,style:{whiteSpace:`nowrap`,display:`inline-block`,overflow:`hidden`,textOverflow:`ellipsis`}},e.v.toString())),e.u&&o.push(B.createElement(`span`,{className:`newValueBrowser-${this.props.themeType||`light`}`,style:$.cellValueTextUnit,key:`${e.v.toString()}unit`},e.u)),e.s!==void 0&&o.push(B.createElement(`span`,{style:$.cellValueTextState,className:`newValueBrowser-${this.props.themeType||`light`}`,key:`${e.v.toString()}states`},`(`,e.s,`)`)),!n){let t=e.c===void 0?e.v||``:e.c;o.push(B.createElement($G,{className:`copyButton`,style:this.styles.iconCopy,onClick:e=>this.onCopy(e,t),key:`cc`}))}a=t.data.state}a.style=BK({state:i,isExpertMode:this.state.filter.expertMode,isButton:t.data.button,nonAckColor:this.props.theme.palette.nonAck});let o=a.valTextRx;return this.state.filter.expertMode||(t.data.button?o=[B.createElement(vK,{key:`button`,style:{color:a.style.color,...$.cellValueButton}})]:t.data.switch&&(o=[B.createElement(ND,{key:`switch`,sx:{"& .MuiSwitch-thumb":{color:a.style.color},"& .MuiSwitch-track":{backgroundColor:this.states[e].val&&this.state.selected.includes(e)?this.props.themeType===`dark`?`#FFF !important`:`#111 !important`:void 0}},checked:!!this.states[e].val})])),B.createElement(TD,{key:`value`,title:this.state.tooltipInfo?.el,slotProps:{popper:{sx:$.cellValueTooltipBox},tooltip:{sx:$.cellValueTooltip}},onOpen:()=>this.getTooltipInfo(e,()=>this.readHistory(e)),onClose:()=>this.state.tooltipInfo?.id===e&&this.setState({tooltipInfo:null})},B.createElement($x,{component:`div`,style:a.style,className:t.data.url?`iob-link`:void 0,sx:{...$.cellValueText,height:n?void 0:32,"& .admin-button:active":{transform:`translate(0, 2px)`}}},o))}_syncEnum(e,t,n,r){if(!t?.length){r&&r();return}let i=t.pop()||``,a=[];if(this.info.objects[i]?.common){if(this.info.objects[i].common.members?.length){let t=this.info.objects[i].common.members.indexOf(e);if(t!==-1&&!n.includes(i)){let e=JSON.parse(JSON.stringify(this.info.objects[i]));e.common.members.splice(t,1),a.push(this.props.socket.setObject(i,e).then(()=>this.info.objects[i]=e).catch(e=>this.showError(e)))}}if(n.includes(i)&&!this.info.objects[i].common.members?.includes(e)){let t=JSON.parse(JSON.stringify(this.info.objects[i]));t.common.members||=[],t.common.members.push(e),t.common.members.sort(),a.push(this.props.socket.setObject(i,t).then(()=>this.info.objects[i]=t).catch(e=>this.showError(e)))}}Promise.all(a).then(()=>{setTimeout(()=>this._syncEnum(e,t,n,r),0)})}syncEnum(e,t,n){let r=[...this.info[t===`func`?`funcEnums`:`roomEnums`]];return new Promise(t=>{this._syncEnum(e,r,n,()=>{t()})})}renderEnumDialog(){if(!this.state.enumDialog)return null;let e=this.state.enumDialog.type,t=this.state.enumDialog.item,n=this.state.enumDialogEnums,r=this.state.enumDialog.enumsOriginal,i=(e===`room`?this.info.roomEnums:this.info.funcEnums).map(e=>({name:DK(this.objects[e]?.common?.name||e.split(`.`).pop()||``,this.props.lang),value:e,icon:OK(this.objects,e,this.props.lang,this.imagePrefix)})).sort((e,t)=>e.name>t.name?1:-1);return i.forEach(e=>{e.icon&&typeof e.icon==`string`&&(e.icon=B.createElement($x,{style:$.enumIconDiv},B.createElement(`img`,{src:e.icon,style:$.enumIcon,alt:e.name})))}),B.createElement(CC,{sx:{"& .MuiPaper-root":$.enumDialog},onClose:()=>this.setState({enumDialog:null}),"aria-labelledby":`enum-dialog-title`,open:!0},B.createElement(BC,{id:`enum-dialog-title`,style:{display:`flex`,justifyContent:`space-between`,width:`100%`,flexWrap:`nowrap`,gap:8,paddingRight:12}},e===`func`?this.props.t(`ra_Define functions`):this.props.t(`ra_Define rooms`),B.createElement(ZC,{color:`primary`,disabled:r===JSON.stringify(n),size:`small`,onClick:()=>this.syncEnum(t.data.id,e,n).then(()=>this.setState({enumDialog:null,enumDialogEnums:null}))},B.createElement(lk,null))),B.createElement(yT,{sx:{"&.MuiList-root":$.enumList}},i.map(e=>{let t,r,i;typeof e==`object`?(t=e.value,r=e.name,i=e.icon):(t=e,r=e);let a=`checkbox-list-label-${t}`;return B.createElement(FT,{sx:$.headerCellSelectItem,key:t,onClick:()=>{let e=n.indexOf(t),r=JSON.parse(JSON.stringify(this.state.enumDialogEnums));e===-1?(r.push(t),r.sort()):r.splice(e,1),this.setState({enumDialogEnums:r})},secondaryAction:i},B.createElement(BT,{sx:{"&.MuiListItemIcon-root":$.enumCheckbox}},B.createElement(zS,{edge:`start`,checked:n.includes(t),tabIndex:-1,disableRipple:!0,slotProps:{input:{"aria-labelledby":a}}})),B.createElement(GT,{id:a},r))})))}renderEditRoleDialog(){if(!this.state.roleDialog||!this.props.objectBrowserEditRole)return null;if(this.state.roleDialog&&this.props.objectBrowserEditRole){let e=this.props.objectBrowserEditRole;return B.createElement(e,{key:`objectBrowserEditRole`,id:this.state.roleDialog,socket:this.props.socket,t:this.props.t,roleArray:this.info.roles,commonType:this.info.objects[this.state.roleDialog]?.common?.type,onClose:e=>{e&&(this.info.objects[this.state.roleDialog]=e),this.setState({roleDialog:null})}})}return null}onColumnsEditCustomDialogClose(e){let t=this.customColumnDialog;if(e){let e=t.value;t.type===`boolean`?e=e===`true`||e===!0:t.type===`number`&&(e=parseFloat(e)),this.customColumnDialog=null,this.props.socket.getObject(this.state.columnsEditCustomDialog?.obj?._id||``).then(t=>{if(t&&UK(t,this.state.columnsEditCustomDialog?.it,e))return this.props.socket.setObject(t._id,t);throw Error(this.props.t(`ra_Cannot update attribute, because not found in the object`))}).then(()=>this.setState({columnsEditCustomDialog:null})).catch(e=>this.showError(e))}else this.customColumnDialog=null,this.setState({columnsEditCustomDialog:null})}renderColumnsEditCustomDialog(){if(!this.state.columnsEditCustomDialog)return null;if(!this.customColumnDialog){let e=HK(this.state.columnsEditCustomDialog.obj,this.state.columnsEditCustomDialog.it);this.customColumnDialog={type:this.state.columnsEditCustomDialog.it.type||typeof e,initValue:(e??``).toString(),value:(e??``).toString()}}return B.createElement(CC,{onClose:()=>this.setState({columnsEditCustomDialog:null}),maxWidth:`md`,"aria-labelledby":`custom-dialog-title`,open:!0},B.createElement(BC,{id:`custom-dialog-title`},`${this.props.t(`ra_Edit object field`)}: ${this.state.columnsEditCustomDialog.obj._id}`),B.createElement(NC,null,B.createElement(LC,{id:`alert-dialog-description`},this.customColumnDialog.type===`boolean`?B.createElement(dw,{control:B.createElement(zS,{onKeyUp:e=>e.key===`Enter`&&this.onColumnsEditCustomDialogClose(!0),defaultChecked:this.customColumnDialog.value===`true`,onChange:e=>{let t=this.customColumnDialog;t.value=e.target.checked.toString();let n=t.value!==t.initValue;n===!this.state.customColumnDialogValueChanged&&this.setState({customColumnDialogValueChanged:n})}}),label:`${this.state.columnsEditCustomDialog.it.name} (${this.state.columnsEditCustomDialog.it.pathText})`}):B.createElement(ZO,{variant:`standard`,defaultValue:this.customColumnDialog.value,fullWidth:!0,onKeyUp:e=>e.key===`Enter`&&this.onColumnsEditCustomDialogClose(!0),label:`${this.state.columnsEditCustomDialog.it.name} (${this.state.columnsEditCustomDialog.it.pathText})`,onChange:e=>{let t=this.customColumnDialog;t.value=e.target.value;let n=t.value!==t.initValue;n===!this.state.customColumnDialogValueChanged&&this.setState({customColumnDialogValueChanged:n})},autoFocus:!0}))),B.createElement(DC,null,B.createElement(CS,{variant:`contained`,onClick:()=>this.onColumnsEditCustomDialogClose(!0),disabled:!this.state.customColumnDialogValueChanged,color:`primary`,startIcon:B.createElement(lk,null)},this.props.t(`ra_Update`)),B.createElement(CS,{color:`grey`,variant:`contained`,onClick:()=>this.onColumnsEditCustomDialogClose(),startIcon:B.createElement(uk,null)},this.props.t(`ra_Cancel`))))}renderCustomValue(e,t,n){let r=HK(e,t);return r==null?null:t.edit&&!this.props.notEditable&&(!t.objTypes||t.objTypes.includes(e.type))?B.createElement($x,{component:`div`,style:{...$.columnCustom,...$.columnCustomEditable,...$[`columnCustom_${t.align}`]},onClick:()=>this.setState({columnsEditCustomDialog:{item:n,it:t,obj:e},customColumnDialogValueChanged:!1})},r):B.createElement($x,{component:`div`,style:{...$.columnCustom,...$[`columnCustom_${t.align}`]}},r)}renderAliasLink(e,t,n){let r=t||0,i=this.objects[this.info.aliasesMap[e][r]].common.alias.id;return i?B.createElement($x,{component:`div`,onClick:t=>{t.stopPropagation(),t.preventDefault();let n=this.info.aliasesMap[e][r];this.info.aliasesMap[e].length>1&&this.setState({aliasMenu:``}),this.onSelect(n),setTimeout(()=>this.expandAllSelected(()=>this.scrollToItem(n)),100)},sx:n||this.styles.aliasAlone},B.createElement(`span`,{className:`admin-browser-arrow`},typeof i==`string`||i.read===e&&i.write===e?`↔`:i.read===e?`→`:`←`),this.info.aliasesMap[e][r]):null}renderLeaf(e,t,n){let r=e.data.id;n.count++,t=t===void 0?this.state.expanded.includes(r):t;let i,a=e.data.obj,o=a?.type;i=e.children||o===`folder`||o===`device`||o===`channel`||o===`meta`?t?B.createElement(AW,{style:this.styles.cellIdIconFolder,onClick:()=>this.toggleExpanded(r)}):B.createElement(kW,{style:this.styles.cellIdIconFolder,onClick:()=>this.toggleExpanded(r)}):a&&a.common&&a.common.write===!1&&a.type===`state`?B.createElement(nK,{style:this.styles.cellIdIconDocument}):B.createElement(tK,{style:this.styles.cellIdIconDocument});let s=null;e.data.icon&&(s=typeof e.data.icon==`string`?e.data.icon.length<3?B.createElement(`span`,{className:`iconOwn`,style:$.cellIdIconOwn},e.data.icon):B.createElement(_G,{style:$.cellIdIconOwn,className:`iconOwn`,src:e.data.icon,alt:``}):e.data.icon);let c=a?.common,l=a?.type&&$K[a.type]||B.createElement(`div`,{className:`itemIcon`}),u=this.levelPadding*(e.data.level||0);if(e.data.lang!==this.props.lang){let{rooms:t,per:n}=IK(this.info,r,this.props.lang);e.data.rooms=t.join(`, `),e.data.per=n;let{funcs:i,pef:a}=RK(this.info,r,this.props.lang);e.data.funcs=i.join(`, `),e.data.pef=a,e.data.lang=this.props.lang}let d=this.props.multiSelect&&this.objects[r]&&(!this.props.types||this.props.types.includes(this.objects[r].type))?B.createElement(zS,{style:$.checkBox,checked:this.state.selected.includes(r)}):null,f=!this.props.notEditable&&o===`state`&&(this.state.filter.expertMode||c?.write!==!1);this.props.objectBrowserViewFile&&c?.type===`file`&&(f=!0);let p=!this.props.notEditable&&this.objects[r]&&(this.state.filter.expertMode||o===`state`||o===`channel`||o===`device`),m=this.state.statesView&&(o===`state`||o===`channel`||o===`device`),h=``,g=[];if(m&&(h=this.states[r]?.from,h===void 0?h=` `:(h=h?h.replace(/^system\.adapter\.|^system\./,``):``,g.push(`${this.texts.stateChangedFrom} ${h}`)),a?.user)){let e=a.user.replace(`system.user.`,``);h+=`/${e}`,g.push(`${this.texts.stateChangedBy} ${e}`)}a&&(a.from&&g.push(`${this.texts.objectChangedFrom} ${a.from.replace(/^system\.adapter\.|^system\./,``)}`),a.user&&g.push(`${this.texts.objectChangedBy} ${a.user.replace(/^system\.user\./,``)}`),a.ts&&g.push(`${this.texts.objectChangedByUser} ${wA.formatDate(new Date(a.ts),this.props.dateFormat||this.systemConfig.common.dateFormat)}`));let _=!1,v=null;r.startsWith(`alias.`)&&c?.alias?.id?(_=typeof c.alias.id==`object`,v=_?B.createElement(`div`,{style:$.cellIdAliasReadWriteDiv},c.alias.id.read?B.createElement($x,{component:`div`,onClick:e=>{e.stopPropagation(),e.preventDefault(),this.onSelect(c.alias.id.read),setTimeout(()=>this.expandAllSelected(()=>this.scrollToItem(c.alias.id.read)),100)},sx:this.styles.aliasReadWrite},`←`,c.alias.id.read):null,c.alias.id.write?B.createElement($x,{component:`div`,onClick:e=>{e.stopPropagation(),e.preventDefault(),this.onSelect(c.alias.id.write),setTimeout(()=>this.expandAllSelected(()=>this.scrollToItem(c.alias.id.write)),100)},sx:this.styles.aliasReadWrite},`→`,c.alias.id.write):null):B.createElement($x,{component:`div`,onClick:e=>{e.stopPropagation(),e.preventDefault(),this.onSelect(c.alias.id),setTimeout(()=>this.expandAllSelected(()=>this.scrollToItem(c.alias.id)),100)},sx:this.styles.aliasAlone},`→`,c.alias.id)):this.info.aliasesMap[r]&&(v=this.info.aliasesMap[r].length>1?B.createElement($x,{component:`div`,id:`alias_${r}`,onClick:e=>{e.stopPropagation(),e.preventDefault(),this.setState({aliasMenu:r})},sx:this.styles.aliasAlone},this.props.t(`ra_%s links from aliases`,this.info.aliasesMap[r].length)):this.renderAliasLink(r,0));let y=c?.color,b;if(y&&!this.state.selected.includes(r)){let e=this.props.themeName===`dark`?`#1f1f1f`:this.props.themeName===`blue`?`#222a2e`:`#FFFFFF`;wA.colorDistance(y,e)<1e3&&(b=this.props.themeType===`dark`?`#9a9a9a`:`#565656`)}let x=!1;r===`0_userdata`?(y=dK(this.props.themeType),x=!0):r===`alias`?(y=fK(this.props.themeType),x=!0):r===`javascript`?(y=pK(this.props.themeType),x=!0):r===`system`?(y=mK(this.props.themeType),x=!0):r===`system.adapter`?y=hK(this.props.themeType):(!y||this.state.selected.includes(r))&&(y=`inherit`);let S=[];if(c?.statusStates){let e={};Object.keys(c.statusStates).forEach(t=>{let n=c.statusStates[t];n.split(`.`).length<3&&(n=`${r}.${n}`),e[t]=n,this.states[n]?this.recordStates.includes(n)||this.recordStates.push(n):this.objects[n]?.type===`state`&&(this.recordStates.includes(n)||this.recordStates.push(n),this.states[n]={val:null},this.subscribe(n))});let t=!1;c.statusStates.errorId&&this.states[e.errorId]&&this.states[e.errorId].val&&(y=this.props.themeType===`dark`?qK:JK,t=!0,S.push(B.createElement(xk,{key:`error`,style:this.styles.iconDeviceError}))),e.onlineId&&this.states[e.onlineId]?t?this.states[e.onlineId].val?S.push(B.createElement(Zk,{key:`conn`,style:this.styles.iconDeviceConnected})):S.push(B.createElement(Qk,{key:`disc`,style:this.styles.iconDeviceDisconnected})):this.states[e.onlineId].val?(y=this.props.themeType===`dark`?YK:XK,S.push(B.createElement(Zk,{key:`conn`,style:this.styles.iconDeviceConnected}))):(y=this.props.themeType===`dark`?ZK:QK,S.push(B.createElement(Qk,{key:`disc`,style:this.styles.iconDeviceDisconnected}))):e.offlineId&&this.states[e.offlineId]&&(t?this.states[e.offlineId].val?S.push(B.createElement(Qk,{key:`disc`,style:this.styles.iconDeviceDisconnected})):S.push(B.createElement(Zk,{key:`conn`,style:this.styles.iconDeviceConnected})):this.states[e.offlineId].val?(y=this.props.themeType===`dark`?ZK:QK,S.push(B.createElement(Qk,{key:`disc`,style:this.styles.iconDeviceDisconnected}))):(y=this.props.themeType===`dark`?YK:XK,S.push(B.createElement(Zk,{key:`conn`,style:this.styles.iconDeviceConnected}))))}let C=m?wA.quality2text(this.states[r]?.q||0).join(`, `):null,w=e.data?.title||``,T=!1;if(this.state.showDescription){let t=MK(e.data,this.props.lang);t&&(w=[B.createElement(`div`,{key:`name`,style:$.cellNameDivDiv},w),B.createElement(`div`,{key:`desc`,style:$.cellDescription},t)],T=!!t)}let E=this.props.width===`xs`&&this.state.focused===r,D=B.createElement(Bw,{container:!0,wrap:`nowrap`,direction:`row`,sx:$.cellId,style:{width:this.columnsVisibility.id,paddingLeft:u}},B.createElement(Bw,{container:!0,alignItems:`center`},d,i),B.createElement(Bw,{style:{...$.cellIdSpan,...b?this.styles.invertedBackground:void 0,color:y,fontWeight:x?`bold`:void 0}},B.createElement(TD,{title:NK(e.data,this.props.lang),slotProps:{popper:{sx:$.tooltip}}},B.createElement(`div`,null,e.data.name)),v,S),B.createElement(`div`,{style:{...$.grow,...b?this.styles.invertedBackgroundFlex:{}}}),B.createElement(Bw,{container:!0,alignItems:`center`},s),this.props.width===`xs`?null:B.createElement(`div`,null,B.createElement($G,{className:E?``:`copyButton`,style:$.cellCopyButton,onClick:e=>this.onCopy(e,r)}))),O=E&&w||this.columnsVisibility.name?B.createElement($x,{component:`div`,sx:{...$.cellName,...T?$.cellNameWithDesc:void 0,width:this.props.width===`xs`?void 0:this.columnsVisibility.name,ml:E?0:`5px`}},w,!E&&e.data?.title?B.createElement($x,{style:{color:y}},B.createElement($G,{className:`copyButton`,style:$.cellCopyButton,onClick:t=>this.onCopy(t,e.data?.title)})):null):null,k;k=this.state.statesView?[E&&m&&this.states[r]?.from||this.columnsVisibility.changedFrom?{el:B.createElement(`div`,{key:`from`,style:{...$.cellRole,width:this.props.width===`xs`?void 0:this.columnsVisibility.changedFrom},title:g.join(`
|
|
651
|
+
`)},m&&this.states[r]?.from?h:null),type:`from`}:null,E&&C||this.columnsVisibility.qualityCode?{el:B.createElement(`div`,{key:`q`,style:{...$.cellRole,width:this.props.width===`xs`?void 0:this.columnsVisibility.qualityCode},title:C||``},C),type:`quality`}:null,E&&m&&this.states[r]?.ts||this.columnsVisibility.timestamp?{el:B.createElement(`div`,{key:`ts`,style:{...$.cellRole,width:this.props.width===`xs`?void 0:this.columnsVisibility.timestamp}},m&&this.states[r]?.ts?wA.formatDate(new Date(this.states[r].ts),this.props.dateFormat||this.systemConfig.common.dateFormat):null),type:`ts`}:null,E&&m&&this.states[r]?.lc||this.columnsVisibility.lastChange?{el:B.createElement(`div`,{key:`lc`,style:{...$.cellRole,width:this.props.width===`xs`?void 0:this.columnsVisibility.lastChange}},m&&this.states[r]?.lc?wA.formatDate(new Date(this.states[r].lc),this.props.dateFormat||this.systemConfig.common.dateFormat):null),type:`lc`}:null]:[E&&a?.type||this.columnsVisibility.type?{el:B.createElement(`div`,{key:`type`,style:{...$.cellType,width:this.props.width===`xs`?void 0:this.columnsVisibility.type}},l,`\xA0`,a?.type),type:`filter_type`}:null,E&&c||this.columnsVisibility.role?{el:B.createElement(`div`,{key:`role`,style:{...$.cellRole,width:this.props.width===`xs`?`100%`:this.columnsVisibility.role,cursor:this.state.filter.expertMode&&p&&this.props.objectBrowserEditRole?`text`:`default`},onClick:!E&&this.state.filter.expertMode&&p&&this.props.objectBrowserEditRole?()=>this.setState({roleDialog:e.data.id}):void 0},c?.role),type:`filter_role`,onClick:E&&this.state.filter.expertMode&&p&&this.props.objectBrowserEditRole?()=>this.setState({roleDialog:e.data.id}):void 0}:null,E&&c||this.columnsVisibility.room?{el:B.createElement(`div`,{key:`room`,style:{...$.cellRoom,...e.data.per?$.cellEnumParent:{},width:this.props.width===`xs`?`100%`:this.columnsVisibility.room,cursor:p?`text`:`default`},onClick:!E&&p?()=>{let t=LK(this.info,e.data.id,`roomEnums`);this.setState({enumDialogEnums:t,enumDialog:{item:e,type:`room`,enumsOriginal:JSON.stringify(t)}})}:void 0},e.data.rooms),type:`filter_room`,onClick:E&&p?()=>{let t=LK(this.info,e.data.id,`roomEnums`);this.setState({enumDialogEnums:t,enumDialog:{item:e,type:`room`,enumsOriginal:JSON.stringify(t)}})}:void 0}:null,E&&c||this.columnsVisibility.func?{el:B.createElement(`div`,{key:`func`,style:{...$.cellFunc,...e.data.pef?$.cellEnumParent:{},width:this.props.width===`xs`?`100%`:this.columnsVisibility.func,cursor:p?`text`:`default`},onClick:!E&&p?()=>{let t=LK(this.info,e.data.id,`funcEnums`);this.setState({enumDialogEnums:t,enumDialog:{item:e,type:`func`,enumsOriginal:JSON.stringify(t)}})}:void 0},e.data.funcs),type:`filter_func`,onClick:E&&p?()=>{let t=LK(this.info,e.data.id,`funcEnums`);this.setState({enumDialogEnums:t,enumDialog:{item:e,type:`func`,enumsOriginal:JSON.stringify(t)}})}:void 0}:null];let A=this.adapterColumns?.map(t=>B.createElement(`div`,{style:{...$.cellAdapter,width:this.props.width===`xs`?void 0:this.columnsVisibility[t.id]},key:t.id,title:`${t.adapter} => ${t.pathText}`},a?this.renderCustomValue(a,t,e):null))||null,j=E||this.columnsVisibility.val?this.renderColumnValue(r,e,E):null,M=E&&j||this.columnsVisibility.val?B.createElement(`div`,{style:{...$.cellValue,width:this.props.width===`xs`?`calc(100% - 100px)`:this.columnsVisibility.val,cursor:f?c?.type===`file`?`zoom-in`:e.data.button?`grab`:`text`:`default`},onClick:t=>{f?!a||!this.states||(c?.type===`file`?this.setState({viewFileDialog:r}):e.data.url&&t.ctrlKey?this.states[r]?.val&&typeof this.states[r].val==`string`&&(c?.role===`url.self`?window.location.href=this.states[r].val:window.open(this.states[r].val,`_blank`)?.focus()):!this.state.filter.expertMode&&e.data.button?this.props.socket.setState(r,!0).catch(e=>window.alert(`Cannot write state "${r}": ${e}`)):!this.state.filter.expertMode&&e.data.switch?this.props.socket.setState(r,!this.states[r].val).catch(e=>window.alert(`Cannot write state "${r}": ${e}`)):(this.edit={val:this.states[r]?this.states[r].val:``,q:this.states[r]&&this.states[r].q||0,ack:!1,id:r},this.setState({updateOpened:!0}))):c?.role===`url`||c?.role===`url.blank`&&t.ctrlKey?this.states[r]?.val&&typeof this.states[r].val==`string`&&window.open(this.states[r].val,`_blank`):c?.role===`url.self`&&t.ctrlKey&&this.states[r]?.val&&typeof this.states[r].val==`string`&&(window.location.href=this.states[r].val)}},j):null,N=E||this.columnsVisibility.buttons?B.createElement(`div`,{style:{...$.cellButtons,width:this.props.width===`xs`?void 0:this.columnsVisibility.buttons}},this.renderColumnButtons(r,e)):null,P=null;if(this.props.width===`xs`&&this.state.focused===r){k=k.filter(e=>e);let t;t=k.length?k.map(e=>e?B.createElement(`div`,{key:e.type,style:$.cellDetailsLine},B.createElement(`span`,{style:$.cellDetailsName},this.texts[e.type],`:`),e.el,B.createElement(`div`,{style:{flexGrow:1}}),e.onClick?B.createElement(bk,{style:$.cellCopyButtonInDetails,onClick:()=>{e?.onClick&&e.onClick()}}):null):null):null,A.length||(A=null),P=B.createElement(z_,{style:{width:`100%`,display:`flex`,flexDirection:`column`,padding:10,backgroundColor:this.props.theme.palette.mode===`dark`?`#333`:`#ccc`}},B.createElement(`div`,{style:$.cellDetailsLine},B.createElement(`div`,{style:{flexGrow:1}}),B.createElement($G,{style:$.cellCopyButtonInDetails,onClick:e=>this.onCopy(e,r)})),O&&B.createElement(`div`,{style:$.cellDetailsLine},B.createElement(`span`,{style:$.cellDetailsName},this.texts.name,`:`),O,B.createElement(`div`,{style:{flexGrow:1}}),e.data?.title?B.createElement($G,{className:`copyButton`,style:$.cellCopyButtonInDetails,onClick:t=>this.onCopy(t,e.data?.title)}):null),t,A&&B.createElement(`div`,{style:$.cellDetailsLine},A),this.objects[r]?.type===`state`&&B.createElement(`div`,{style:$.cellDetailsLine},B.createElement(`span`,{style:$.cellDetailsName},this.texts.value,`:`),M,B.createElement(`div`,{style:{flexGrow:1}}),B.createElement($G,{className:`copyButton`,style:$.cellCopyButtonInDetails,onClick:e=>{let{valText:t}=zK({state:this.states[r],obj:this.objects[r],texts:this.texts,dateFormat:this.props.dateFormat||this.systemConfig.common.dateFormat,isFloatComma:this.props.isFloatComma===void 0?this.systemConfig.common.isFloatComma:this.props.isFloatComma});this.onCopy(e,t.c===void 0?t.v.toString():t.c)},key:`cc`})),N&&B.createElement(`div`,{style:{...$.cellDetailsLine,justifyContent:`right`}},N)),O=null,k=null,A=null,M=null,N=null}return{row:B.createElement(Bw,{container:!0,direction:`row`,wrap:`nowrap`,sx:wA.getStyle(this.props.theme,$.tableRow,this.state.linesEnabled&&$.tableRowLines,!this.props.dragEnabled&&$.tableRowNoDragging,v&&$.tableRowAlias,_&&$.tableRowAliasReadWrite,this.state.focused===r&&this.props.multiSelect&&$.tableRowFocused,!e.data.visible&&$.filteredOut,e.data.hasVisibleParent&&!e.data.visible&&!e.data.hasVisibleChildren&&$.filteredParentOut,this.state.selected.includes(r)&&$.itemSelected,this.state.selectedNonObject===r&&$.itemSelected),key:r,id:r,onMouseDown:t=>{this.onSelect(r);let n;`which`in t?n=t.which===3:`button`in t&&(n=t.button===2),n?this.contextMenu={item:e,ts:Date.now()}:this.contextMenu=null},onDoubleClick:()=>{e.children?this.toggleExpanded(r):this.onSelect(r,!0)}},D,O,k?.map(e=>e?.el),A,M,N),details:P}}renderItem(e,t,n){let r=[];n||={count:0};let i=this.renderLeaf(e,t,n),a,o=this.props.DragWrapper;return a=this.props.dragEnabled&&o?e.data.sumVisibility?B.createElement(o,{key:e.data.id,item:e,style:$.draggable},i.row):B.createElement(`div`,{key:e.data.id,style:$.nonDraggable},i.row):i.row,e.data.id&&a&&r.push(a),i.details&&r.push(i.details),t=t===void 0?EK(this.state.expanded,e.data.id):t,(!e.data.id||t)&&(this.state.foldersFirst?e.children&&(r.push(e.children.map(e=>e.children&&(!this.state.columnsSelectorShow||n.count<15)&&e.data.sumVisibility?this.renderItem(e,void 0,n):null)),r.push(e.children.map(e=>!e.children&&(!this.state.columnsSelectorShow||n.count<15)&&e.data.sumVisibility?this.renderItem(e,void 0,n):null))):e.children&&r.push(e.children.map(e=>(!this.state.columnsSelectorShow||n.count<15)&&e.data.sumVisibility?this.renderItem(e,void 0,n):null))),r}calculateColumnsVisibility(e,t,n,r){let i=r||this.state.columnsWidths,a=n||this.state.columnsForAdmin,o=t||this.state.columns||[],s=typeof e==`boolean`?e:this.state.columnsAuto;i=JSON.parse(JSON.stringify(i)),Object.keys(i).forEach(e=>{i[e]&&(i[e]=parseInt(i[e],10)||0)}),this.adapterColumns=[];let c=eq[this.props.width||`lg`].widths;if(s){if(this.columnsVisibility={id:eq[this.props.width||`lg`].idWidth,name:this.visibleCols.includes(`name`)&&c.name||0,nameHeader:this.visibleCols.includes(`name`)&&c.name||0,type:this.visibleCols.includes(`type`)&&c.type||0,role:this.visibleCols.includes(`role`)&&c.role||0,room:this.visibleCols.includes(`room`)&&c.room||0,func:this.visibleCols.includes(`func`)&&c.func||0,changedFrom:this.visibleCols.includes(`changedFrom`)&&c.changedFrom||0,qualityCode:this.visibleCols.includes(`qualityCode`)&&c.qualityCode||0,timestamp:this.visibleCols.includes(`timestamp`)&&c.timestamp||0,lastChange:this.visibleCols.includes(`lastChange`)&&c.lastChange||0,val:this.visibleCols.includes(`val`)&&c.val||0,buttons:this.visibleCols.includes(`buttons`)&&c.buttons||0},this.columnsVisibility.name&&!this.customWidth){let e=this.columnsVisibility.id||0;this.state.statesView?(e+=this.columnsVisibility.changedFrom||0,e+=this.columnsVisibility.qualityCode||0,e+=this.columnsVisibility.timestamp||0,e+=this.columnsVisibility.lastChange||0):(e+=this.columnsVisibility.type||0,e+=this.columnsVisibility.role||0,e+=this.columnsVisibility.room||0,e+=this.columnsVisibility.func||0),e+=this.columnsVisibility.val||0,e+=this.columnsVisibility.buttons||0,this.columnsVisibility.name=`calc(100% - ${e+5}px)`,this.columnsVisibility.nameHeader=`calc(100% - ${e+5+this.state.scrollBarWidth}px)`}else if(!this.customWidth){let e=0;this.state.statesView?(e+=this.columnsVisibility.changedFrom||0,e+=this.columnsVisibility.qualityCode||0,e+=this.columnsVisibility.timestamp||0,e+=this.columnsVisibility.lastChange||0):(e+=this.columnsVisibility.type||0,e+=this.columnsVisibility.role||0,e+=this.columnsVisibility.room||0,e+=this.columnsVisibility.func||0),e+=this.columnsVisibility.val||0,e+=this.columnsVisibility.buttons||0,this.columnsVisibility.id=`calc(100% - ${e+5}px)`}}else{let e=this.props.width||`lg`;this.columnsVisibility={id:i.id||eq[e].idWidth,name:o.includes(`name`)&&(i.name||c.name||eq[e].widths.name)||0,type:o.includes(`type`)&&(i.type||c.type||eq[e].widths.type)||0,role:o.includes(`role`)&&(i.role||c.role||eq[e].widths.role)||0,room:o.includes(`room`)&&(i.room||c.room||eq[e].widths.room)||0,func:o.includes(`func`)&&(i.func||c.func||eq[e].widths.func)||0};let t=this.columnsVisibility.id;if(this.columnsVisibility.name&&(t+=this.columnsVisibility.type||0,t+=this.columnsVisibility.role||0,t+=this.columnsVisibility.room||0,t+=this.columnsVisibility.func||0),a&&o&&Object.keys(a).sort().forEach(n=>a[n].forEach(r=>{let a=`_${n}_${r.path}`;if(o.includes(a)){let o={adapter:n,id:`_${n}_${r.path}`,name:r.name,path:r.path.split(`.`),pathText:r.path};r.edit&&(o.edit=!0,r.type&&(o.type=r.type),r.objTypes&&(o.objTypes=r.objTypes)),this.adapterColumns.push(o),this.columnsVisibility[a]=i[o.id]||r.width||eq[e].widths.func||eq.xl.widths.func||0,t+=this.columnsVisibility[a]}else this.columnsVisibility[a]=0})),this.adapterColumns.sort((e,t)=>e.id>t.id?-1:+(e.id<t.id)),this.columnsVisibility.val=o.includes(`val`)?i.val||c.val||eq.xl.widths.val:0,(!this.props.columns||this.props.columns.includes(`buttons`))&&(this.columnsVisibility.buttons=o.includes(`buttons`)?i.buttons||c.buttons||eq.xl.widths.buttons:0,t+=this.columnsVisibility.buttons||0),this.columnsVisibility.name&&!i.name)t+=this.columnsVisibility.val||0,this.columnsVisibility.name=`calc(100% - ${t}px)`,this.columnsVisibility.nameHeader=`calc(100% - ${t+5+this.state.scrollBarWidth}px)`;else{let e=Object.keys(this.columnsVisibility).reduce((e,t)=>t===`id`||typeof this.columnsVisibility[t]==`string`||!this.columnsVisibility[t]?e:e+this.columnsVisibility[t],0);this.columnsVisibility.id=`calc(100% - ${e}px)`}}}resizerMouseMove=e=>{if(this.resizerActiveDiv){let t,n;this.resizeLeft?(t=this.resizerOldWidth-e.clientX+this.resizerPosition,n=this.resizerOldWidthNext+e.clientX-this.resizerPosition):(t=this.resizerOldWidth+e.clientX-this.resizerPosition,n=this.resizerOldWidthNext-e.clientX+this.resizerPosition),this.resizerActiveName&&this.resizerNextName&&(!this.resizerMin||t>this.resizerMin)&&(!this.resizerNextMin||n>this.resizerNextMin)&&(this.resizerCurrentWidths[this.resizerActiveName]=t,this.resizerCurrentWidths[this.resizerNextName]=n,this.resizerActiveDiv.style.width=`${t}px`,this.resizerNextDiv&&(this.resizerNextDiv.style.width=`${n}px`),this.columnsVisibility[this.resizerActiveName]=t,this.columnsVisibility[this.resizerNextName]=n,this.resizerNextName===`nameHeader`?(this.columnsVisibility.name=n-this.state.scrollBarWidth,this.resizerCurrentWidths.name=n-this.state.scrollBarWidth):this.resizerActiveName===`nameHeader`&&(this.columnsVisibility.name=t-this.state.scrollBarWidth,this.resizerCurrentWidths.name=t-this.state.scrollBarWidth),this.customWidth=!0,this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=null,this.forceUpdate()},200))}};resizerMouseUp=()=>{this.localStorage.setItem(`${this.props.dialogName||`App`}.table`,JSON.stringify(this.resizerCurrentWidths)),this.resizerActiveName=null,this.resizerNextName=null,this.resizerActiveDiv=null,this.resizerNextDiv=null,window.removeEventListener(`mousemove`,this.resizerMouseMove),window.removeEventListener(`mouseup`,this.resizerMouseUp)};resizerMouseDown=e=>{if(this.storedWidths||=JSON.parse(JSON.stringify(eq[this.props.width||`lg`])),this.resizerCurrentWidths||={},this.resizerActiveDiv=e.target.parentNode,this.resizerActiveName=this.resizerActiveDiv.dataset.name||null,this.resizerActiveName){let t=0;if(e.target.dataset.left===`true`){this.resizeLeft=!0,this.resizerNextDiv=this.resizerActiveDiv.previousElementSibling;let e=this.resizerNextDiv.querySelector(`.iob-ob-resize-handler`);for(;this.resizerNextDiv&&!e&&t<10;)this.resizerNextDiv=this.resizerNextDiv.previousElementSibling,e=this.resizerNextDiv.querySelector(`.iob-ob-resize-handler`),t++;e?.dataset.left!==`true`&&(this.resizerNextDiv=this.resizerNextDiv.nextElementSibling)}else this.resizeLeft=!1,this.resizerNextDiv=this.resizerActiveDiv.nextElementSibling;this.resizerNextName=this.resizerNextDiv.dataset.name||null,this.resizerMin=parseInt(this.resizerActiveDiv.dataset.min,10)||0,this.resizerNextMin=parseInt(this.resizerNextDiv.dataset.min,10)||0,this.resizerPosition=e.clientX,this.resizerCurrentWidths[this.resizerActiveName]=this.resizerActiveDiv.offsetWidth,this.resizerOldWidth=this.resizerCurrentWidths[this.resizerActiveName],this.resizerNextName&&(this.resizerCurrentWidths[this.resizerNextName]=this.resizerNextDiv.offsetWidth,this.resizerOldWidthNext=this.resizerCurrentWidths[this.resizerNextName]),window.addEventListener(`mousemove`,this.resizerMouseMove),window.addEventListener(`mouseup`,this.resizerMouseUp)}};navigateKeyPress(t){let n=this.state.selectedNonObject||this.state.selected[0];if(n){if(t.code===`ArrowUp`||t.code===`ArrowDown`){t.preventDefault();let e=[];this.tableRef.current?.childNodes.forEach(t=>e.push(t.id));let r=e.indexOf(n),i=e[t.code===`ArrowDown`?r+1:r-1]||n;this.onSelect(i),this.scrollToItem(i)}if((t.code===`ArrowRight`||t.code===`ArrowLeft`)&&this.toggleExpanded(n),t.code===`Delete`&&this.root&&n){let t=e.getItemFromRoot(this.root,n);if(t){let{obj:e}=t.data;e&&!e.common?.dontDelete&&this.showDeleteDialog({id:n,obj:e,item:t})}}}}static getItemFromRoot(e,t){let n=t.split(`.`),r=``,i=e;for(let e=0;e<n.length;e++){let t=n[e];r=r?`${r}.${t}`:t;let a=!1;if(i.children){for(let e=0;e<i.children.length;e++)if(i.children[e].data.id===r){i=i.children[e],a=!0;break}}if(!a)return null}return i||null}resizerReset=()=>{this.customWidth=!1,eq[this.props.width||`lg`]=JSON.parse(JSON.stringify(this.storedWidths)),this.calculateColumnsVisibility(),this.localStorage.removeItem(`${this.props.dialogName||`App`}.table`),this.forceUpdate()};renderHandleRight(){return B.createElement($x,{component:`div`,className:`iob-ob-resize-handler`,sx:{...$.resizeHandle,...$.resizeHandleRight},onMouseDown:this.resizerMouseDown,onDoubleClick:this.resizerReset,title:this.props.t(`ra_Double click to reset table layout`)})}renderHeader(){let e=null;return!this.columnsVisibility.buttons&&!this.isFilterEmpty()&&(e=B.createElement(Ev,{onClick:()=>this.clearFilter(),style:$.buttonClearFilter,title:this.props.t(`ra_Clear filter`),size:`large`},B.createElement(aK,null),B.createElement(uk,{style:$.buttonClearFilterIcon}))),this.props.width===`xs`?B.createElement(`div`,{style:$.headerRow},B.createElement(`div`,{style:{...$.headerCell,width:`100%`}},this.getFilterInput(`id`))):B.createElement(`div`,{style:$.headerRow},B.createElement(`div`,{style:{...$.headerCell,width:this.columnsVisibility.id,position:`relative`},"data-min":240,"data-name":`id`},this.getFilterInput(`id`),this.renderHandleRight()),this.columnsVisibility.name?B.createElement(`div`,{style:{...$.headerCell,width:this.columnsVisibility.nameHeader,position:`relative`},"data-min":100,"data-name":`nameHeader`},this.getFilterInput(`name`),this.renderHandleRight()):null,!this.state.statesView&&B.createElement(B.Fragment,null,this.columnsVisibility.type?B.createElement(`div`,{style:{...$.headerCell,width:this.columnsVisibility.type,position:`relative`},"data-min":100,"data-name":`type`},this.getFilterSelectType(),this.renderHandleRight()):null,this.columnsVisibility.role?B.createElement(`div`,{style:{...$.headerCell,width:this.columnsVisibility.role,position:`relative`},"data-min":100,"data-name":`role`},this.getFilterSelectRole(),this.renderHandleRight()):null,this.columnsVisibility.room?B.createElement(`div`,{style:{...$.headerCell,width:this.columnsVisibility.room,position:`relative`},"data-min":100,"data-name":`room`},this.getFilterSelectRoom(),this.renderHandleRight()):null,this.columnsVisibility.func?B.createElement(`div`,{style:{...$.headerCell,width:this.columnsVisibility.func,position:`relative`},"data-min":100,"data-name":`func`},this.getFilterSelectFunction(),this.renderHandleRight()):null),this.state.statesView&&B.createElement(B.Fragment,null,B.createElement(`div`,{style:{...$.headerCell,...$.headerCellValue,width:this.columnsVisibility.changedFrom,position:`relative`},"data-min":100,"data-name":`changedFrom`},this.props.t(`ra_Changed from`),this.renderHandleRight()),B.createElement(`div`,{style:{...$.headerCell,...$.headerCellValue,width:this.columnsVisibility.qualityCode,position:`relative`},"data-min":100,"data-name":`qualityCode`},this.props.t(`ra_Quality code`),this.renderHandleRight()),B.createElement(`div`,{style:{...$.headerCell,...$.headerCellValue,width:this.columnsVisibility.timestamp,position:`relative`},"data-min":100,"data-name":`timestamp`},this.props.t(`ra_Timestamp`),this.renderHandleRight()),B.createElement(`div`,{style:{...$.headerCell,...$.headerCellValue,width:this.columnsVisibility.lastChange,position:`relative`},"data-min":100,"data-name":`lastChange`},this.props.t(`ra_Last change`),this.renderHandleRight())),this.adapterColumns.map(e=>B.createElement(`div`,{style:{...$.headerCell,...$.headerCellValue,width:this.columnsVisibility[e.id]},title:e.adapter,key:e.id,"data-min":100,"data-name":e.id},e.name)),this.columnsVisibility.val?B.createElement(`div`,{style:{...$.headerCell,...$.headerCellValue,width:this.columnsVisibility.val,position:`relative`},"data-min":120,"data-name":`val`},this.props.t(`ra_Value`),e):null,this.columnsVisibility.buttons?B.createElement(`div`,{title:this.texts.filter_custom,style:{...$.headerCell,width:this.columnsVisibility.buttons}},` `,this.getFilterSelectCustoms()):null)}renderToast(){return B.createElement(pD,{open:!!this.state.toast,autoHideDuration:3e3,onClick:()=>this.setState({toast:``}),onClose:()=>this.setState({toast:``}),message:this.state.toast,action:B.createElement(Ev,{size:`small`,"aria-label":`close`,color:`inherit`,onClick:()=>this.setState({toast:``})},B.createElement(uk,{fontSize:`small`}))})}getStateNav(){return this.state.editObjectDialog?{mode:`edit`,id:this.state.editObjectDialog}:this.state.customDialog&&this.state.customDialog.length===1&&!this.state.customDialogAll?{mode:`settings`,id:this.state.customDialog[0]}:this.state.viewFileDialog?{mode:`viewFile`,id:this.state.viewFileDialog}:this.state.selected.length===1&&this.state.selected[0]?{mode:`select`,id:this.state.selected[0]}:null}static navEqual(e,t){return!e||!t?!e&&!t:e.mode===t.mode&&e.id===t.id}applyNavigateTo(e){this.applyingNav=!0;let t=()=>{this.applyingNav=!1};if(!e?.id){this.setState({editObjectDialog:``,customDialog:null,viewFileDialog:``},t);return}let{id:n}=e,r=()=>{e.mode===`edit`?this.setState({editObjectDialog:n,editObjectAlias:!1,customDialog:null,viewFileDialog:``},t):e.mode===`settings`?this.setState({customDialog:[n],customDialogAll:!1,editObjectDialog:``,viewFileDialog:``},t):e.mode===`viewFile`?this.setState({viewFileDialog:n,editObjectDialog:``,customDialog:null},t):this.setState({editObjectDialog:``,customDialog:null,viewFileDialog:``},t)};this.state.selected.length===1&&this.state.selected[0]===n?r():this.onSelect(n,!1,()=>this.expandAllSelected(()=>{this.scrollToItem(n),r()}))}applyInitialNavigateTo(){let e=this.props.navigateTo??null;e?.id?(this.lastNav=e,this.applyNavigateTo(e)):this.lastNav=this.getStateNav()}reconcileNavigation(t){if(this.props.navigateTo===void 0&&!this.props.onNavigateTo||this.applyingNav)return;let n=this.props.navigateTo??null,r=this.getStateNav();if(e.navEqual(n,r)){this.lastNav=r;return}e.navEqual(n,t.navigateTo??null)?e.navEqual(r,this.lastNav)||(this.lastNav=r,this.props.onNavigateTo?.(r)):(this.lastNav=n,this.applyNavigateTo(n))}componentDidUpdate(e){if(this.tableRef.current){let e=this.tableRef.current.offsetWidth-this.tableRef.current.clientWidth;this.state.scrollBarWidth===e?this.selectFirst&&this.scrollToItem(this.selectFirst):setTimeout(()=>this.setState({scrollBarWidth:e}),100)}this.reconcileNavigation(e)}scrollToItem(e){this.selectFirst=``,window.document.getElementById(e)?.scrollIntoView({behavior:`auto`,block:`center`,inline:`center`})}renderCustomDialog(){if(this.state.customDialog&&this.props.objectCustomDialog){let e=this.props.objectCustomDialog;return B.createElement(e,{reportChangedIds:e=>this.changedIds=[...e],objectIDs:this.state.customDialog,allVisibleObjects:!!this.state.customDialogAll,expertMode:this.state.filter.expertMode,isFloatComma:this.props.isFloatComma===void 0?this.systemConfig.common.isFloatComma:this.props.isFloatComma,t:this.props.t,lang:this.props.lang,socket:this.props.socket,themeName:this.props.themeName,themeType:this.props.themeType,theme:this.props.theme,objects:this.objects,customsInstances:this.info.customs,onClose:()=>{this.pauseSubscribe(!1),this.setState({customDialog:null}),this.changedIds&&(this.changedIds=null,this.forceUpdate()),this.props.router?.doNavigate(`tab-objects`)},systemConfig:this.systemConfig})}return null}onUpdate(e){this.props.socket.setState(this.edit.id,{val:e.val,ack:e.ack,q:e.q||0,expire:e.expire||void 0}).catch(e=>this.showError(`Cannot write value: ${e}`))}renderEditObjectDialog(){if(!this.state.editObjectDialog||!this.props.objectBrowserEditObject)return null;let e=this.props.objectBrowserEditObject;return B.createElement(e,{key:this.state.editObjectDialog,obj:this.objects[this.state.editObjectDialog],roleArray:this.info.roles,objects:this.objects,dateFormat:this.props.dateFormat||this.systemConfig.common.dateFormat,isFloatComma:this.props.isFloatComma===void 0?this.systemConfig.common.isFloatComma:this.props.isFloatComma,themeType:this.props.themeType,theme:this.props.theme,socket:this.props.socket,dialogName:this.props.dialogName,aliasTab:this.state.editObjectAlias,t:this.props.t,expertMode:!!this.state.filter.expertMode,onNewObject:e=>this.props.socket.setObject(e._id,e).then(()=>this.setState({editObjectDialog:e._id,editObjectAlias:!1},()=>this.onSelect(e._id))).catch(e=>this.showError(`Cannot write object: ${e}`)),onClose:e=>{if(e){let t;this.state.editObjectDialog.startsWith(`alias.`)&&JSON.stringify(this.objects[this.state.editObjectDialog].common?.alias)!==JSON.stringify(e.common?.alias)&&(t=this.state.editObjectDialog),this.props.socket.setObject(e._id,e).then(()=>{t&&this.subscribes.includes(t)&&(this.unsubscribe(t),setTimeout(()=>this.subscribe(t),100))}).catch(e=>this.showError(`Cannot write object: ${e}`))}this.setState({editObjectDialog:``,editObjectAlias:!1})},width:this.props.width})}renderViewObjectFileDialog(){if(!this.state.viewFileDialog||!this.props.objectBrowserViewFile)return null;let e=this.props.objectBrowserViewFile;return B.createElement(e,{key:`viewFile`,obj:this.objects[this.state.viewFileDialog],socket:this.props.socket,t:this.props.t,onClose:()=>this.setState({viewFileDialog:``})})}renderAliasEditorDialog(){if(!this.props.objectBrowserAliasEditor||!this.state.showAliasEditor)return null;let e=this.props.objectBrowserAliasEditor;return B.createElement(e,{key:`editAlias`,obj:this.objects[this.state.showAliasEditor],roleArray:this.info.roles,objects:this.objects,socket:this.props.socket,t:this.props.t,onClose:()=>this.setState({showAliasEditor:``}),onRedirect:(e,t)=>setTimeout(()=>this.onSelect(e,!1,()=>this.expandAllSelected(()=>{this.scrollToItem(e),setTimeout(()=>this.setState({editObjectDialog:e,showAliasEditor:``,editObjectAlias:!0}),300)})),t||0)})}showAddDataPointDialog(e,t,n){this.setState({showContextMenu:null,modalNewObj:{id:e,initialType:t,initialStateType:n}})}renderAliasMenu(){return this.state.aliasMenu?B.createElement(mE,{key:`aliasmenu`,open:!0,anchorEl:window.document.getElementById(`alias_${this.state.aliasMenu}`),onClose:()=>this.setState({aliasMenu:``})},this.info.aliasesMap[this.state.aliasMenu].map((e,t)=>B.createElement(bE,{key:e,onClick:()=>this.onSelect(e)},B.createElement(GT,null,this.renderAliasLink(this.state.aliasMenu,t,{"& .admin-browser-arrow":{mr:`8px`}}))))):null}renderContextMenu(){if(!this.state.showContextMenu)return null;let e=this.state.showContextMenu.item,t=e.data.id,n=[],r=e.data.obj,i=``;if(this.props.objectEditOfAccessControl&&this.state.filter.expertMode)if(!r)i=`---`;else{let e=r.acl?r.type===`state`?r.acl.state:r.acl.object:0,t=r.acl&&(r.type===`state`?this.systemConfig.common.defaultNewAcl.state:this.systemConfig.common.defaultNewAcl.object);i=Number.isNaN(Number(e))?Number(t).toString(16):Number(e).toString(16)}let a=!this.props.notEditable&&r&&(this.state.filter.expertMode||r.type===`state`||r.type===`channel`||r.type===`device`),o=!e.data.obj||e.data.obj.type===`folder`||e.data.obj.type===`channel`||e.data.obj.type===`device`||e.data.id===`0_userdata.0`||e.data.obj.type===`meta`,s=!e.data.obj||e.data.obj.type===`folder`||e.data.obj.type===`device`||e.data.id===`0_userdata.0`||e.data.obj.type===`meta`,c=!e.data.obj||e.data.obj.type===`folder`||e.data.id===`0_userdata.0`||e.data.obj.type===`meta`,l=!e.data.obj||e.data.obj.type===`folder`||e.data.id===`0_userdata.0`||e.data.obj.type===`meta`,u={EDIT:{key:`0`,visibility:!!(this.props.objectBrowserEditObject&&r&&(this.state.filter.expertMode||WK(t))),icon:B.createElement(bk,{fontSize:`small`,style:this.styles.contextMenuEdit}),label:this.texts.editObject,onClick:()=>this.setState({editObjectDialog:e.data.id,showContextMenu:null,editObjectAlias:!1})},EDIT_VALUE:{key:`1`,visibility:!!(this.states&&!this.props.notEditable&&r&&r.type===`state`&&r.common?.type!==`file`&&(this.state.filter.expertMode||r.common.write!==!1)),icon:B.createElement(Ek,{fontSize:`small`,style:this.styles.contextMenuEditValue}),label:this.props.t(`ra_Edit value`),onClick:()=>{this.edit={val:this.states[t]?this.states[t].val:``,q:this.states[t]?.q||0,ack:!1,id:t},this.setState({updateOpened:!0,showContextMenu:null})}},VIEW:{visibility:!!this.props.objectBrowserViewFile&&r?.type===`state`&&r.common?.type===`file`,icon:B.createElement(Sk,{fontSize:`small`,style:this.styles.contextMenuView}),label:this.props.t(`ra_View file`),onClick:()=>this.setState({viewFileDialog:r?._id||``,showContextMenu:null})},CUSTOM:{key:`2`,visibility:!(this.props.objectCustomDialog&&this.info.hasSomeCustoms&&r&&r.type===`state`&&r.common?.type!==`file`),icon:B.createElement(Hk,{fontSize:`small`,style:e.data.hasCustoms?this.styles.cellButtonsButtonWithCustoms:$.cellButtonsButtonWithoutCustoms}),style:this.styles.contextMenuCustom,label:this.texts.customConfig,onClick:()=>{this.pauseSubscribe(!0),this.props.router?.doNavigate(null,`customs`,t),this.setState({customDialog:[t],showContextMenu:null})}},ACL:{key:`3`,visibility:!!i,icon:i,iconStyle:{fontSize:`smaller`},listItemIconStyle:this.styles.contextMenuACL,style:this.styles.contextMenuACL,label:this.props.t(`ra_Edit ACL`),onClick:()=>this.setState({showContextMenu:null,modalEditOfAccess:!0,modalEditOfAccessObjData:e.data})},ROLE:{key:`4`,visibility:!!(this.state.filter.expertMode&&a&&this.props.objectBrowserEditRole),icon:B.createElement(ak,{fontSize:`small`,style:this.styles.contextMenuRole}),label:this.props.t(`ra_Edit role`),onClick:()=>this.setState({roleDialog:e.data.id,showContextMenu:null})},FUNCTION:{key:`5`,visibility:!!a,icon:B.createElement(nk,{fontSize:`small`,style:this.styles.contextMenuRole}),label:this.props.t(`ra_Edit function`),onClick:()=>{let t=LK(this.info,e.data.id,`funcEnums`);this.setState({enumDialogEnums:t,enumDialog:{item:e,type:`func`,enumsOriginal:JSON.stringify(t)},showContextMenu:null})}},ROOM:{key:`6`,visibility:!!a,icon:B.createElement(fk,{fontSize:`small`,style:this.styles.contextMenuRoom}),label:this.props.t(`ra_Edit room`),onClick:()=>{let t=LK(this.info,e.data.id,`roomEnums`);this.setState({enumDialogEnums:t,enumDialog:{item:e,type:`room`,enumsOriginal:JSON.stringify(t)},showContextMenu:null})}},ALIAS:{key:`7`,visibility:!!(!this.props.notEditable&&this.props.objectBrowserAliasEditor&&this.props.objectBrowserEditObject&&r?.type===`state`&&r.common?.type!==`file`),icon:B.createElement(jk,{style:r?.common?.alias?this.styles.cellButtonsButtonWithCustoms:$.cellButtonsButtonWithoutCustoms}),label:this.info.aliasesMap[e.data.id]||e.data.id.startsWith(`alias.0.`)?this.props.t(`ra_Edit alias`):this.props.t(`ra_Create alias`),onClick:()=>{r?.common?.alias?this.setState({showContextMenu:null,editObjectDialog:e.data.id,editObjectAlias:!0}):this.setState({showContextMenu:null,showAliasEditor:e.data.id})}},CREATE:{key:`+`,visibility:(e.data.id.startsWith(`0_userdata.0`)||e.data.id.startsWith(`javascript.`))&&(o||s||c||l),icon:B.createElement(QO,{fontSize:`small`,style:this.styles.cellButtonsButtonWithCustoms}),style:$.contextMenuWithSubMenu,label:this.texts.create,subMenu:[{label:this.texts.createBooleanState,visibility:o,icon:B.createElement(iK,{fontSize:`small`}),onClick:()=>this.showAddDataPointDialog(e.data.id,`state`,`boolean`)},{label:this.texts.createNumberState,visibility:o,icon:B.createElement(iK,{fontSize:`small`}),onClick:()=>this.showAddDataPointDialog(e.data.id,`state`,`number`)},{label:this.texts.createStringState,visibility:o,icon:B.createElement(iK,{fontSize:`small`}),onClick:()=>this.showAddDataPointDialog(e.data.id,`state`,`string`)},{label:this.texts.createState,visibility:o,icon:B.createElement(iK,{fontSize:`small`}),onClick:()=>this.showAddDataPointDialog(e.data.id,`state`)},{label:this.texts.createChannel,visibility:s,icon:B.createElement(QG,{fontSize:`small`}),onClick:()=>this.showAddDataPointDialog(e.data.id,`channel`)},{label:this.texts.createDevice,visibility:c,icon:B.createElement(eK,{fontSize:`small`}),onClick:()=>this.showAddDataPointDialog(e.data.id,`device`)},{label:this.texts.createFolder,icon:B.createElement(hk,{fontSize:`small`}),visibility:l,onClick:()=>this.showAddDataPointDialog(e.data.id,`folder`)}]},RENAME:{key:`8`,visibility:!!(!this.props.notEditable&&this.props.objectMoveRenameDialog&&!e.data.id.startsWith(`system.`)&&e.data.id.split(`.`).length>2&&(this.props.expertMode||e.data.id.startsWith(`javascript.0.`)||e.data.id.startsWith(`0_userdata.0.`))),icon:B.createElement(yk,null),label:this.props.t(`ra_Rename_Move_Copy`),onClick:()=>{let t=Object.keys(this.objects),n=`${e.data.id}.`;this.setState({showContextMenu:null,showRenameDialog:{id:e.data.id,childrenIds:t.filter(e=>e.startsWith(n))}})}},DELETE:{key:`Delete`,visibility:!!(this.props.onObjectDelete&&(e.children?.length||r&&!r.common?.dontDelete)),icon:B.createElement(_k,{fontSize:`small`,style:this.styles.contextMenuDelete}),style:this.styles.contextMenuDelete,label:this.texts.deleteObject,onClick:()=>this.setState({showContextMenu:null},()=>this.showDeleteDialog({id:t,obj:r||{},item:e}))}};return Object.keys(u).forEach(e=>{u[e].visibility&&(u[e].subMenu?(n.push(B.createElement(bE,{key:e,href:``,onClick:t=>this.state.showContextMenu&&this.setState({showContextMenu:{item:this.state.showContextMenu.item,position:this.state.showContextMenu.position,subItem:e,subAnchor:t.target}}),style:u[e].style},B.createElement(BT,{style:{...u[e].iconStyle,...u[e].listItemIconStyle}},u[e].icon),B.createElement(GT,null,u[e].label,`...`),B.createElement(`div`,{style:{...$.contextMenuKeys,opacity:1}},B.createElement(ek,null)))),this.state.showContextMenu?.subItem===e&&n.push(B.createElement(mE,{key:`subContextMenu`,open:!0,anchorEl:this.state.showContextMenu.subAnchor,onClose:()=>{this.state.showContextMenu&&this.setState({showContextMenu:{item:this.state.showContextMenu.item,position:this.state.showContextMenu.position}}),this.contextMenu=null}},u[e].subMenu?.map(e=>e.visibility?B.createElement(bE,{key:e.label,onClick:e.onClick,style:e.style},B.createElement(BT,{style:{...e.iconStyle,...e.listItemIconStyle||void 0}},e.icon),B.createElement(GT,null,e.label)):null)))):n.push(B.createElement(bE,{key:e,onClick:u[e].onClick,sx:u[e].style},B.createElement(BT,{style:{...u[e].iconStyle,...u[e].listItemIconStyle}},u[e].icon),B.createElement(GT,null,u[e].label),u[e].key?B.createElement(`div`,{style:$.contextMenuKeys},`Alt+${u[e].key===`Delete`?this.props.t(`ra_Del`):u[e].key}`):null)))}),n.length?B.createElement(mE,{key:`contextMenu`,open:!0,onKeyUp:e=>{e.preventDefault(),e.altKey&&Object.keys(u).forEach(t=>{e.key===u[t].key&&u[t].onClick&&u[t].onClick()})},anchorReference:`anchorPosition`,anchorPosition:this.state.showContextMenu.position,onClose:()=>{this.setState({showContextMenu:null}),this.contextMenu=null}},n):(setTimeout(()=>this.setState({showContextMenu:null}),100),null)}renderEditValueDialog(){if(!this.state.updateOpened||!this.props.objectBrowserValue)return null;if(!this.edit.id)return console.error(`Invalid ID for edit: ${JSON.stringify(this.edit)}`),null;if(!this.objects[this.edit.id])return console.error(`Something went wrong. Possibly the object ${this.edit.id} was deleted.`),null;let e=this.objects[this.edit.id].common?.type?this.objects[this.edit.id].common.type:typeof this.edit.val,t=this.objects[this.edit.id].common.role,n=this.props.objectBrowserValue;return B.createElement(n,{t:this.props.t,lang:this.props.lang,type:e,role:t||``,states:wA.getStates(this.objects[this.edit.id]),themeType:this.props.themeType,theme:this.props.theme,expertMode:!!this.state.filter.expertMode,value:this.edit.val,socket:this.props.socket,object:this.objects[this.edit.id],defaultHistory:this.defaultHistory,dateFormat:this.props.dateFormat||this.systemConfig.common.dateFormat,isFloatComma:this.props.isFloatComma===void 0?this.systemConfig.common.isFloatComma:this.props.isFloatComma,onClose:e=>{this.setState({updateOpened:!1}),e&&this.onUpdate(e)},width:this.props.width})}doFilter(e){if(!this.objects||!this.root)return;e||this.localStorage.setItem(`${this.props.dialogName||`App`}.objectFilter`,JSON.stringify(this.state.filter));let t={count:0};kK(this.root,this.state.filter,this.props.lang,this.objects,void 0,t,this.props.customFilter,this.props.types),t.count<500&&!this.state.expandAllVisible?setTimeout(()=>this.setState({expandAllVisible:!0})):t.count>=500&&this.state.expandAllVisible?setTimeout(()=>this.setState({expandAllVisible:!1})):this.forceUpdate()}render(){if(this.recordStates=[],this.unsubscribeTimer&&clearTimeout(this.unsubscribeTimer),this.styleTheme!==this.props.themeType&&(this.styles={cellIdIconFolder:wA.getStyle(this.props.theme,$.cellIdIconFolder),cellIdIconDocument:wA.getStyle(this.props.theme,$.cellIdIconDocument),iconDeviceError:wA.getStyle(this.props.theme,$.iconDeviceError),iconDeviceConnected:wA.getStyle(this.props.theme,$.iconDeviceConnected),iconDeviceDisconnected:wA.getStyle(this.props.theme,$.iconDeviceDisconnected),cellButtonsButtonWithCustoms:wA.getStyle(this.props.theme,$.cellButtonsButtonWithCustoms),invertedBackground:wA.getStyle(this.props.theme,$.invertedBackground),invertedBackgroundFlex:wA.getStyle(this.props.theme,$.invertedBackgroundFlex),contextMenuEdit:wA.getStyle(this.props.theme,$.contextMenuEdit),contextMenuEditValue:wA.getStyle(this.props.theme,$.contextMenuEditValue),contextMenuView:wA.getStyle(this.props.theme,$.contextMenuView),contextMenuCustom:wA.getStyle(this.props.theme,$.contextMenuCustom),contextMenuACL:wA.getStyle(this.props.theme,$.contextMenuACL),contextMenuRoom:wA.getStyle(this.props.theme,$.contextMenuRoom),contextMenuRole:wA.getStyle(this.props.theme,$.contextMenuRole),contextMenuDelete:wA.getStyle(this.props.theme,$.contextMenuDelete),filterInput:wA.getStyle(this.props.theme,$.headerCellInput,$.filterInput),iconCopy:wA.getStyle(this.props.theme,$.cellButtonsValueButton,$.cellButtonsValueButtonCopy),aliasReadWrite:wA.getStyle(this.props.theme,$.cellIdAlias,$.cellIdAliasReadWrite),aliasAlone:wA.getStyle(this.props.theme,$.cellIdAlias,$.cellIdAliasAlone)},this.styleTheme=this.props.themeType),this.unsubscribeTimer=setTimeout(()=>{this.unsubscribeTimer=null,this.checkUnsubscribes()},200),this.expertMode!==!!this.state.filter.expertMode&&(this.expertMode=!!this.state.filter.expertMode,this.doFilter(!0)),!this.state.loaded)return B.createElement(bv,{key:`${this.props.dialogName}_c`});let e=this.root?this.renderItem(this.root,void 0):null;return B.createElement(sK,{key:this.props.dialogName},B.createElement(`style`,null,`
|
|
652
|
+
@keyframes newValueAnimation-light {
|
|
653
|
+
0% {
|
|
654
|
+
color: #00f900;
|
|
655
|
+
}
|
|
656
|
+
80% {
|
|
657
|
+
color: #008000;
|
|
658
|
+
}
|
|
659
|
+
100% {
|
|
660
|
+
color: #000;
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
@keyframes newValueAnimation-dark {
|
|
664
|
+
0% {
|
|
665
|
+
color: #00f900;
|
|
666
|
+
}
|
|
667
|
+
80% {
|
|
668
|
+
color: #008000;
|
|
669
|
+
}
|
|
670
|
+
100% {
|
|
671
|
+
color: #fff;
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
.newValueBrowser-dark {
|
|
675
|
+
animation: newValueAnimation-dark 2s ease-in-out;
|
|
676
|
+
}
|
|
677
|
+
.newValueBrowser-light {
|
|
678
|
+
animation: newValueAnimation-light 2s ease-in-out;
|
|
679
|
+
}
|
|
680
|
+
.highlight-link .iob-link {
|
|
681
|
+
text-decoration: underline;
|
|
682
|
+
cursor: pointer;
|
|
683
|
+
}
|
|
684
|
+
`),B.createElement(uK,null,this.getToolbar()),B.createElement(lK,null,this.renderHeader(),B.createElement($x,{style:$.tableDiv,ref:this.tableRef,onKeyDown:e=>this.navigateKeyPress(e)},e)),this.renderContextMenu(),this.renderAliasMenu(),this.renderToast(),this.renderColumnsEditCustomDialog(),this.renderColumnsSelectorDialog(),this.renderCustomDialog(),this.renderEditValueDialog(),this.renderEditObjectDialog(),this.renderViewObjectFileDialog(),this.renderAliasEditorDialog(),this.renderEditRoleDialog(),this.renderEnumDialog(),this.renderErrorDialog(),this.renderExportDialog(),this.renderRenameDialog(),this.renderInputJsonDialog(),this.state.modalNewObj&&this.props.modalNewObject&&this.props.modalNewObject(this),this.state.modalEditOfAccess&&this.state.modalEditOfAccessObjData&&this.props.modalEditOfAccessControl&&this.props.modalEditOfAccessControl(this,this.state.modalEditOfAccessObjData))}};TW()(rq),B.Component,B.Component;var iq=c(o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self,n.Cropper=r())})(e,(function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function t(t){for(var n=1;n<arguments.length;n++){var r=arguments[n]==null?{}:arguments[n];n%2?e(Object(r),!0).forEach(function(e){c(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function n(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function r(e){var t=n(e,`string`);return typeof t==`symbol`?t:t+``}function i(e){"@babel/helpers - typeof";return i=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},i(e)}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,`value`in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}function s(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e,t,n){return t=r(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){return u(e)||d(e)||f(e)||m()}function u(e){if(Array.isArray(e))return p(e)}function d(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function f(e,t){if(e){if(typeof e==`string`)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}}function p(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function m(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
685
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var h=typeof window<`u`&&window.document!==void 0,g=h?window:{},_=h&&g.document.documentElement?`ontouchstart`in g.document.documentElement:!1,v=h?`PointerEvent`in g:!1,y=`cropper`,b=`all`,x=`crop`,S=`move`,C=`zoom`,w=`e`,T=`w`,E=`s`,D=`n`,O=`ne`,k=`nw`,A=`se`,j=`sw`,M=`${y}-crop`,N=`${y}-disabled`,P=`${y}-hidden`,F=`${y}-hide`,I=`${y}-invisible`,L=`${y}-modal`,ee=`${y}-move`,R=`${y}Action`,te=`${y}Preview`,ne=`crop`,re=`move`,z=`none`,ie=`crop`,ae=`cropend`,oe=`cropmove`,se=`cropstart`,ce=`dblclick`,le=_?`touchstart`:`mousedown`,ue=_?`touchmove`:`mousemove`,de=_?`touchend touchcancel`:`mouseup`,fe=v?`pointerdown`:le,pe=v?`pointermove`:ue,me=v?`pointerup pointercancel`:de,he=`ready`,ge=`resize`,_e=`wheel`,ve=`zoom`,ye=`image/jpeg`,be=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,xe=/^data:/,Se=/^data:image\/jpeg;base64,/,Ce=/^img|canvas$/i,we=200,Te=100,Ee={viewMode:0,dragMode:ne,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:``,responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:we,minContainerHeight:Te,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},De=`<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>`,Oe=Number.isNaN||g.isNaN;function ke(e){return typeof e==`number`&&!Oe(e)}var Ae=function(e){return e>0&&e<1/0};function je(e){return e===void 0}function Me(e){return i(e)===`object`&&e!==null}var Ne=Object.prototype.hasOwnProperty;function Pe(e){if(!Me(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&Ne.call(n,`isPrototypeOf`)}catch{return!1}}function Fe(e){return typeof e==`function`}var Ie=Array.prototype.slice;function Le(e){return Array.from?Array.from(e):Ie.call(e)}function Re(e,t){return e&&Fe(t)&&(Array.isArray(e)||ke(e.length)?Le(e).forEach(function(n,r){t.call(e,n,r,e)}):Me(e)&&Object.keys(e).forEach(function(n){t.call(e,e[n],n,e)})),e}var ze=Object.assign||function(e){var t=[...arguments].slice(1);return Me(e)&&t.length>0&&t.forEach(function(t){Me(t)&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e},Be=/\.\d*(?:0|9){12}\d*$/;function Ve(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return Be.test(e)?Math.round(e*t)/t:e}var He=/^width|height|left|top|marginLeft|marginTop$/;function Ue(e,t){var n=e.style;Re(t,function(e,t){He.test(t)&&ke(e)&&(e=`${e}px`),n[t]=e})}function We(e,t){return e.classList?e.classList.contains(t):e.className.indexOf(t)>-1}function Ge(e,t){if(t){if(ke(e.length)){Re(e,function(e){Ge(e,t)});return}if(e.classList){e.classList.add(t);return}var n=e.className.trim();n?n.indexOf(t)<0&&(e.className=`${n} ${t}`):e.className=t}}function Ke(e,t){if(t){if(ke(e.length)){Re(e,function(e){Ke(e,t)});return}if(e.classList){e.classList.remove(t);return}e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,``))}}function qe(e,t,n){if(t){if(ke(e.length)){Re(e,function(e){qe(e,t,n)});return}n?Ge(e,t):Ke(e,t)}}var Je=/([a-z\d])([A-Z])/g;function Ye(e){return e.replace(Je,`$1-$2`).toLowerCase()}function Xe(e,t){return Me(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute(`data-${Ye(t)}`)}function Ze(e,t,n){Me(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute(`data-${Ye(t)}`,n)}function Qe(e,t){if(Me(e[t]))try{delete e[t]}catch{e[t]=void 0}else if(e.dataset)try{delete e.dataset[t]}catch{e.dataset[t]=void 0}else e.removeAttribute(`data-${Ye(t)}`)}var $e=/\s\s*/,et=function(){var e=!1;if(h){var t=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(e){t=e}});g.addEventListener(`test`,n,r),g.removeEventListener(`test`,n,r)}return e}();function tt(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=n;t.trim().split($e).forEach(function(t){if(!et){var a=e.listeners;a&&a[t]&&a[t][n]&&(i=a[t][n],delete a[t][n],Object.keys(a[t]).length===0&&delete a[t],Object.keys(a).length===0&&delete e.listeners)}e.removeEventListener(t,i,r)})}function nt(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=n;t.trim().split($e).forEach(function(t){if(r.once&&!et){var a=e.listeners,o=a===void 0?{}:a;i=function(){delete o[t][n],e.removeEventListener(t,i,r);var a=[...arguments];n.apply(e,a)},o[t]||(o[t]={}),o[t][n]&&e.removeEventListener(t,o[t][n],r),o[t][n]=i,e.listeners=o}e.addEventListener(t,i,r)})}function rt(e,t,n){var r;return Fe(Event)&&Fe(CustomEvent)?r=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0}):(r=document.createEvent(`CustomEvent`),r.initCustomEvent(t,!0,!0,n)),e.dispatchEvent(r)}function it(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}var at=g.location,ot=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function st(e){var t=e.match(ot);return t!==null&&(t[1]!==at.protocol||t[2]!==at.hostname||t[3]!==at.port)}function ct(e){var t=`timestamp=${new Date().getTime()}`;return e+(e.indexOf(`?`)===-1?`?`:`&`)+t}function lt(e){var t=e.rotate,n=e.scaleX,r=e.scaleY,i=e.translateX,a=e.translateY,o=[];ke(i)&&i!==0&&o.push(`translateX(${i}px)`),ke(a)&&a!==0&&o.push(`translateY(${a}px)`),ke(t)&&t!==0&&o.push(`rotate(${t}deg)`),ke(n)&&n!==1&&o.push(`scaleX(${n})`),ke(r)&&r!==1&&o.push(`scaleY(${r})`);var s=o.length?o.join(` `):`none`;return{WebkitTransform:s,msTransform:s,transform:s}}function ut(e){var n=t({},e),r=0;return Re(e,function(e,t){delete n[t],Re(n,function(t){var n=Math.abs(e.startX-t.startX),i=Math.abs(e.startY-t.startY),a=Math.abs(e.endX-t.endX),o=Math.abs(e.endY-t.endY),s=Math.sqrt(n*n+i*i),c=(Math.sqrt(a*a+o*o)-s)/s;Math.abs(c)>Math.abs(r)&&(r=c)})}),r}function dt(e,n){var r=e.pageX,i=e.pageY,a={endX:r,endY:i};return n?a:t({startX:r,startY:i},a)}function ft(e){var t=0,n=0,r=0;return Re(e,function(e){var i=e.startX,a=e.startY;t+=i,n+=a,r+=1}),t/=r,n/=r,{pageX:t,pageY:n}}function pt(e){var t=e.aspectRatio,n=e.height,r=e.width,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`contain`,a=Ae(r),o=Ae(n);if(a&&o){var s=n*t;i===`contain`&&s>r||i===`cover`&&s<r?n=r/t:r=n*t}else a?n=r/t:o&&(r=n*t);return{width:r,height:n}}function mt(e){var t=e.width,n=e.height,r=e.degree;if(r=Math.abs(r)%180,r===90)return{width:n,height:t};var i=r%90*Math.PI/180,a=Math.sin(i),o=Math.cos(i),s=t*o+n*a,c=t*a+n*o;return r>90?{width:c,height:s}:{width:s,height:c}}function ht(e,t,n,r){var i=t.aspectRatio,a=t.naturalWidth,o=t.naturalHeight,s=t.rotate,c=s===void 0?0:s,u=t.scaleX,d=u===void 0?1:u,f=t.scaleY,p=f===void 0?1:f,m=n.aspectRatio,h=n.naturalWidth,g=n.naturalHeight,_=r.fillColor,v=_===void 0?`transparent`:_,y=r.imageSmoothingEnabled,b=y===void 0?!0:y,x=r.imageSmoothingQuality,S=x===void 0?`low`:x,C=r.maxWidth,w=C===void 0?1/0:C,T=r.maxHeight,E=T===void 0?1/0:T,D=r.minWidth,O=D===void 0?0:D,k=r.minHeight,A=k===void 0?0:k,j=document.createElement(`canvas`),M=j.getContext(`2d`),N=pt({aspectRatio:m,width:w,height:E}),P=pt({aspectRatio:m,width:O,height:A},`cover`),F=Math.min(N.width,Math.max(P.width,h)),I=Math.min(N.height,Math.max(P.height,g)),L=pt({aspectRatio:i,width:w,height:E}),ee=pt({aspectRatio:i,width:O,height:A},`cover`),R=Math.min(L.width,Math.max(ee.width,a)),te=Math.min(L.height,Math.max(ee.height,o)),ne=[-R/2,-te/2,R,te];return j.width=Ve(F),j.height=Ve(I),M.fillStyle=v,M.fillRect(0,0,F,I),M.save(),M.translate(F/2,I/2),M.rotate(c*Math.PI/180),M.scale(d,p),M.imageSmoothingEnabled=b,M.imageSmoothingQuality=S,M.drawImage.apply(M,[e].concat(l(ne.map(function(e){return Math.floor(Ve(e))})))),M.restore(),j}var gt=String.fromCharCode;function B(e,t,n){var r=``;n+=t;for(var i=t;i<n;i+=1)r+=gt(e.getUint8(i));return r}var _t=/^data:.*,/;function vt(e){var t=e.replace(_t,``),n=atob(t),r=new ArrayBuffer(n.length),i=new Uint8Array(r);return Re(i,function(e,t){i[t]=n.charCodeAt(t)}),r}function yt(e,t){for(var n=[],r=8192,i=new Uint8Array(e);i.length>0;)n.push(gt.apply(null,Le(i.subarray(0,r)))),i=i.subarray(r);return`data:${t};base64,${btoa(n.join(``))}`}function bt(e){var t=new DataView(e),n;try{var r,i,a;if(t.getUint8(0)===255&&t.getUint8(1)===216)for(var o=t.byteLength,s=2;s+1<o;){if(t.getUint8(s)===255&&t.getUint8(s+1)===225){i=s;break}s+=1}if(i){var c=i+4,l=i+10;if(B(t,c,4)===`Exif`){var u=t.getUint16(l);if(r=u===18761,(r||u===19789)&&t.getUint16(l+2,r)===42){var d=t.getUint32(l+4,r);d>=8&&(a=l+d)}}}if(a){var f=t.getUint16(a,r),p,m;for(m=0;m<f;m+=1)if(p=a+m*12+2,t.getUint16(p,r)===274){p+=8,n=t.getUint16(p,r),t.setUint16(p,1,r);break}}}catch{n=1}return n}function xt(e){var t=0,n=1,r=1;switch(e){case 2:n=-1;break;case 3:t=-180;break;case 4:r=-1;break;case 5:t=90,r=-1;break;case 6:t=90;break;case 7:t=90,n=-1;break;case 8:t=-90;break}return{rotate:t,scaleX:n,scaleY:r}}var St={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var e=this.element,t=this.options,n=this.container,r=this.cropper,i=Number(t.minContainerWidth),a=Number(t.minContainerHeight);Ge(r,P),Ke(e,P);var o={width:Math.max(n.offsetWidth,i>=0?i:we),height:Math.max(n.offsetHeight,a>=0?a:Te)};this.containerData=o,Ue(r,{width:o.width,height:o.height}),Ge(e,P),Ke(r,P)},initCanvas:function(){var e=this.containerData,t=this.imageData,n=this.options.viewMode,r=Math.abs(t.rotate)%180==90,i=r?t.naturalHeight:t.naturalWidth,a=r?t.naturalWidth:t.naturalHeight,o=i/a,s=e.width,c=e.height;e.height*o>e.width?n===3?s=e.height*o:c=e.width/o:n===3?c=e.width/o:s=e.height*o;var l={aspectRatio:o,naturalWidth:i,naturalHeight:a,width:s,height:c};this.canvasData=l,this.limited=n===1||n===2,this.limitCanvas(!0,!0),l.width=Math.min(Math.max(l.width,l.minWidth),l.maxWidth),l.height=Math.min(Math.max(l.height,l.minHeight),l.maxHeight),l.left=(e.width-l.width)/2,l.top=(e.height-l.height)/2,l.oldLeft=l.left,l.oldTop=l.top,this.initialCanvasData=ze({},l)},limitCanvas:function(e,t){var n=this.options,r=this.containerData,i=this.canvasData,a=this.cropBoxData,o=n.viewMode,s=i.aspectRatio,c=this.cropped&&a;if(e){var l=Number(n.minCanvasWidth)||0,u=Number(n.minCanvasHeight)||0;o>1?(l=Math.max(l,r.width),u=Math.max(u,r.height),o===3&&(u*s>l?l=u*s:u=l/s)):o>0&&(l?l=Math.max(l,c?a.width:0):u?u=Math.max(u,c?a.height:0):c&&(l=a.width,u=a.height,u*s>l?l=u*s:u=l/s));var d=pt({aspectRatio:s,width:l,height:u});l=d.width,u=d.height,i.minWidth=l,i.minHeight=u,i.maxWidth=1/0,i.maxHeight=1/0}if(t)if(o>+!c){var f=r.width-i.width,p=r.height-i.height;i.minLeft=Math.min(0,f),i.minTop=Math.min(0,p),i.maxLeft=Math.max(0,f),i.maxTop=Math.max(0,p),c&&this.limited&&(i.minLeft=Math.min(a.left,a.left+(a.width-i.width)),i.minTop=Math.min(a.top,a.top+(a.height-i.height)),i.maxLeft=a.left,i.maxTop=a.top,o===2&&(i.width>=r.width&&(i.minLeft=Math.min(0,f),i.maxLeft=Math.max(0,f)),i.height>=r.height&&(i.minTop=Math.min(0,p),i.maxTop=Math.max(0,p))))}else i.minLeft=-i.width,i.minTop=-i.height,i.maxLeft=r.width,i.maxTop=r.height},renderCanvas:function(e,t){var n=this.canvasData,r=this.imageData;if(t){var i=mt({width:r.naturalWidth*Math.abs(r.scaleX||1),height:r.naturalHeight*Math.abs(r.scaleY||1),degree:r.rotate||0}),a=i.width,o=i.height,s=n.width*(a/n.naturalWidth),c=n.height*(o/n.naturalHeight);n.left-=(s-n.width)/2,n.top-=(c-n.height)/2,n.width=s,n.height=c,n.aspectRatio=a/o,n.naturalWidth=a,n.naturalHeight=o,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCanvas(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,Ue(this.canvas,ze({width:n.width,height:n.height},lt({translateX:n.left,translateY:n.top}))),this.renderImage(e),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(e){var t=this.canvasData,n=this.imageData,r=n.naturalWidth*(t.width/t.naturalWidth),i=n.naturalHeight*(t.height/t.naturalHeight);ze(n,{width:r,height:i,left:(t.width-r)/2,top:(t.height-i)/2}),Ue(this.image,ze({width:n.width,height:n.height},lt(ze({translateX:n.left,translateY:n.top},n)))),e&&this.output()},initCropBox:function(){var e=this.options,t=this.canvasData,n=e.aspectRatio||e.initialAspectRatio,r=Number(e.autoCropArea)||.8,i={width:t.width,height:t.height};n&&(t.height*n>t.width?i.height=i.width/n:i.width=i.height*n),this.cropBoxData=i,this.limitCropBox(!0,!0),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),i.width=Math.max(i.minWidth,i.width*r),i.height=Math.max(i.minHeight,i.height*r),i.left=t.left+(t.width-i.width)/2,i.top=t.top+(t.height-i.height)/2,i.oldLeft=i.left,i.oldTop=i.top,this.initialCropBoxData=ze({},i)},limitCropBox:function(e,t){var n=this.options,r=this.containerData,i=this.canvasData,a=this.cropBoxData,o=this.limited,s=n.aspectRatio;if(e){var c=Number(n.minCropBoxWidth)||0,l=Number(n.minCropBoxHeight)||0,u=o?Math.min(r.width,i.width,i.width+i.left,r.width-i.left):r.width,d=o?Math.min(r.height,i.height,i.height+i.top,r.height-i.top):r.height;c=Math.min(c,r.width),l=Math.min(l,r.height),s&&(c&&l?l*s>c?l=c/s:c=l*s:c?l=c/s:l&&(c=l*s),d*s>u?d=u/s:u=d*s),a.minWidth=Math.min(c,u),a.minHeight=Math.min(l,d),a.maxWidth=u,a.maxHeight=d}t&&(o?(a.minLeft=Math.max(0,i.left),a.minTop=Math.max(0,i.top),a.maxLeft=Math.min(r.width,i.left+i.width)-a.width,a.maxTop=Math.min(r.height,i.top+i.height)-a.height):(a.minLeft=0,a.minTop=0,a.maxLeft=r.width-a.width,a.maxTop=r.height-a.height))},renderCropBox:function(){var e=this.options,t=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCropBox(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,e.movable&&e.cropBoxMovable&&Ze(this.face,R,n.width>=t.width&&n.height>=t.height?S:b),Ue(this.cropBox,ze({width:n.width,height:n.height},lt({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),rt(this.element,ie,this.getData())}},Ct={initPreview:function(){var e=this.element,t=this.crossOrigin,n=this.options.preview,r=t?this.crossOriginUrl:this.url,i=e.alt||`The image to preview`,a=document.createElement(`img`);if(t&&(a.crossOrigin=t),a.src=r,a.alt=i,this.viewBox.appendChild(a),this.viewBoxImage=a,n){var o=n;typeof n==`string`?o=e.ownerDocument.querySelectorAll(n):n.querySelector&&(o=[n]),this.previews=o,Re(o,function(e){var n=document.createElement(`img`);Ze(e,te,{width:e.offsetWidth,height:e.offsetHeight,html:e.innerHTML}),t&&(n.crossOrigin=t),n.src=r,n.alt=i,n.style.cssText=`display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"`,e.innerHTML=``,e.appendChild(n)})}},resetPreview:function(){Re(this.previews,function(e){var t=Xe(e,te);Ue(e,{width:t.width,height:t.height}),e.innerHTML=t.html,Qe(e,te)})},preview:function(){var e=this.imageData,t=this.canvasData,n=this.cropBoxData,r=n.width,i=n.height,a=e.width,o=e.height,s=n.left-t.left-e.left,c=n.top-t.top-e.top;!this.cropped||this.disabled||(Ue(this.viewBoxImage,ze({width:a,height:o},lt(ze({translateX:-s,translateY:-c},e)))),Re(this.previews,function(t){var n=Xe(t,te),l=n.width,u=n.height,d=l,f=u,p=1;r&&(p=l/r,f=i*p),i&&f>u&&(p=u/i,d=r*p,f=u),Ue(t,{width:d,height:f}),Ue(t.getElementsByTagName(`img`)[0],ze({width:a*p,height:o*p},lt(ze({translateX:-s*p,translateY:-c*p},e))))}))}},wt={bind:function(){var e=this.element,t=this.options,n=this.cropper;Fe(t.cropstart)&&nt(e,se,t.cropstart),Fe(t.cropmove)&&nt(e,oe,t.cropmove),Fe(t.cropend)&&nt(e,ae,t.cropend),Fe(t.crop)&&nt(e,ie,t.crop),Fe(t.zoom)&&nt(e,ve,t.zoom),nt(n,fe,this.onCropStart=this.cropStart.bind(this)),t.zoomable&&t.zoomOnWheel&&nt(n,_e,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&nt(n,ce,this.onDblclick=this.dblclick.bind(this)),nt(e.ownerDocument,pe,this.onCropMove=this.cropMove.bind(this)),nt(e.ownerDocument,me,this.onCropEnd=this.cropEnd.bind(this)),t.responsive&&nt(window,ge,this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,t=this.options,n=this.cropper;Fe(t.cropstart)&&tt(e,se,t.cropstart),Fe(t.cropmove)&&tt(e,oe,t.cropmove),Fe(t.cropend)&&tt(e,ae,t.cropend),Fe(t.crop)&&tt(e,ie,t.crop),Fe(t.zoom)&&tt(e,ve,t.zoom),tt(n,fe,this.onCropStart),t.zoomable&&t.zoomOnWheel&&tt(n,_e,this.onWheel,{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&tt(n,ce,this.onDblclick),tt(e.ownerDocument,pe,this.onCropMove),tt(e.ownerDocument,me,this.onCropEnd),t.responsive&&tt(window,ge,this.onResize)}},Tt={resize:function(){if(!this.disabled){var e=this.options,t=this.container,n=this.containerData,r=t.offsetWidth/n.width,i=t.offsetHeight/n.height,a=Math.abs(r-1)>Math.abs(i-1)?r:i;if(a!==1){var o,s;e.restore&&(o=this.getCanvasData(),s=this.getCropBoxData()),this.render(),e.restore&&(this.setCanvasData(Re(o,function(e,t){o[t]=e*a})),this.setCropBoxData(Re(s,function(e,t){s[t]=e*a})))}}},dblclick:function(){this.disabled||this.options.dragMode===z||this.setDragMode(We(this.dragBox,M)?re:ne)},wheel:function(e){var t=this,n=Number(this.options.wheelZoomRatio)||.1,r=1;this.disabled||(e.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){t.wheeling=!1},50),e.deltaY?r=e.deltaY>0?1:-1:e.wheelDelta?r=-e.wheelDelta/120:e.detail&&(r=e.detail>0?1:-1),this.zoom(-r*n,e)))},cropStart:function(e){var t=e.buttons,n=e.button;if(!(this.disabled||(e.type===`mousedown`||e.type===`pointerdown`&&e.pointerType===`mouse`)&&(ke(t)&&t!==1||ke(n)&&n!==0||e.ctrlKey))){var r=this.options,i=this.pointers,a;e.changedTouches?Re(e.changedTouches,function(e){i[e.identifier]=dt(e)}):i[e.pointerId||0]=dt(e),a=Object.keys(i).length>1&&r.zoomable&&r.zoomOnTouch?C:Xe(e.target,R),be.test(a)&&rt(this.element,se,{originalEvent:e,action:a})!==!1&&(e.preventDefault(),this.action=a,this.cropping=!1,a===x&&(this.cropping=!0,Ge(this.dragBox,L)))}},cropMove:function(e){var t=this.action;if(!(this.disabled||!t)){var n=this.pointers;e.preventDefault(),rt(this.element,oe,{originalEvent:e,action:t})!==!1&&(e.changedTouches?Re(e.changedTouches,function(e){ze(n[e.identifier]||{},dt(e,!0))}):ze(n[e.pointerId||0]||{},dt(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var t=this.action,n=this.pointers;e.changedTouches?Re(e.changedTouches,function(e){delete n[e.identifier]}):delete n[e.pointerId||0],t&&(e.preventDefault(),Object.keys(n).length||(this.action=``),this.cropping&&(this.cropping=!1,qe(this.dragBox,L,this.cropped&&this.options.modal)),rt(this.element,ae,{originalEvent:e,action:t}))}}},Et={change:function(e){var t=this.options,n=this.canvasData,r=this.containerData,i=this.cropBoxData,a=this.pointers,o=this.action,s=t.aspectRatio,c=i.left,l=i.top,u=i.width,d=i.height,f=c+u,p=l+d,m=0,h=0,g=r.width,_=r.height,v=!0,y;!s&&e.shiftKey&&(s=u&&d?u/d:1),this.limited&&(m=i.minLeft,h=i.minTop,g=m+Math.min(r.width,n.width,n.left+n.width),_=h+Math.min(r.height,n.height,n.top+n.height));var M=a[Object.keys(a)[0]],N={x:M.endX-M.startX,y:M.endY-M.startY},F=function(e){switch(e){case w:f+N.x>g&&(N.x=g-f);break;case T:c+N.x<m&&(N.x=m-c);break;case D:l+N.y<h&&(N.y=h-l);break;case E:p+N.y>_&&(N.y=_-p);break}};switch(o){case b:c+=N.x,l+=N.y;break;case w:if(N.x>=0&&(f>=g||s&&(l<=h||p>=_))){v=!1;break}F(w),u+=N.x,u<0&&(o=T,u=-u,c-=u),s&&(d=u/s,l+=(i.height-d)/2);break;case D:if(N.y<=0&&(l<=h||s&&(c<=m||f>=g))){v=!1;break}F(D),d-=N.y,l+=N.y,d<0&&(o=E,d=-d,l-=d),s&&(u=d*s,c+=(i.width-u)/2);break;case T:if(N.x<=0&&(c<=m||s&&(l<=h||p>=_))){v=!1;break}F(T),u-=N.x,c+=N.x,u<0&&(o=w,u=-u,c-=u),s&&(d=u/s,l+=(i.height-d)/2);break;case E:if(N.y>=0&&(p>=_||s&&(c<=m||f>=g))){v=!1;break}F(E),d+=N.y,d<0&&(o=D,d=-d,l-=d),s&&(u=d*s,c+=(i.width-u)/2);break;case O:if(s){if(N.y<=0&&(l<=h||f>=g)){v=!1;break}F(D),d-=N.y,l+=N.y,u=d*s}else F(D),F(w),N.x>=0?f<g?u+=N.x:N.y<=0&&l<=h&&(v=!1):u+=N.x,N.y<=0?l>h&&(d-=N.y,l+=N.y):(d-=N.y,l+=N.y);u<0&&d<0?(o=j,d=-d,u=-u,l-=d,c-=u):u<0?(o=k,u=-u,c-=u):d<0&&(o=A,d=-d,l-=d);break;case k:if(s){if(N.y<=0&&(l<=h||c<=m)){v=!1;break}F(D),d-=N.y,l+=N.y,u=d*s,c+=i.width-u}else F(D),F(T),N.x<=0?c>m?(u-=N.x,c+=N.x):N.y<=0&&l<=h&&(v=!1):(u-=N.x,c+=N.x),N.y<=0?l>h&&(d-=N.y,l+=N.y):(d-=N.y,l+=N.y);u<0&&d<0?(o=A,d=-d,u=-u,l-=d,c-=u):u<0?(o=O,u=-u,c-=u):d<0&&(o=j,d=-d,l-=d);break;case j:if(s){if(N.x<=0&&(c<=m||p>=_)){v=!1;break}F(T),u-=N.x,c+=N.x,d=u/s}else F(E),F(T),N.x<=0?c>m?(u-=N.x,c+=N.x):N.y>=0&&p>=_&&(v=!1):(u-=N.x,c+=N.x),N.y>=0?p<_&&(d+=N.y):d+=N.y;u<0&&d<0?(o=O,d=-d,u=-u,l-=d,c-=u):u<0?(o=A,u=-u,c-=u):d<0&&(o=k,d=-d,l-=d);break;case A:if(s){if(N.x>=0&&(f>=g||p>=_)){v=!1;break}F(w),u+=N.x,d=u/s}else F(E),F(w),N.x>=0?f<g?u+=N.x:N.y>=0&&p>=_&&(v=!1):u+=N.x,N.y>=0?p<_&&(d+=N.y):d+=N.y;u<0&&d<0?(o=k,d=-d,u=-u,l-=d,c-=u):u<0?(o=j,u=-u,c-=u):d<0&&(o=O,d=-d,l-=d);break;case S:this.move(N.x,N.y),v=!1;break;case C:this.zoom(ut(a),e),v=!1;break;case x:if(!N.x||!N.y){v=!1;break}y=it(this.cropper),c=M.startX-y.left,l=M.startY-y.top,u=i.minWidth,d=i.minHeight,N.x>0?o=N.y>0?A:O:N.x<0&&(c-=u,o=N.y>0?j:k),N.y<0&&(l-=d),this.cropped||(Ke(this.cropBox,P),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}v&&(i.width=u,i.height=d,i.left=c,i.top=l,this.action=o,this.renderCropBox()),Re(a,function(e){e.startX=e.endX,e.startY=e.endY})}},Dt={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&Ge(this.dragBox,L),Ke(this.cropBox,P),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=ze({},this.initialImageData),this.canvasData=ze({},this.initialCanvasData),this.cropBoxData=ze({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(ze(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),Ke(this.dragBox,L),Ge(this.cropBox,P)),this},replace:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&e&&(this.isImg&&(this.element.src=e),t?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,Re(this.previews,function(t){t.getElementsByTagName(`img`)[0].src=e}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(e))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,Ke(this.cropper,N)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,Ge(this.cropper,N)),this},destroy:function(){var e=this.element;return e[y]?(e[y]=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.canvasData,r=n.left,i=n.top;return this.moveTo(je(e)?e:r+Number(e),je(t)?t:i+Number(t))},moveTo:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.canvasData,r=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.movable&&(ke(e)&&(n.left=e,r=!0),ke(t)&&(n.top=t,r=!0),r&&this.renderCanvas(!0)),this},zoom:function(e,t){var n=this.canvasData;return e=Number(e),e=e<0?1/(1-e):1+e,this.zoomTo(n.width*e/n.naturalWidth,null,t)},zoomTo:function(e,t,n){var r=this.options,i=this.canvasData,a=i.width,o=i.height,s=i.naturalWidth,c=i.naturalHeight;if(e=Number(e),e>=0&&this.ready&&!this.disabled&&r.zoomable){var l=s*e,u=c*e;if(rt(this.element,ve,{ratio:e,oldRatio:a/s,originalEvent:n})===!1)return this;if(n){var d=this.pointers,f=it(this.cropper),p=d&&Object.keys(d).length?ft(d):{pageX:n.pageX,pageY:n.pageY};i.left-=(l-a)*((p.pageX-f.left-i.left)/a),i.top-=(u-o)*((p.pageY-f.top-i.top)/o)}else Pe(t)&&ke(t.x)&&ke(t.y)?(i.left-=(l-a)*((t.x-i.left)/a),i.top-=(u-o)*((t.y-i.top)/o)):(i.left-=(l-a)/2,i.top-=(u-o)/2);i.width=l,i.height=u,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return e=Number(e),ke(e)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var t=this.imageData.scaleY;return this.scale(e,ke(t)?t:1)},scaleY:function(e){var t=this.imageData.scaleX;return this.scale(ke(t)?t:1,e)},scale:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=this.imageData,r=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.scalable&&(ke(e)&&(n.scaleX=e,r=!0),ke(t)&&(n.scaleY=t,r=!0),r&&this.renderCanvas(!0,!0)),this},getData:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=this.options,n=this.imageData,r=this.canvasData,i=this.cropBoxData,a;if(this.ready&&this.cropped){a={x:i.left-r.left,y:i.top-r.top,width:i.width,height:i.height};var o=n.width/n.naturalWidth;if(Re(a,function(e,t){a[t]=e/o}),e){var s=Math.round(a.y+a.height),c=Math.round(a.x+a.width);a.x=Math.round(a.x),a.y=Math.round(a.y),a.width=c-a.x,a.height=s-a.y}}else a={x:0,y:0,width:0,height:0};return t.rotatable&&(a.rotate=n.rotate||0),t.scalable&&(a.scaleX=n.scaleX||1,a.scaleY=n.scaleY||1),a},setData:function(e){var t=this.options,n=this.imageData,r=this.canvasData,i={};if(this.ready&&!this.disabled&&Pe(e)){var a=!1;t.rotatable&&ke(e.rotate)&&e.rotate!==n.rotate&&(n.rotate=e.rotate,a=!0),t.scalable&&(ke(e.scaleX)&&e.scaleX!==n.scaleX&&(n.scaleX=e.scaleX,a=!0),ke(e.scaleY)&&e.scaleY!==n.scaleY&&(n.scaleY=e.scaleY,a=!0)),a&&this.renderCanvas(!0,!0);var o=n.width/n.naturalWidth;ke(e.x)&&(i.left=e.x*o+r.left),ke(e.y)&&(i.top=e.y*o+r.top),ke(e.width)&&(i.width=e.width*o),ke(e.height)&&(i.height=e.height*o),this.setCropBoxData(i)}return this},getContainerData:function(){return this.ready?ze({},this.containerData):{}},getImageData:function(){return this.sized?ze({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,t={};return this.ready&&Re([`left`,`top`,`width`,`height`,`naturalWidth`,`naturalHeight`],function(n){t[n]=e[n]}),t},setCanvasData:function(e){var t=this.canvasData,n=t.aspectRatio;return this.ready&&!this.disabled&&Pe(e)&&(ke(e.left)&&(t.left=e.left),ke(e.top)&&(t.top=e.top),ke(e.width)?(t.width=e.width,t.height=e.width/n):ke(e.height)&&(t.height=e.height,t.width=e.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var e=this.cropBoxData,t;return this.ready&&this.cropped&&(t={left:e.left,top:e.top,width:e.width,height:e.height}),t||{}},setCropBoxData:function(e){var t=this.cropBoxData,n=this.options.aspectRatio,r,i;return this.ready&&this.cropped&&!this.disabled&&Pe(e)&&(ke(e.left)&&(t.left=e.left),ke(e.top)&&(t.top=e.top),ke(e.width)&&e.width!==t.width&&(r=!0,t.width=e.width),ke(e.height)&&e.height!==t.height&&(i=!0,t.height=e.height),n&&(r?t.height=t.width/n:i&&(t.width=t.height*n)),this.renderCropBox()),this},getCroppedCanvas:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var t=this.canvasData,n=ht(this.image,this.imageData,t,e);if(!this.cropped)return n;var r=this.getData(e.rounded),i=r.x,a=r.y,o=r.width,s=r.height,c=n.width/Math.floor(t.naturalWidth);c!==1&&(i*=c,a*=c,o*=c,s*=c);var u=o/s,d=pt({aspectRatio:u,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),f=pt({aspectRatio:u,width:e.minWidth||0,height:e.minHeight||0},`cover`),p=pt({aspectRatio:u,width:e.width||(c===1?o:n.width),height:e.height||(c===1?s:n.height)}),m=p.width,h=p.height;m=Math.min(d.width,Math.max(f.width,m)),h=Math.min(d.height,Math.max(f.height,h));var g=document.createElement(`canvas`),_=g.getContext(`2d`);g.width=Ve(m),g.height=Ve(h),_.fillStyle=e.fillColor||`transparent`,_.fillRect(0,0,m,h);var v=e.imageSmoothingEnabled,y=v===void 0?!0:v,b=e.imageSmoothingQuality;_.imageSmoothingEnabled=y,b&&(_.imageSmoothingQuality=b);var x=n.width,S=n.height,C=i,w=a,T,E,D,O,k,A;C<=-o||C>x?(C=0,T=0,D=0,k=0):C<=0?(D=-C,C=0,T=Math.min(x,o+C),k=T):C<=x&&(D=0,T=Math.min(o,x-C),k=T),T<=0||w<=-s||w>S?(w=0,E=0,O=0,A=0):w<=0?(O=-w,w=0,E=Math.min(S,s+w),A=E):w<=S&&(O=0,E=Math.min(s,S-w),A=E);var j=[C,w,T,E];if(k>0&&A>0){var M=m/o;j.push(D*M,O*M,k*M,A*M)}return _.drawImage.apply(_,[n].concat(l(j.map(function(e){return Math.floor(Ve(e))})))),g},setAspectRatio:function(e){var t=this.options;return!this.disabled&&!je(e)&&(t.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var t=this.options,n=this.dragBox,r=this.face;if(this.ready&&!this.disabled){var i=e===ne,a=t.movable&&e===re;e=i||a?e:z,t.dragMode=e,Ze(n,R,e),qe(n,M,i),qe(n,ee,a),t.cropBoxMovable||(Ze(r,R,e),qe(r,M,i),qe(r,ee,a))}return this}},Ot=g.Cropper,kt=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a(this,e),!t||!Ce.test(t.tagName))throw Error(`The first argument is required and must be an <img> or <canvas> element.`);this.element=t,this.options=ze({},Ee,Pe(n)&&n),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return s(e,[{key:`init`,value:function(){var e=this.element,t=e.tagName.toLowerCase(),n;if(!e[y]){if(e[y]=this,t===`img`){if(this.isImg=!0,n=e.getAttribute(`src`)||``,this.originalUrl=n,!n)return;n=e.src}else t===`canvas`&&window.HTMLCanvasElement&&(n=e.toDataURL());this.load(n)}}},{key:`load`,value:function(e){var t=this;if(e){this.url=e,this.imageData={};var n=this.element,r=this.options;if(!r.rotatable&&!r.scalable&&(r.checkOrientation=!1),!r.checkOrientation||!window.ArrayBuffer){this.clone();return}if(xe.test(e)){Se.test(e)?this.read(vt(e)):this.clone();return}var i=new XMLHttpRequest,a=this.clone.bind(this);this.reloading=!0,this.xhr=i,i.onabort=a,i.onerror=a,i.ontimeout=a,i.onprogress=function(){i.getResponseHeader(`content-type`)!==ye&&i.abort()},i.onload=function(){t.read(i.response)},i.onloadend=function(){t.reloading=!1,t.xhr=null},r.checkCrossOrigin&&st(e)&&n.crossOrigin&&(e=ct(e)),i.open(`GET`,e,!0),i.responseType=`arraybuffer`,i.withCredentials=n.crossOrigin===`use-credentials`,i.send()}}},{key:`read`,value:function(e){var t=this.options,n=this.imageData,r=bt(e),i=0,a=1,o=1;if(r>1){this.url=yt(e,ye);var s=xt(r);i=s.rotate,a=s.scaleX,o=s.scaleY}t.rotatable&&(n.rotate=i),t.scalable&&(n.scaleX=a,n.scaleY=o),this.clone()}},{key:`clone`,value:function(){var e=this.element,t=this.url,n=e.crossOrigin,r=t;this.options.checkCrossOrigin&&st(t)&&(n||=`anonymous`,r=ct(t)),this.crossOrigin=n,this.crossOriginUrl=r;var i=document.createElement(`img`);n&&(i.crossOrigin=n),i.src=r||t,i.alt=e.alt||`The image to crop`,this.image=i,i.onload=this.start.bind(this),i.onerror=this.stop.bind(this),Ge(i,F),e.parentNode.insertBefore(i,e.nextSibling)}},{key:`start`,value:function(){var e=this,t=this.image;t.onload=null,t.onerror=null,this.sizing=!0;var n=g.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(g.navigator.userAgent),r=function(t,n){ze(e.imageData,{naturalWidth:t,naturalHeight:n,aspectRatio:t/n}),e.initialImageData=ze({},e.imageData),e.sizing=!1,e.sized=!0,e.build()};if(t.naturalWidth&&!n){r(t.naturalWidth,t.naturalHeight);return}var i=document.createElement(`img`),a=document.body||document.documentElement;this.sizingImage=i,i.onload=function(){r(i.width,i.height),n||a.removeChild(i)},i.src=t.src,n||(i.style.cssText=`left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;`,a.appendChild(i))}},{key:`stop`,value:function(){var e=this.image;e.onload=null,e.onerror=null,e.parentNode.removeChild(e),this.image=null}},{key:`build`,value:function(){if(!(!this.sized||this.ready)){var e=this.element,t=this.options,n=this.image,r=e.parentNode,i=document.createElement(`div`);i.innerHTML=De;var a=i.querySelector(`.${y}-container`),o=a.querySelector(`.${y}-canvas`),s=a.querySelector(`.${y}-drag-box`),c=a.querySelector(`.${y}-crop-box`),l=c.querySelector(`.${y}-face`);this.container=r,this.cropper=a,this.canvas=o,this.dragBox=s,this.cropBox=c,this.viewBox=a.querySelector(`.${y}-view-box`),this.face=l,o.appendChild(n),Ge(e,P),r.insertBefore(a,e.nextSibling),Ke(n,F),this.initPreview(),this.bind(),t.initialAspectRatio=Math.max(0,t.initialAspectRatio)||NaN,t.aspectRatio=Math.max(0,t.aspectRatio)||NaN,t.viewMode=Math.max(0,Math.min(3,Math.round(t.viewMode)))||0,Ge(c,P),t.guides||Ge(c.getElementsByClassName(`${y}-dashed`),P),t.center||Ge(c.getElementsByClassName(`${y}-center`),P),t.background&&Ge(a,`${y}-bg`),t.highlight||Ge(l,I),t.cropBoxMovable&&(Ge(l,ee),Ze(l,R,b)),t.cropBoxResizable||(Ge(c.getElementsByClassName(`${y}-line`),P),Ge(c.getElementsByClassName(`${y}-point`),P)),this.render(),this.ready=!0,this.setDragMode(t.dragMode),t.autoCrop&&this.crop(),this.setData(t.data),Fe(t.ready)&&nt(e,he,t.ready,{once:!0}),rt(e,he)}}},{key:`unbuild`,value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var e=this.cropper.parentNode;e&&e.removeChild(this.cropper),Ke(this.element,P)}}},{key:`uncreate`,value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:`noConflict`,value:function(){return window.Cropper=Ot,e}},{key:`setDefaults`,value:function(e){ze(Ee,Pe(e)&&e)}}])}();return ze(kt.prototype,St,Ct,wt,Tt,Et,Dt),kt}))}))()),aq=function(){return aq=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},aq.apply(this,arguments)};function oq(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}var sq=`aspectRatio.autoCrop.autoCropArea.background.center.checkCrossOrigin.checkOrientation.cropBoxMovable.cropBoxResizable.data.dragMode.guides.highlight.initialAspectRatio.minCanvasHeight.minCanvasWidth.minContainerHeight.minContainerWidth.minCropBoxHeight.minCropBoxWidth.modal.movable.preview.responsive.restore.rotatable.scalable.toggleDragModeOnDblclick.viewMode.wheelZoomRatio.zoomOnTouch.zoomOnWheel.zoomable.cropstart.cropmove.cropend.crop.zoom.ready`.split(`.`),cq={opacity:0,maxWidth:`100%`};B.forwardRef((function(e,t){var n=oq(e,[]),r=n.dragMode,i=r===void 0?`crop`:r,a=n.src,o=n.style,s=n.className,c=n.crossOrigin,l=n.scaleX,u=n.scaleY,d=n.enable,f=n.zoomTo,p=n.rotateTo,m=n.alt,h=m===void 0?`picture`:m,g=n.ready,_=n.onInitialized,v=oq(n,[`dragMode`,`src`,`style`,`className`,`crossOrigin`,`scaleX`,`scaleY`,`enable`,`zoomTo`,`rotateTo`,`alt`,`ready`,`onInitialized`]),y={scaleY:u,scaleX:l,enable:d,zoomTo:f,rotateTo:p},b=function(){var e=[...arguments],t=(0,B.useRef)(null);return B.useEffect((function(){e.forEach((function(e){e&&(typeof e==`function`?e(t.current):e.current=t.current)}))}),[e]),t}(t,(0,B.useRef)(null));(0,B.useEffect)((function(){var e;(e=b.current)!=null&&e.cropper&&typeof f==`number`&&b.current.cropper.zoomTo(f)}),[n.zoomTo]),(0,B.useEffect)((function(){var e;(e=b.current)!=null&&e.cropper&&a!==void 0&&b.current.cropper.reset().clear().replace(a)}),[a]),(0,B.useEffect)((function(){if(b.current!==null){var e=new iq.default(b.current,aq(aq({dragMode:i},v),{ready:function(e){e.currentTarget!==null&&function(e,t){t===void 0&&(t={});var n=t.enable,r=n===void 0||n,i=t.scaleX,a=i===void 0?1:i,o=t.scaleY,s=o===void 0?1:o,c=t.zoomTo,l=c===void 0?0:c,u=t.rotateTo;r?e.enable():e.disable(),e.scaleX(a),e.scaleY(s),u!==void 0&&e.rotateTo(u),l>0&&e.zoomTo(l)}(e.currentTarget.cropper,y),g&&g(e)}}));_&&_(e)}return function(){var e;(e=b.current?.cropper)==null||e.destroy()}}),[b]);var x=function(e){return sq.reduce((function(e,t){var n=e,r=t;return n[r],oq(n,[typeof r==`symbol`?r:r+``])}),e)}(aq(aq({},v),{crossOrigin:c,src:a,alt:h}));return B.createElement(`div`,{style:o,className:s},B.createElement(`img`,aq({},x,{style:cq,ref:b})))})),{seconds:`seconds`,minutes:`minutes`}.minutes,B.Component,B.Component,B.Component,B.Component,B.Component;var lq=e=>{let t=vA.t(e.labelKey),n=e.helpKey?vA.t(e.helpKey):``;return e.type===`checkbox`?(0,V.jsxs)(aw,{sx:{display:`block`,mb:1},children:[(0,V.jsx)(dw,{control:(0,V.jsx)(zS,{checked:!!e.value,onChange:t=>e.onChange(t.target.checked)}),label:t}),n&&(0,V.jsx)(_w,{sx:{ml:4,mt:-.5},children:n})]}):e.type===`select`?(0,V.jsxs)(aw,{size:`small`,fullWidth:!0,sx:{mb:2},children:[(0,V.jsx)($w,{children:t}),(0,V.jsx)(nD,{value:e.value??``,label:t,onChange:t=>e.onChange(t.target.value),children:e.options.map(e=>(0,V.jsx)(bE,{value:e.value,children:vA.t(e.labelKey)},e.value))}),n&&(0,V.jsx)(_w,{children:n})]}):e.type===`number`?(0,V.jsx)(ZO,{label:t,type:`number`,value:e.value??``,size:`small`,fullWidth:!0,sx:{mb:2},inputProps:{min:e.min,max:e.max},onChange:t=>{let n=parseFloat(t.target.value);isNaN(n)||e.onChange(n)},helperText:n||` `}):(0,V.jsx)(ZO,{label:t,type:e.type===`password`?`password`:`text`,value:e.value??``,size:`small`,fullWidth:!0,sx:{mb:2},onChange:t=>e.onChange(t.target.value),helperText:n||` `})},uq=({textKey:e})=>(0,V.jsx)(Kv,{variant:`h6`,sx:{mt:2,mb:1,borderBottom:`1px solid`,borderColor:`divider`,pb:.5},children:vA.t(e)}),dq=({labelKey:e,helpKey:t,value:n,onChange:r})=>(0,V.jsxs)($x,{sx:{mb:2},children:[(0,V.jsx)(Kv,{variant:`caption`,display:`block`,sx:{mb:.5},children:vA.t(e)}),(0,V.jsxs)($x,{sx:{display:`flex`,alignItems:`center`,gap:1},children:[(0,V.jsx)(`input`,{type:`color`,value:n||`#888888`,onChange:e=>r(e.target.value),style:{width:48,height:32,cursor:`pointer`,border:`none`}}),(0,V.jsx)(ZO,{value:n??``,size:`small`,sx:{flex:1},onChange:e=>r(e.target.value),placeholder:`rgba(...) or #hex`})]}),t&&(0,V.jsx)(_w,{children:vA.t(t)})]}),fq=({native:e,onChange:t})=>(0,V.jsxs)(X,{container:!0,spacing:2,children:[(0,V.jsx)(X,{item:!0,xs:12,sm:12,md:6,lg:4,children:(0,V.jsx)(lq,{type:`text`,labelKey:`cfgIp`,value:e.ip??``,onChange:e=>t(`ip`,e)})}),(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:4,lg:3,children:(0,V.jsx)(lq,{type:`number`,labelKey:`cfgPort`,value:e.port??8090,min:1,max:65535,onChange:e=>t(`port`,e)})}),(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:4,lg:3,children:(0,V.jsx)(lq,{type:`text`,labelKey:`cfgUser`,value:e.user??``,onChange:e=>t(`user`,e)})}),(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:4,lg:3,children:(0,V.jsx)(lq,{type:`password`,labelKey:`cfgPass`,value:e.pass??``,onChange:e=>t(`pass`,e)})}),(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:4,lg:3,children:(0,V.jsx)(lq,{type:`number`,labelKey:`cfgPollSeconds`,helpKey:`cfgPollSeconds`,value:e.pollSeconds??30,min:5,max:3600,onChange:e=>t(`pollSeconds`,e)})}),(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:4,lg:3,children:(0,V.jsx)(lq,{type:`number`,labelKey:`cfgHttpTimeoutMs`,value:e.httpTimeoutMs??8e3,min:1e3,max:3e4,onChange:e=>t(`httpTimeoutMs`,e)})})]}),pq=({native:e,onChange:t})=>(0,V.jsxs)(`div`,{children:[(0,V.jsx)(uq,{textKey:`hdrControls`}),(0,V.jsxs)(X,{container:!0,spacing:1,children:[(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:4,children:(0,V.jsx)(lq,{type:`checkbox`,labelKey:`cfgEnableSystemControls`,helpKey:`cfgEnableSystemControls_tt`,value:e.enableSystemControls,onChange:e=>t(`enableSystemControls`,e)})}),(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:4,children:(0,V.jsx)(lq,{type:`checkbox`,labelKey:`cfgEnablePtz`,helpKey:`cfgEnablePtz_tt`,value:e.enablePtz,onChange:e=>t(`enablePtz`,e)})}),(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:4,children:(0,V.jsx)(lq,{type:`checkbox`,labelKey:`cfgEnableUrls`,helpKey:`cfgEnableUrls_tt`,value:e.enableUrls,onChange:e=>t(`enableUrls`,e)})}),(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:4,children:(0,V.jsx)(lq,{type:`checkbox`,labelKey:`cfgEnableSnapshotB64`,helpKey:`cfgEnableSnapshotB64_tt`,value:e.enableSnapshotB64,onChange:e=>t(`enableSnapshotB64`,e)})})]}),(0,V.jsx)(uq,{textKey:`hdrEvents`}),(0,V.jsxs)(X,{container:!0,spacing:1,children:[(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:4,children:(0,V.jsx)(lq,{type:`checkbox`,labelKey:`cfgEnableEventDps`,helpKey:`cfgEnableEventDps_tt`,value:e.enableEventDps,onChange:e=>t(`enableEventDps`,e)})}),(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:4,children:(0,V.jsx)(lq,{type:`checkbox`,labelKey:`cfgEnablePush`,helpKey:`cfgEnablePush_tt`,value:e.enablePush,onChange:e=>t(`enablePush`,e)})})]}),(0,V.jsx)(uq,{textKey:`hdrDisplay`}),(0,V.jsx)(X,{container:!0,spacing:1,children:(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:4,children:(0,V.jsx)(lq,{type:`checkbox`,labelKey:`cfgEnableOverview`,helpKey:`cfgEnableOverview_tt`,value:e.enableOverview,onChange:e=>t(`enableOverview`,e)})})}),(0,V.jsx)(uq,{textKey:`hdrProxy`}),(0,V.jsx)(X,{container:!0,spacing:1,children:(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:4,children:(0,V.jsx)(lq,{type:`checkbox`,labelKey:`cfgEnableStreamProxy`,helpKey:`cfgEnableStreamProxy_tt`,value:e.enableStreamProxy,onChange:e=>t(`enableStreamProxy`,e)})})}),(0,V.jsx)(uq,{textKey:`hdrDebug`}),(0,V.jsx)(X,{container:!0,spacing:1,children:(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:4,children:(0,V.jsx)(lq,{type:`checkbox`,labelKey:`cfgStoreRawJson`,helpKey:`cfgStoreRawJson_tt`,value:e.storeRawJson,onChange:e=>t(`storeRawJson`,e)})})})]}),mq=({native:e,onChange:t})=>(0,V.jsxs)(`div`,{children:[(0,V.jsx)(uq,{textKey:`hdrWidgetGeneral`}),(0,V.jsxs)(X,{container:!0,spacing:2,children:[(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:4,children:(0,V.jsx)(lq,{type:`checkbox`,labelKey:`cfgEnableWidget`,helpKey:`cfgEnableWidget_tt`,value:e.enableWidget,onChange:e=>t(`enableWidget`,e)})}),(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:6,lg:5,children:(0,V.jsx)(lq,{type:`select`,labelKey:`cfgWidgetMode`,helpKey:`cfgWidgetMode_tt`,value:e.widgetMode??`nojs`,onChange:e=>t(`widgetMode`,e),options:[{value:`nojs`,labelKey:`cfgWidgetModeNojs`},{value:`js`,labelKey:`cfgWidgetModeJs`}]})})]}),(0,V.jsx)(uq,{textKey:`hdrWidgetLayout`}),(0,V.jsxs)(X,{container:!0,spacing:2,children:[(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:4,lg:3,children:(0,V.jsx)(lq,{type:`number`,labelKey:`cfgWidgetAnzahl`,helpKey:`cfgWidgetAnzahl_tt`,value:e.widgetAnzahl??20,min:1,max:500,onChange:e=>t(`widgetAnzahl`,e)})}),(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:4,lg:3,children:(0,V.jsx)(lq,{type:`number`,labelKey:`cfgWidgetMinCol`,helpKey:`cfgWidgetMinCol_tt`,value:e.widgetMinCol??150,min:80,max:600,onChange:e=>t(`widgetMinCol`,e)})}),(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:4,lg:3,children:(0,V.jsx)(lq,{type:`number`,labelKey:`cfgWidgetMaxModalWidth`,helpKey:`cfgWidgetMaxModalWidth_tt`,value:e.widgetMaxModalWidth??900,min:300,max:2e3,onChange:e=>t(`widgetMaxModalWidth`,e)})})]}),(0,V.jsx)(uq,{textKey:`hdrWidgetTags`}),(0,V.jsxs)(X,{container:!0,spacing:2,children:[(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:4,children:(0,V.jsx)(lq,{type:`checkbox`,labelKey:`cfgWidgetShowTags`,helpKey:`cfgWidgetShowTags_tt`,value:e.widgetShowTags,onChange:e=>t(`widgetShowTags`,e)})}),(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:4,children:(0,V.jsx)(lq,{type:`select`,labelKey:`cfgWidgetTagPosition`,helpKey:`cfgWidgetTagPosition_tt`,value:e.widgetTagPosition??`bottom-left`,onChange:e=>t(`widgetTagPosition`,e),options:[{value:`top-left`,labelKey:`cfgTagPosTopLeft`},{value:`top-right`,labelKey:`cfgTagPosTopRight`},{value:`bottom-left`,labelKey:`cfgTagPosBotLeft`},{value:`bottom-right`,labelKey:`cfgTagPosBotRight`}]})})]}),(0,V.jsx)(uq,{textKey:`hdrWidgetFilter`}),(0,V.jsxs)(X,{container:!0,spacing:2,children:[(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:4,children:(0,V.jsx)(lq,{type:`checkbox`,labelKey:`cfgWidgetSortNewest`,helpKey:`cfgWidgetSortNewest_tt`,value:e.widgetSortNewest!==!1,onChange:e=>t(`widgetSortNewest`,e)})}),(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:4,children:(0,V.jsx)(lq,{type:`checkbox`,labelKey:`cfgWidgetShowSearch`,helpKey:`cfgWidgetShowSearch_tt`,value:e.widgetShowSearch,onChange:e=>t(`widgetShowSearch`,e)})}),(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:4,children:(0,V.jsx)(lq,{type:`checkbox`,labelKey:`cfgWidgetCompact`,helpKey:`cfgWidgetCompact_tt`,value:e.widgetCompact,onChange:e=>t(`widgetCompact`,e)})}),(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:4,lg:3,children:(0,V.jsx)(lq,{type:`text`,labelKey:`cfgWidgetDefaultTag`,helpKey:`cfgWidgetDefaultTag_tt`,value:e.widgetDefaultTag??``,onChange:e=>t(`widgetDefaultTag`,e)})}),(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:4,lg:3,children:(0,V.jsx)(lq,{type:`select`,labelKey:`cfgWidgetThumbSize`,helpKey:`cfgWidgetThumbSize_tt`,value:e.widgetThumbSize??`medium`,onChange:e=>t(`widgetThumbSize`,e),options:[{value:`small`,labelKey:`cfgWidgetThumbSmall`},{value:`medium`,labelKey:`cfgWidgetThumbMedium`},{value:`large`,labelKey:`cfgWidgetThumbLarge`}]})})]}),(0,V.jsx)(uq,{textKey:`hdrWidgetPlayer`}),(0,V.jsxs)(X,{container:!0,spacing:2,children:[(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:4,lg:3,children:(0,V.jsx)(lq,{type:`text`,labelKey:`cfgWidgetLiveAspect`,helpKey:`cfgWidgetLiveAspect_tt`,value:e.widgetLiveAspect??``,onChange:e=>t(`widgetLiveAspect`,e)})}),(0,V.jsx)(X,{item:!0,xs:12,sm:12,md:8,children:(0,V.jsx)(lq,{type:`text`,labelKey:`cfgWidgetPlayerUrl`,helpKey:`cfgWidgetPlayerUrl_tt`,value:e.widgetPlayerUrl??``,onChange:e=>t(`widgetPlayerUrl`,e)})})]}),(0,V.jsx)(uq,{textKey:`hdrWidgetTheme`}),(0,V.jsxs)(X,{container:!0,spacing:2,children:[(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:3,lg:2,children:(0,V.jsx)(dq,{labelKey:`cfgWidgetColorCardBg`,helpKey:`cfgWidgetColorCardBg_tt`,value:e.widgetColorCardBg??``,onChange:e=>t(`widgetColorCardBg`,e)})}),(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:3,lg:2,children:(0,V.jsx)(dq,{labelKey:`cfgWidgetColorTagBg`,helpKey:`cfgWidgetColorTagBg_tt`,value:e.widgetColorTagBg??``,onChange:e=>t(`widgetColorTagBg`,e)})}),(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:3,lg:2,children:(0,V.jsx)(dq,{labelKey:`cfgWidgetColorTagText`,helpKey:`cfgWidgetColorTagText_tt`,value:e.widgetColorTagText??``,onChange:e=>t(`widgetColorTagText`,e)})}),(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:3,lg:2,children:(0,V.jsx)(dq,{labelKey:`cfgWidgetColorAccent`,helpKey:`cfgWidgetColorAccent_tt`,value:e.widgetColorAccent??``,onChange:e=>t(`widgetColorAccent`,e)})}),(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:3,lg:2,children:(0,V.jsx)(dq,{labelKey:`cfgWidgetColorModalBg`,helpKey:`cfgWidgetColorModalBg_tt`,value:e.widgetColorModalBg??``,onChange:e=>t(`widgetColorModalBg`,e)})}),(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:3,lg:2,children:(0,V.jsx)(lq,{type:`number`,labelKey:`cfgWidgetBorderRadius`,helpKey:`cfgWidgetBorderRadius_tt`,value:e.widgetBorderRadius??4,min:0,max:32,onChange:e=>t(`widgetBorderRadius`,e)})})]})]});function hq(e){let t=Array.isArray(e?.objectList)?e.objectList:[],n=[];for(let e of t){if(!e||typeof e!=`object`)continue;let t=e.id??e.oid;if(t==null)continue;let r=typeof e.name==`string`?e.name:`obj_${t}`;if((e.typeID??e.ot??e.objectTypeID??e.type)!==2)continue;let i=`cam_${String(t).replace(/[\s.[\]*?"'`,;:/\\]+/g,`_`).replace(/[^A-Za-z0-9_-]/g,`_`)}_${r.replace(/[\s.[\]*?"'`,;:/\\]+/g,`_`).replace(/[^A-Za-z0-9_-]/g,`_`).replace(/_+/g,`_`).replace(/^_+|_+$/g,``)||`x`}`;n.push({key:i,name:r})}return n.sort((e,t)=>e.name.localeCompare(t.name)),n}function gq(e){return!e||typeof e!=`object`?[]:Object.keys(e).sort()}var _q=({native:e,onChange:t,socket:n,instance:r})=>{let[i,a]=(0,B.useState)(null),[o,s]=(0,B.useState)([]),[c,l]=(0,B.useState)(null),[u,d]=(0,B.useState)(!1),f=e.cameraStreams||{},p=Object.values(f).some(e=>e&&e!==`mjpeg`&&e!==`mp4`);function m(e){return f[e]??`mjpeg`}function h(e,n){t(`cameraStreams`,{...f,[e]:n})}let g=(0,B.useCallback)(async()=>{let t=(e.ip||``).trim(),i=e.port||8090,o=(e.go2rtcUrl||``).trim();if(o=o.replace(/^https:\/\//i,`http://`),o&&!o.startsWith(`http://`)&&(o=`http://${o}`),!t){a([]),l(vA.t(`cfgIpMissing`));return}d(!0),l(null);try{let c=[],u=[],d=new AbortController,f=setTimeout(()=>d.abort(),4e3);try{let n=await fetch(`http://${t}:${i}/command/getObjects`,{signal:d.signal,headers:e.user?{Authorization:`Basic ${btoa(`${e.user}:${e.pass??``}`)}`}:{}});n.ok?c=hq(await n.json()):l(`AgentDVR: HTTP ${n.status}`)}catch(e){if(e?.name===`AbortError`)l(`AgentDVR: Timeout (4 s)`);else try{let t=await Promise.race([n.sendTo(`agent-dvr.${r}`,`getAgentDvrCameras`,null),new Promise(e=>setTimeout(()=>e(null),5e3))]);t?.cameras?.length?c=t.cameras:l(`AgentDVR: ${e?.message||e}`)}catch{l(`AgentDVR: ${e?.message||e}`)}}if(clearTimeout(f),o){let e=!1;try{let t=new AbortController,n=setTimeout(()=>t.abort(),4e3),r=await fetch(`${o}/api/streams`,{signal:t.signal});clearTimeout(n),r.ok&&(u=gq(await r.json()),e=!0)}catch{}if(!e)try{let e=await Promise.race([n.sendTo(`agent-dvr.${r}`,`getGo2rtcStreams`,{url:o}),new Promise(e=>setTimeout(()=>e({_timeout:!0}),6e3))]);e?._timeout?l(e=>`${e?`${e} | `:``}go2rtc: Timeout`):Array.isArray(e?.streams)&&(u=e.streams,u.length===0&&e.error&&l(t=>(t?`${t} | `:``)+e.error))}catch{}}a(c),s(u)}finally{d(!1)}},[e.ip,e.port,e.go2rtcUrl,e.user,e.pass,n,r]);return(0,B.useEffect)(()=>{let e=setTimeout(()=>void g(),600);return()=>clearTimeout(e)},[e.ip,e.port,e.go2rtcUrl,e.user,e.pass,g]),(0,V.jsxs)(`div`,{children:[(0,V.jsx)(uq,{textKey:`hdrDashView`}),(0,V.jsxs)(X,{container:!0,spacing:2,children:[(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:4,lg:3,children:(0,V.jsx)(lq,{type:`select`,labelKey:`cfgDashDefaultView`,helpKey:`cfgDashDefaultView_tt`,value:e.dashDefaultView??`live`,onChange:e=>t(`dashDefaultView`,e),options:[{value:`live`,labelKey:`cfgDashViewLive`},{value:`recordings`,labelKey:`cfgDashViewRec`}]})}),(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:4,children:(0,V.jsx)(lq,{type:`checkbox`,labelKey:`cfgDashShowOffline`,helpKey:`cfgDashShowOffline_tt`,value:e.dashShowOffline,onChange:e=>t(`dashShowOffline`,e)})})]}),(0,V.jsx)(uq,{textKey:`hdrDashGrid`}),(0,V.jsxs)(X,{container:!0,spacing:2,children:[(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:3,lg:2,children:(0,V.jsx)(lq,{type:`number`,labelKey:`cfgDashGridCols`,helpKey:`cfgDashGridCols_tt`,value:e.dashGridCols??0,min:0,max:8,onChange:e=>t(`dashGridCols`,e)})}),(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:4,children:(0,V.jsx)(lq,{type:`checkbox`,labelKey:`cfgDashBtnsVisible`,helpKey:`cfgDashBtnsVisible_tt`,value:e.dashBtnsVisible,onChange:e=>t(`dashBtnsVisible`,e)})}),(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:4,children:(0,V.jsx)(lq,{type:`select`,labelKey:`cfgDashTagPosition`,helpKey:`cfgDashTagPosition_tt`,value:e.dashTagPosition??`bottom-right`,onChange:e=>t(`dashTagPosition`,e),options:[{value:`top-left`,labelKey:`cfgTagPosTopLeft`},{value:`top-right`,labelKey:`cfgTagPosTopRight`},{value:`bottom-left`,labelKey:`cfgTagPosBotLeft`},{value:`bottom-right`,labelKey:`cfgTagPosBotRight`}]})})]}),(0,V.jsx)(uq,{textKey:`hdrDashStream`}),(0,V.jsxs)(X,{container:!0,spacing:2,children:[(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:4,lg:3,children:(0,V.jsx)(lq,{type:`number`,labelKey:`cfgDashRefreshSec`,helpKey:`cfgDashRefreshSec_tt`,value:e.dashRefreshSec??60,min:10,max:600,onChange:e=>t(`dashRefreshSec`,e)})}),(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:4,children:(0,V.jsx)(lq,{type:`checkbox`,labelKey:`cfgDashStreamReconnect`,helpKey:`cfgDashStreamReconnect_tt`,value:e.dashStreamReconnect!==!1,onChange:e=>t(`dashStreamReconnect`,e)})})]}),(0,V.jsx)(uq,{textKey:`hdrDashTheme`}),(0,V.jsx)(X,{container:!0,spacing:2,children:[`dashColorBg`,`dashColorSurface`,`dashColorAccent`,`dashColorText`,`dashColorBorder`,`dashColorOnline`,`dashColorOffline`].map(n=>(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:3,lg:2,children:(0,V.jsx)(dq,{labelKey:`cfg${n.charAt(0).toUpperCase()}${n.slice(1)}`,helpKey:`cfg${n.charAt(0).toUpperCase()}${n.slice(1)}_tt`,value:e[n]??``,onChange:e=>t(n,e)})},n))}),(0,V.jsx)(uq,{textKey:`hdrCameraStreams`}),(0,V.jsxs)($x,{sx:{mb:1,display:`flex`,alignItems:`center`,gap:1},children:[(0,V.jsx)(Kv,{variant:`subtitle2`,color:`text.secondary`,sx:{flex:1},children:vA.t(`cfgGo2rtcMapping_tt`)}),(0,V.jsx)(TD,{title:vA.t(`reload`),children:(0,V.jsx)(Ev,{size:`small`,onClick:()=>void g(),disabled:u,children:u?(0,V.jsx)(bv,{size:18}):(0,V.jsx)(Rk,{})})})]}),c&&(0,V.jsx)(Rv,{severity:`warning`,sx:{mb:1},children:c}),u&&(0,V.jsxs)($x,{sx:{display:`flex`,alignItems:`center`,gap:1,mb:2},children:[(0,V.jsx)(bv,{size:16}),(0,V.jsx)(Kv,{variant:`caption`,children:vA.t(`loadingCamerasAndStreams`)})]}),i!==null&&i.length===0&&!u&&(0,V.jsx)(Rv,{severity:`info`,sx:{mb:2},children:vA.t(`cfgNoCamerasFound`)}),i!==null&&i.length>0&&(0,V.jsx)(oO,{component:z_,variant:`outlined`,sx:{mb:2},children:(0,V.jsxs)(WD,{size:`small`,children:[(0,V.jsx)(fO,{children:(0,V.jsxs)(wO,{children:[(0,V.jsx)(nO,{children:(0,V.jsx)(`strong`,{children:vA.t(`cfgCameraColumn`)})}),(0,V.jsx)(nO,{children:(0,V.jsx)(`strong`,{children:vA.t(`cfgStreamSourceColumn`)})})]})}),(0,V.jsx)(ZD,{children:i.map(e=>(0,V.jsxs)(wO,{hover:!0,children:[(0,V.jsx)(nO,{children:(0,V.jsxs)($x,{children:[(0,V.jsx)(Kv,{variant:`body2`,children:e.name}),(0,V.jsx)(Kv,{variant:`caption`,color:`text.secondary`,sx:{fontFamily:`monospace`},children:e.key})]})}),(0,V.jsx)(nO,{sx:{minWidth:240},children:(0,V.jsx)(aw,{size:`small`,fullWidth:!0,children:(0,V.jsxs)(nD,{value:m(e.key),onChange:t=>h(e.key,t.target.value),children:[(0,V.jsx)(bE,{value:`mjpeg`,children:(0,V.jsxs)($x,{sx:{display:`flex`,alignItems:`center`,gap:1},children:[`MJPEG`,(0,V.jsx)(ox,{label:`AgentDVR`,size:`small`,variant:`outlined`})]})}),(0,V.jsx)(bE,{value:`mp4`,children:(0,V.jsxs)($x,{sx:{display:`flex`,alignItems:`center`,gap:1},children:[`MP4 / FLV (mit Ton)`,(0,V.jsx)(ox,{label:`AgentDVR`,size:`small`,variant:`outlined`})]})}),o.length>0&&(0,V.jsx)(KC,{}),o.map(e=>(0,V.jsx)(bE,{value:e,children:(0,V.jsxs)($x,{sx:{display:`flex`,alignItems:`center`,gap:1},children:[e,(0,V.jsx)(ox,{label:`go2rtc`,size:`small`,color:`primary`,variant:`outlined`})]})},e))]})})})]},e.key))})]})}),p&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(uq,{textKey:`hdrGo2rtc`}),(0,V.jsx)(X,{container:!0,spacing:2,children:(0,V.jsx)(X,{item:!0,xs:12,sm:8,md:6,lg:5,children:(0,V.jsx)(lq,{type:`text`,labelKey:`cfgGo2rtcUrl`,helpKey:`cfgGo2rtcUrl_tt`,value:e.go2rtcUrl??``,onChange:e=>t(`go2rtcUrl`,e)})})})]})]})},vq=({native:e,onChange:t})=>(0,V.jsxs)(X,{container:!0,spacing:2,children:[(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:4,lg:3,children:(0,V.jsx)(lq,{type:`number`,labelKey:`cfgMaxDepth`,value:e.maxDepth??6,min:1,max:10,onChange:e=>t(`maxDepth`,e)})}),(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:4,lg:3,children:(0,V.jsx)(lq,{type:`number`,labelKey:`cfgMaxArray`,value:e.maxArray??30,min:1,max:500,onChange:e=>t(`maxArray`,e)})}),(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:4,children:(0,V.jsx)(lq,{type:`checkbox`,labelKey:`cfgEventTagsDynamic`,value:e.eventTagsDynamic,onChange:e=>t(`eventTagsDynamic`,e)})}),(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:6,lg:4,children:(0,V.jsx)(lq,{type:`text`,labelKey:`cfgEventTagsIgnore`,value:e.eventTagsIgnore??``,onChange:e=>t(`eventTagsIgnore`,e)})}),(0,V.jsx)(X,{item:!0,xs:12,sm:6,md:6,lg:4,children:(0,V.jsx)(lq,{type:`text`,labelKey:`cfgEventTags`,value:e.eventTags??``,onChange:e=>t(`eventTags`,e)})})]}),yq={"agent-dvr adapter settings":`Agent DVR Adapter Settings`,tabConnection:`Connection`,tabFeatures:`Features`,tabWidget:`Widget`,tabAdvanced:`Advanced`,cfgIp:`AgentDVR IP Address`,cfgPort:`Port`,cfgUser:`Username (optional)`,cfgPass:`Password (optional)`,cfgPollSeconds:`Poll interval (seconds)`,cfgHttpTimeoutMs:`HTTP timeout (ms)`,cfgEnableSystemControls:`System control buttons`,cfgEnablePtz:`PTZ control buttons`,cfgEnableUrls:`Generate stream URLs`,cfgEnableEventDps:`Event data points`,cfgEnablePush:`Real-time push trigger`,cfgEnableOverview:`Overview widget (all cameras)`,cfgStoreRawJson:`Store raw API JSON`,cfgEnableWidget:`Gallery widget per camera`,cfgWidgetMode:`Widget mode`,cfgWidgetModeNojs:`Pure HTML/CSS (no JavaScript, compatible everywhere)`,cfgWidgetModeJs:`Full JS (search + tag filter, requires script execution)`,cfgWidgetAnzahl:`Max. recordings in gallery`,cfgWidgetMinCol:`Min. column width (px)`,cfgWidgetShowTags:`Show event tags`,cfgWidgetLiveAspect:`Live tile aspect ratio (e.g. 16/9, leave empty for auto)`,cfgWidgetTagPosition:`Tag badge position`,cfgTagPosTopLeft:`Top left`,cfgTagPosTopRight:`Top right`,cfgTagPosBotLeft:`Bottom left`,cfgTagPosBotRight:`Bottom right`,cfgWidgetMaxModalWidth:`Max. player width (px)`,cfgWidgetPlayerUrl:`External player URL (leave empty for built-in player)`,cfgMaxDepth:`Max. object flatten depth`,cfgMaxArray:`Max. array length to expand`,cfgEventTagsDynamic:`Auto-detect event tags from recordings`,cfgEventTagsIgnore:`Event tags to ignore (comma-separated)`,cfgEventTags:`Fixed event tags to always create (comma-separated)`,cfgEnableSnapshotB64:`Snapshot as Base64`,hdrControls:`Control Buttons`,hdrEvents:`Events & Push`,hdrDisplay:`Display`,hdrDebug:`Debug`,hdrWidgetGeneral:`Gallery Widget`,hdrWidgetLayout:`Layout`,hdrWidgetTags:`Tags`,hdrWidgetPlayer:`Livestream & Player`,cfgEnableSystemControls_tt:`Arm/Disarm/Restart buttons, profile selector and all system-wide control commands`,cfgEnablePtz_tt:`Hold switches for PTZ (left/right/up/down/zoom) per camera`,cfgEnableUrls_tt:`URL states for snapshot, MJPEG and MP4 stream per camera`,cfgEnableSnapshotB64_tt:`Save camera image as Base64 on every poll (photo.jpg, full resolution). Refresh button always present.`,cfgEnableEventDps_tt:`Mirror metadata of the last recording (filename, date, duration, tags)`,cfgEnablePush_tt:`Push trigger state is updated immediately when AgentDVR reports a new recording`,cfgEnableOverview_tt:`HTML state with all cameras as tile grid (for visualizations, dashboards etc.)`,cfgStoreRawJson_tt:`Write full getObjects response to system.raw_getObjects (useful for debugging)`,cfgEnableWidget_tt:`HTML gallery with the latest recordings per camera (for visualizations, dashboards etc.)`,cfgWidgetMode_tt:`Pure HTML/CSS compatible everywhere. Full JS with search field and tag filter (requires script execution).`,cfgWidgetAnzahl_tt:`Maximum number of recordings in the gallery per camera`,cfgWidgetMinCol_tt:`Minimum column width of the gallery grid in pixels`,cfgWidgetMaxModalWidth_tt:`Maximum width of the video player in the modal dialog in pixels`,cfgWidgetShowTags_tt:`Show event tags as colored badge labels on gallery tiles`,cfgWidgetTagPosition_tt:`Corner of the image where the tag badge appears`,cfgWidgetLiveAspect_tt:`Aspect ratio of the livestream tile e.g. 16/9. Leave empty for automatic.`,cfgWidgetPlayerUrl_tt:`URL of an external video player. Leave empty for built-in player.`,hdrWidgetFilter:`Filter & Sort`,cfgWidgetSortNewest:`Newest first`,cfgWidgetSortNewest_tt:`Sort recordings by date, newest first`,cfgWidgetShowSearch:`Show search field (JS mode only)`,cfgWidgetShowSearch_tt:`Show text search over date, tag and filename in JS mode`,cfgWidgetCompact:`Compact layout`,cfgWidgetCompact_tt:`Smaller spacing and font – more entries at a glance (works in both modes)`,cfgWidgetDefaultTag:`Default tag filter (empty = all)`,cfgWidgetDefaultTag_tt:`This tag is pre-selected on first load (JS mode only)`,cfgWidgetThumbSize:`Thumbnail size`,cfgWidgetThumbSize_tt:`Width of preview images in the gallery (overrides min. column width)`,cfgWidgetThumbSmall:`Small (120 px)`,cfgWidgetThumbMedium:`Medium (180 px)`,cfgWidgetThumbLarge:`Large (240 px)`,tabDashboard:`Live Dashboard`,hdrDashView:`View`,cfgDashDefaultView:`Default view on open`,cfgDashDefaultView_tt:`Which tab is active when the dashboard opens`,cfgDashViewLive:`Live view`,cfgDashViewRec:`Recordings`,cfgDashShowOffline:`Show offline cameras`,cfgDashShowOffline_tt:`Include cameras that are currently offline in the live grid`,hdrDashGrid:`Camera grid`,cfgDashGridCols:`Column count (0 = automatic)`,cfgDashGridCols_tt:`Force a fixed number of camera columns. 0 = optimal count is calculated automatically.`,hdrDashStream:`Stream & Refresh`,cfgDashRefreshSec:`Reload camera list every (seconds)`,cfgDashRefreshSec_tt:`How often the camera list is reloaded from the server (0 = no automatic reload)`,cfgDashStreamReconnect:`Auto-reconnect stream on error`,cfgDashStreamReconnect_tt:`Automatically restart the MJPEG stream after a connection drop`,hdrWidgetTheme:`Colors & Design`,cfgWidgetColorCardBg:`Tile background`,cfgWidgetColorCardBg_tt:`Background color of thumbnail tiles – rgba(r,g,b,a) or #hex`,cfgWidgetColorTagBg:`Tag badge background`,cfgWidgetColorTagBg_tt:`Background color of the tag badge`,cfgWidgetColorTagText:`Tag badge text color`,cfgWidgetColorTagText_tt:`Text color of the tag badge`,cfgWidgetColorAccent:`Accent color`,cfgWidgetColorAccent_tt:`Accent color for links and buttons in the widget`,cfgWidgetColorModalBg:`Modal background`,cfgWidgetColorModalBg_tt:`Background color of the video player dialog`,cfgWidgetBorderRadius:`Border radius (px)`,cfgWidgetBorderRadius_tt:`Corner radius of thumbnail tiles in pixels (0 = square)`,hdrDashTheme:`Colors & Design`,cfgDashColorBg:`Background`,cfgDashColorBg_tt:`Main background color of the dashboard`,cfgDashColorSurface:`Surface / Cards`,cfgDashColorSurface_tt:`Background color of tiles and cards`,cfgDashColorAccent:`Accent color`,cfgDashColorAccent_tt:`Main accent color (buttons, active elements, borders)`,cfgDashColorText:`Text color`,cfgDashColorText_tt:`Primary text color`,cfgDashColorBorder:`Border color`,cfgDashColorBorder_tt:`Color of dividers and borders`,cfgDashColorOnline:`Online color`,cfgDashColorOnline_tt:`Color of the online status indicator`,cfgDashColorOffline:`Offline color`,cfgDashColorOffline_tt:`Color of the offline status indicator`,cfgDashTagPosition:`Tag badge position`,cfgDashTagPosition_tt:`Corner of the recording tile where the tag badge appears`,cfgDashBtnsVisible:`Buttons always visible`,cfgDashBtnsVisible_tt:`Always show record and PTZ buttons on camera tile (otherwise only visible on hover)`,hdrCameraStreams:`Stream Assignment`,hdrGo2rtc:`go2rtc WebRTC Streams`,cfgGo2rtcUrl:`go2rtc URL`,cfgGo2rtcUrl_tt:`Base URL of the go2rtc server, e.g. http://192.168.1.1:1984`,cfgGo2rtcMapping_tt:`Select the stream source per camera: MJPEG or MP4/FLV (via AgentDVR) or a go2rtc stream.`,cfgIpMissing:`AgentDVR IP address is required`,cfgNoCamerasFound:`No cameras found — is the adapter configured and has it polled at least once?`,loadingCamerasAndStreams:`Loading cameras and streams…`,cfgCameraColumn:`AgentDVR Camera`,cfgStreamSourceColumn:`Stream Source`,reload:`Reload`,hdrProxy:`Proxy`,cfgEnableStreamProxy:`Stream proxy`,cfgEnableStreamProxy_tt:`Route MJPEG and snapshot streams through ioBroker — the browser only needs to reach ioBroker, not AgentDVR directly`},bq={"agent-dvr adapter settings":`Agent DVR Adapter-Einstellungen`,tabConnection:`Verbindung`,tabFeatures:`Funktionen`,tabWidget:`Widget`,tabAdvanced:`Erweitert`,cfgIp:`AgentDVR IP-Adresse`,cfgPort:`Port`,cfgUser:`Benutzername (optional)`,cfgPass:`Passwort (optional)`,cfgPollSeconds:`Abfrageintervall (Sekunden)`,cfgHttpTimeoutMs:`HTTP-Timeout (ms)`,cfgEnableSystemControls:`Systemsteuerungs-Schaltflächen`,cfgEnablePtz:`PTZ-Steuerungs-Schaltflächen`,cfgEnableUrls:`Stream-URLs generieren`,cfgEnableEventDps:`Ereignis-Datenpunkte`,cfgEnablePush:`Echtzeit-Push-Trigger`,cfgEnableOverview:`Übersichts-Widget (alle Kameras)`,cfgStoreRawJson:`Rohes API-JSON speichern`,cfgEnableWidget:`Galerie-Widget pro Kamera`,cfgWidgetMode:`Widget-Modus`,cfgWidgetModeNojs:`Reines HTML/CSS (kein JavaScript, überall kompatibel)`,cfgWidgetModeJs:`Vollständiges JS (Suche + Tag-Filter, erfordert Skriptausführung)`,cfgWidgetAnzahl:`Max. Aufnahmen in der Galerie`,cfgWidgetMinCol:`Min. Spaltenbreite (px)`,cfgWidgetShowTags:`Ereignis-Tags anzeigen`,cfgWidgetLiveAspect:`Seitenverhältnis Live-Kachel (z.B. 16/9, leer lassen für automatisch)`,cfgWidgetTagPosition:`Tag-Badge-Position`,cfgTagPosTopLeft:`Oben links`,cfgTagPosTopRight:`Oben rechts`,cfgTagPosBotLeft:`Unten links`,cfgTagPosBotRight:`Unten rechts`,cfgWidgetMaxModalWidth:`Max. Player-Breite (px)`,cfgWidgetPlayerUrl:`Externer Player-URL (leer lassen für eingebauten Player)`,cfgMaxDepth:`Max. Objekt-Abflachungstiefe`,cfgMaxArray:`Max. Array-Länge zum Erweitern`,cfgEventTagsDynamic:`Ereignis-Tags automatisch aus Aufnahmen erkennen`,cfgEventTagsIgnore:`Zu ignorierende Ereignis-Tags (kommagetrennt)`,cfgEventTags:`Feste Ereignis-Tags, die immer erstellt werden (kommagetrennt)`,cfgEnableSnapshotB64:`Snapshot als Base64`,hdrControls:`Steuerbuttons`,hdrEvents:`Ereignisse & Push`,hdrDisplay:`Darstellung`,hdrDebug:`Debug`,hdrWidgetGeneral:`Galerie-Widget`,hdrWidgetLayout:`Layout`,hdrWidgetTags:`Tags`,hdrWidgetPlayer:`Livestream & Player`,cfgEnableSystemControls_tt:`Arm/Disarm/Neustart-Buttons, Profil-Selektor und alle systemweiten Steuerbefehle`,cfgEnablePtz_tt:`Hold-Switches für PTZ (links/rechts/oben/unten/Zoom) pro Kamera`,cfgEnableUrls_tt:`URL-States für Snapshot, MJPEG und MP4-Stream pro Kamera`,cfgEnableSnapshotB64_tt:`Kamerabild als Base64 bei jedem Poll speichern (photo.jpg, volle Auflösung). Refresh-Button immer vorhanden.`,cfgEnableEventDps_tt:`Metadaten der letzten Aufnahme spiegeln (Dateiname, Datum, Dauer, Tags)`,cfgEnablePush_tt:`Push-Trigger-State wird sofort aktualisiert wenn AgentDVR eine neue Aufnahme meldet`,cfgEnableOverview_tt:`HTML-State mit allen Kameras als Kachelraster (für Visualisierungen, Dashboards etc.)`,cfgStoreRawJson_tt:`Vollständige getObjects-Antwort in system.raw_getObjects schreiben (nützlich für Debugging)`,cfgEnableWidget_tt:`HTML-Galerie mit den letzten Aufnahmen pro Kamera (für Visualisierungen, Dashboards etc.)`,cfgWidgetMode_tt:`Pure HTML/CSS überall kompatibel. Full JS mit Suchfeld und Tag-Filter (benötigt Script-Ausführung).`,cfgWidgetAnzahl_tt:`Maximale Anzahl Aufnahmen in der Galerie pro Kamera`,cfgWidgetMinCol_tt:`Minimale Spaltenbreite des Galerie-Grids in Pixeln`,cfgWidgetMaxModalWidth_tt:`Maximale Breite des Video-Players im Modal-Dialog in Pixeln`,cfgWidgetShowTags_tt:`Event-Tags als farbige Badge-Labels auf den Galerie-Kacheln anzeigen`,cfgWidgetTagPosition_tt:`Ecke des Bildes wo der Tag-Badge erscheint`,cfgWidgetLiveAspect_tt:`Seitenverhältnis der Livestream-Kachel z.B. 16/9. Leer lassen für automatisch.`,cfgWidgetPlayerUrl_tt:`URL eines externen Video-Players. Leer lassen für eingebauten Player.`,hdrWidgetFilter:`Filter & Sortierung`,cfgWidgetSortNewest:`Neueste zuerst`,cfgWidgetSortNewest_tt:`Aufnahmen nach Datum sortieren, neueste zuerst`,cfgWidgetShowSearch:`Suchfeld anzeigen (nur JS-Modus)`,cfgWidgetShowSearch_tt:`Textsuche über Datum, Tag und Dateiname im JS-Modus einblenden`,cfgWidgetCompact:`Kompaktes Layout`,cfgWidgetCompact_tt:`Kleinere Abstände und Schrift – mehr Einträge auf einen Blick (wirkt in beiden Modi)`,cfgWidgetDefaultTag:`Standard-Tag-Filter (leer = alle)`,cfgWidgetDefaultTag_tt:`Dieser Tag ist beim ersten Laden vorausgewählt (nur JS-Modus)`,cfgWidgetThumbSize:`Thumbnail-Größe`,cfgWidgetThumbSize_tt:`Breite der Vorschaubilder in der Galerie (überschreibt Min. Spaltenbreite)`,cfgWidgetThumbSmall:`Klein (120 px)`,cfgWidgetThumbMedium:`Mittel (180 px)`,cfgWidgetThumbLarge:`Groß (240 px)`,tabDashboard:`Live-Dashboard`,hdrDashView:`Ansicht`,cfgDashDefaultView:`Standard-Ansicht beim Öffnen`,cfgDashDefaultView_tt:`Welcher Tab beim Öffnen des Dashboards aktiv ist`,cfgDashViewLive:`Live-Ansicht`,cfgDashViewRec:`Aufnahmen`,cfgDashShowOffline:`Offline-Kameras anzeigen`,cfgDashShowOffline_tt:`Kameras die gerade offline sind trotzdem im Live-Grid einblenden`,hdrDashGrid:`Kamera-Grid`,cfgDashGridCols:`Spaltenanzahl (0 = automatisch)`,cfgDashGridCols_tt:`Anzahl Kamera-Spalten fest vorgeben. 0 = optimale Anzahl wird automatisch berechnet.`,hdrDashStream:`Stream & Aktualisierung`,cfgDashRefreshSec:`Kameraliste neu laden alle (Sekunden)`,cfgDashRefreshSec_tt:`Wie oft die Kameraliste vom Server neu geladen wird (0 = kein automatischer Reload)`,cfgDashStreamReconnect:`Stream bei Fehler automatisch neu verbinden`,cfgDashStreamReconnect_tt:`MJPEG-Stream wird nach einem Verbindungsabbruch automatisch neu gestartet`,hdrWidgetTheme:`Farben & Design`,cfgWidgetColorCardBg:`Kachel-Hintergrund`,cfgWidgetColorCardBg_tt:`Hintergrundfarbe der Vorschaukacheln – rgba(r,g,b,a) oder #hex`,cfgWidgetColorTagBg:`Tag-Badge-Hintergrund`,cfgWidgetColorTagBg_tt:`Hintergrundfarbe des Tag-Badges`,cfgWidgetColorTagText:`Tag-Badge-Textfarbe`,cfgWidgetColorTagText_tt:`Textfarbe des Tag-Badges`,cfgWidgetColorAccent:`Akzentfarbe`,cfgWidgetColorAccent_tt:`Akzentfarbe für Links und Buttons im Widget`,cfgWidgetColorModalBg:`Modal-Hintergrund`,cfgWidgetColorModalBg_tt:`Hintergrundfarbe des Video-Player-Dialogs`,cfgWidgetBorderRadius:`Eckenradius (px)`,cfgWidgetBorderRadius_tt:`Abrundungsradius der Vorschaukacheln in Pixeln (0 = eckig)`,hdrDashTheme:`Farben & Design`,cfgDashColorBg:`Hintergrund`,cfgDashColorBg_tt:`Haupthintergrundfarbe des Dashboards`,cfgDashColorSurface:`Oberfläche / Karten`,cfgDashColorSurface_tt:`Hintergrundfarbe von Kacheln und Karten`,cfgDashColorAccent:`Akzentfarbe`,cfgDashColorAccent_tt:`Hauptakzentfarbe (Buttons, aktive Elemente, Rahmen)`,cfgDashColorText:`Textfarbe`,cfgDashColorText_tt:`Primäre Textfarbe`,cfgDashColorBorder:`Rahmenfarbe`,cfgDashColorBorder_tt:`Farbe von Trennlinien und Rahmen`,cfgDashColorOnline:`Online-Farbe`,cfgDashColorOnline_tt:`Farbe des Online-Status-Indikators`,cfgDashColorOffline:`Offline-Farbe`,cfgDashColorOffline_tt:`Farbe des Offline-Status-Indikators`,cfgDashTagPosition:`Tag-Badge-Position`,cfgDashTagPosition_tt:`Ecke der Aufnahme-Kachel, in der der Tag-Badge erscheint`,cfgDashBtnsVisible:`Buttons immer sichtbar`,cfgDashBtnsVisible_tt:`Aufnahme- und PTZ-Button immer anzeigen (sonst nur bei Hover)`,hdrCameraStreams:`Stream-Zuweisung`,hdrGo2rtc:`go2rtc WebRTC-Streams`,cfgGo2rtcUrl:`go2rtc URL`,cfgGo2rtcUrl_tt:`Basis-URL des go2rtc-Servers, z. B. http://192.168.1.1:1984`,cfgGo2rtcMapping_tt:`Wähle die Stream-Quelle je Kamera: MJPEG oder MP4/FLV (über AgentDVR) oder ein go2rtc-Stream.`,cfgIpMissing:`AgentDVR-IP-Adresse ist erforderlich`,cfgNoCamerasFound:`Keine Kameras gefunden — Adapter konfiguriert und mindestens einmal gepollt?`,loadingCamerasAndStreams:`Lade Kameras und Streams…`,cfgCameraColumn:`AgentDVR Kamera`,cfgStreamSourceColumn:`Stream-Quelle`,reload:`Neu laden`,hdrProxy:`Proxy`,cfgEnableStreamProxy:`Stream-Proxy`,cfgEnableStreamProxy_tt:`MJPEG- und Snapshot-Streams über ioBroker leiten — der Browser muss nur ioBroker erreichen, nicht AgentDVR direkt`},xq=class extends NA{constructor(e){super(e,{encryptedFields:[`pass`],Connection:Gs,translations:{en:yq,de:bq}})}render(){if(!this.state.loaded)return super.render();let e=this.state.tab??0,t=this.state.native,n=(e,n)=>{this.setState({native:{...t,[e]:n},changed:this.getIsChanged({...t,[e]:n})})};return(0,V.jsx)(en,{injectFirst:!0,children:(0,V.jsx)(Ts,{theme:this.state.theme,children:(0,V.jsxs)($x,{sx:{display:`flex`,flexDirection:`column`,height:`100%`,overflow:`hidden`,bgcolor:`background.default`,color:`text.primary`},children:[(0,V.jsx)($x,{sx:{borderBottom:1,borderColor:`divider`,px:2},children:(0,V.jsxs)(KO,{value:e,onChange:(e,t)=>this.setState({tab:t}),children:[(0,V.jsx)(RD,{label:vA.t(`tabConnection`)}),(0,V.jsx)(RD,{label:vA.t(`tabFeatures`)}),(0,V.jsx)(RD,{label:vA.t(`tabWidget`)}),(0,V.jsx)(RD,{label:vA.t(`tabDashboard`)}),(0,V.jsx)(RD,{label:vA.t(`tabAdvanced`)})]})}),(0,V.jsxs)($x,{sx:{flex:1,overflowY:`auto`,p:2,pb:12},children:[e===0&&(0,V.jsx)(fq,{native:t,onChange:n}),e===1&&(0,V.jsx)(pq,{native:t,onChange:n}),e===2&&(0,V.jsx)(mq,{native:t,onChange:n}),e===3&&(0,V.jsx)(_q,{native:t,onChange:n,socket:this.socket,instance:this.instance??0}),e===4&&(0,V.jsx)(vq,{native:t,onChange:n})]}),this.renderError(),this.renderSaveCloseButtons()]})})})}};window.adapterName=`agent-dvr`,window.sentryDSN=``;var Sq=document.getElementById(`root`);Sq&&(0,Es.createRoot)(Sq).render((0,V.jsx)(xq,{}));
|